Link to home
Start Free TrialLog in
Avatar of MilesLogan
MilesLoganFlag for United States of America

asked on

Move Multiple Users to a different OU with Powershell

Hi EE

I need to move 20,000 users to a new OU and wanted to get some insight from the experts if the line below is sufficient or am I risking something or a better way to get it accomplished  ?


gc users.txt | Get-ADUser | Move-ADObject -TargetPath "DC=OU,DC=Test,DC=New,DC=My"
SOLUTION
Avatar of Prashant Girennavar
Prashant Girennavar
Flag of India 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
SOLUTION
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
ASKER CERTIFIED SOLUTION
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 MilesLogan

ASKER

Thanks all !