Link to home
Start Free TrialLog in
Avatar of Garry Shape
Garry ShapeFlag for United States of America

asked on

PowerShell - update "Manager"?

I've been looking into some PowerShell scripts for AD, as well as some of Quest ActiveRoles cmdlets, but am not sure how I could do something like this.

Can you update a user's Manager/Direct Report (see AD properties > organization > manager) with a command? And could you also read the names from a text file and update the Manager name for each person (per line)?
ASKER CERTIFIED SOLUTION
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Garry Shape

ASKER

Cool thanks a lot.

So if I wanted to do it for a single user, would it be:
Set-QADUser -identity JDoe -manager RDoe (to make RDoe the manager of JDoe)?

Open in new window

Pretty much, yes.
Thank you dear friend