adaudit icon indicating copy to clipboard operation
adaudit copied to clipboard

Get-Acl : The object name has bad syntax

Open licorsec opened this issue 3 years ago • 4 comments

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.

licorsec avatar Oct 06 '21 16:10 licorsec

Thanks, it worked for me too

Cool34000 avatar Jan 21 '22 20:01 Cool34000

Update AdAudit.ps1 #20

Cool34000 avatar Jan 21 '22 22:01 Cool34000

Can be closed as per #20

Cool34000 avatar Jan 24 '22 16:01 Cool34000