Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of MilesLogan

ASKER

Thanks all !