DougInCanada
Technical User
Hello,
I am trying to purge a user object membership from any groups of which they are a member except Domain Users.
I have the Distinguished Name from an LDAP query that I already executed to disable the account, but I'm stuck on how to go about cycling through the MemberOf property and removing the specific user object from both security and distribution groups with the exception of Domain Users.
Any help on this would be greatly appreciated.
Cheers!
I am trying to purge a user object membership from any groups of which they are a member except Domain Users.
I have the Distinguished Name from an LDAP query that I already executed to disable the account, but I'm stuck on how to go about cycling through the MemberOf property and removing the specific user object from both security and distribution groups with the exception of Domain Users.
Any help on this would be greatly appreciated.
Cheers!