Moving an OU
Applies To: Windows Server 2008 R2
This topic explains how to use the Active Directory module for Windows PowerShell to move an organizational unit (OU).
Example
The following example demonstrates how to move the OU ManagedGroups to the OU Managed:
Move-ADObject "OU=ManagedGroups,DC=Fabrikam,DC=Com" -TargetPath "OU=Managed,DC=Fabrikam,DC=Com"
If the Protect from Accidental Deletion option is enabled on the OU to be moved, an “Access denied” message appears when you attempt to perform this operation.
Additional information
For a full explanation of the parameters that you can pass to Move-ADObject, at the Active Directory module command prompt, type Get-Help Move-ADObject -detailed, and then press ENTER.