Avatar of MilesLogan
MilesLogan
Flag 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"
Powershell

Avatar of undefined
Last Comment
MilesLogan

8/22/2022 - Mon