I am trying to delete an inactive user account from AD but it says that it contains objects (which is odd in itself to me.) When I say delete anyway I get an access denied error.
I found a command to delete the object itself that I am planning on trying but wanted to double check with my fellow sys admins and see if anyone has encountered this before or knew a better way to approach this.
This is the command I plan on using:
Set objOU = GetObject("LDAP://OU=Domain,OU=Disabled Users,DC=accountname,DC=com")
objOU.DeleteObject(0)
Any thoughts?
[link] [8 comments]