Hi All,
I have a requirement to get the list of object in AD which do not have inheritance set. I have used the below command and I am able to get the information but the output do not contain the name of object. It only shows the identityreference, accessControlType etc.
set-location ad:
(get-acl (Get-ADUser -Filter * -SearchBase OU=Test,DC=Domain,DC=Com).distinguishedname).access | ? inheritanceflags -eq 'none'
Please suggest