Hi,
You can create a script to do this. The Move-ADObject cmdlet moves an AD object to a specific container.
$sAMAccountName = "someuser"
$ou = "OU=test,DC=contoso,DC=com"
Get-ADUser -Identity $sAMAccountName | Move-ADObject -TargetPath $ou
https://learn.microsoft.com/en-us/powershell/module/activedirectory/move-adobject
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
If the list is a CSV file you can use the Import-Csv cmdlet to read it. Assudming the header of the column is "sAMAccountName", you can get the sAMAccountName like below
Many thanks Ian!
I was also referring to this link https://www.alitajran.com/bulk-move-ad-users-to-another-ou-with-powershell/ and I think it's the same as your reply:)