Get ACL for AD object
Last updated:
POWERSHELLAD
Import-Module ActiveDirectory
# Define the distinguished name (DN) of the AD object
$objectDN = "CN=YourObjectName,OU=YourOU,DC=YourDomain,DC=com"
# Get the ACL for the AD object
$acl = Get-ACL -Path "AD:$objectDN"
# Display the ACL
$acl.Access | Format-Table -Property IdentityReference, ActiveDirectoryRights, AccessControlType, IsInherited, InheritanceFlags, PropagationFlags