Home » Powershell » Moving Object from one OU to other OU

Moving Object from one OU to other OU

Get-Content C:\temp\Computers.txt| %{Move-ADObject -Identity “CN=$_,OU=WIN10,OU=ABC,OU=Computers,DC=CHILD,DC=Domain,DC=Vmwareenterprise,DC=com” -TargetPath “OU=Prod,OU=WIN10,OU=ABC,OU=Computers,DC=dev,DC=DIR,DC=vmwareenterprise,DC=com”} -Verbose

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website