adaudit
adaudit copied to clipboard
Get-Acl : The object name has bad syntax
I was getting a "Get-Acl : The object name has bad syntax" when the Get-OUPerms function was running. According to this reddit post, it's a known issue. I simply changed Get-Acl AD:$object
to Get-Acl "Microsoft.ActiveDirectory.Management.dll\ActiveDirectory:://RootDSE/$object"
and everything seems to be working again. By the way, thanks for taking the time to create and share this script. It pulls all the good stuff I would care about and saved me many hours by not having to put something together myself.
Thanks, it worked for me too
Update AdAudit.ps1 #20
Can be closed as per #20