AD Command help

This topic contains 6 replies, has 3 voices, and was last updated by Profile photo of Don Jones Don Jones 3 months, 1 week ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43678
    Profile photo of Suresh krishnan
    Suresh krishnan
    Participant

    Dear community
    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 . Thanks

    #43682
    Profile photo of AK
    AK
    Participant
    #43684
    Profile photo of Suresh krishnan
    Suresh krishnan
    Participant

    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 -AutoSize
    #43686
    Profile photo of AK
    AK
    Participant

    For adding users to a group you'd use add-adgroupmember... What are you trying to accomplish? Could you describe it start to finish?

    #43688
    Profile photo of Suresh krishnan
    Suresh krishnan
    Participant

    Basically i need to add few users in to security properties of the AD Group .

    #43690
    Profile photo of AK
    AK
    Participant

    this should do it:
    dsacls (get-ADGroup someexamplegroup).DistinguishedName /G "domain\username:GA"

    • This reply was modified 3 months, 2 weeks ago by Profile photo of AK AK.
    #43712
    Profile photo of Don Jones
    Don Jones
    Keymaster

    And as a note, both Cacls and Dsacls are perfectly fine in PowerShell. I use them all the time.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.