AD Command help

Welcome Forums General PowerShell Q&A AD Command help

This topic contains 6 replies, has 3 voices, and was last updated by

 
Keymaster
2 years, 5 months ago.

  • Author
    Posts
  • #43678

    Participant
    Points: 1
    Rank: Member

    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
    AK

    Participant
    Points: 14
    Rank: Member

    This should help:

    http://ss64.com/nt/cacls.html

  • #43684

    Participant
    Points: 1
    Rank: Member

    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
    AK

    Participant
    Points: 14
    Rank: Member

    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

      Participant
      Points: 1
      Rank: Member

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

  • #43690
    AK

    Participant
    Points: 14
    Rank: Member

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

  • #43712

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

The topic ‘AD Command help’ is closed to new replies.