get-acl for AD securtiy group permissions

what would the correct get-acl syntax be for getting the ACL on who can manage an AD security group. I've only used get-acl for folder permissions, e.g. get-acl \\server\share - But I have read you can use it for checking permissions on AD objects to, so knowing the correct format for that would be useful to check for delegations etc.
LVL 4
pma111Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
Basically the same way it works with NTFS: you pass the path to the target, and check the Access property.
The path in this case is the drive "AD:" and the object's DistinguishedName.
For starters, you can send the output to Out-GridView, for example:
Get-Acl -Path 'AD:\CN=Some Group,OU=Some OU,DC=domain,DC=com' | Select-Object -ExpandProperty Access | Out-GridView

Open in new window

To get delegation, a good start is filtering the IdentityReference for accounts starting with your AD's NetBIOS domain name:
Get-Acl -Path 'AD:\CN=Some Group,OU=Some OU,DC=domain,DC=com' | Select-Object -ExpandProperty Access |
	Where-Object {$_.IdentityReference.ToString() -like "$ENV:UserDomain\*"}

Open in new window


The permissions differ from NTFS, obviously. Start here, for example:
How Access Control Works in Active Directory Domain Services
https://docs.microsoft.com/en-us/windows/desktop/ad/how-access-control-works-in-active-directory-domain-services
Active Directory Object Permissions 101
https://redmondmag.com/articles/2001/10/01/active-directory-object-permissions-101.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael B. SmithManaging ConsultantCommented:
oBdA is accurate enough.

I would suggest using dsacls.exe. It is uniquely designed for returning Directory Services ACLs.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.