sanderson321
asked on
Set Manager attribute to null when account is disabled using Powershell
We would like to run a nightly job that sets the "manager" attribute to NULL if the account is disabled. A Powershell script is preferred. Can someone help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And if you happen to prefer to use Quest's tools...
http://www.quest.com/activeroles-server/arms.aspx
Then...
Chris
PS both of these options will leave you with the manager attribute unset (we're not inserting a blank value in its place)
Get-QADUser -Manager * -Disabled | Set-QADUser -objectAttributes @{manager=''}
* While entering the domain name, provide the FQDN of the domain.
Hope this helps (^_^)
Open in new window