- June 17, 2016 at 2:41 am #43678
I need your help , i need to add users in to security (not a member of but in security )in one of the ACL . I am having hard time to find a specific command to do this task . Could some one please help . ThanksJune 17, 2016 at 3:49 am #43682June 17, 2016 at 4:03 am #43684
Thanks AK :), is there a PowerShell way of doing this 🙂 I am able to retrieve the permission with this command but now I need to add users to the security group .
set-location AD: (get-acl (get-ADGroup someexamplegroup).DistinguishedName).access | ft IdentityReference,AccessControlType,ActiveDirectoryRights -AutoSizeJune 17, 2016 at 4:16 am #43686
For adding users to a group you'd use add-adgroupmember... What are you trying to accomplish? Could you describe it start to finish?June 17, 2016 at 4:35 am #43688
Basically i need to add few users in to security properties of the AD Group .June 17, 2016 at 6:22 am #43690
this should do it:
dsacls (get-ADGroup someexamplegroup).DistinguishedName /G "domain\username:GA"
June 17, 2016 at 1:40 pm #43712
- This reply was modified 3 months, 2 weeks ago by AK.
And as a note, both Cacls and Dsacls are perfectly fine in PowerShell. I use them all the time.
You must be logged in to reply to this topic.