Search This Blog

Wednesday 4 September 2013

How to move a user from a Parent Domain to a Child Domain with PowerShell

If you have a situation where you need to move a Active Directory object from a Parent Domain to a Child Domain you will find you cannot do this with the Active Dirrectory MMC.  You need Power Shell.

Here is the Power Shell for the task

move-AdObject -Identity"CN=HotChilli,OU=Overseas,OU=Staff,OU=Users,OU=daveshotsauce,DC=daveshotsauce,DC=Local" -TargetPath "OU=US,DC=us,DC=daveshotsauce,DC=local" -TargetServer "habenero.us.daveshotsauce.local"

No comments:

Post a Comment