Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Moving computer to new OU

$
0
0

$Find = Get-ADComputer MG10011001

Write-host $Find

Move-ADObject $Find -TargetPath "OU=MGH_USERS,DC=Acme,DC=org"

 

When I run the above code it completes without error but it does not move the machine.  the Write-Host line Does work and it Does show me where my machine lives.    how come this gives no errors yet fails to move my machine?

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles