I am trying to build a PowerShell command that it will add a security group (not on Member Of) with full control permissions in AD user in order avoid doing it manually by hand. Is it possible ?
Asked
Active
Viewed 187 times
0
-
try doing a search for `learn powershell by using ADAC`. [*grin*] – Lee_Dailey Mar 18 '21 at 21:57
1 Answers
1
Eventually, I figured out the command using dsacls:
dsacls "CN=UserCN,OU=UserOU,OU=UserOU,DC=domain,DC=domain,DC=domain" /I:T /g "\MSOL_code:GA"

John Pantelidis
- 21
- 2