Migrating OUs and Subtrees of OUs
Updated: September 29, 2013
Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2
Applies to: Active Directory Migration Tool 3.2 (ADMT 3.2)
If you want to copy organizational units (OUs) and subtrees of OUs to your target domain, you can use either the command-line or scripting option and substitute the appropriate parameters. You must specify a source OU and a target OU, and the target OU must exist. All objects in the source OU and all subordinate OUs are migrated to the target OU, but the specified source OU itself is not migrated.
If you are using the command-line option to migrate your accounts, groups, or computers, and you also want to migrate OUs, modify the command line to use the /D option. Instead of using the /N (/IncludeName) option, you must use the /D (/IncludeDomain) option with RECURSE and MAINTAIN, as follows:
ADMT /D:RECURSE+MAINTAIN /O "<option_file.txt>"
If you are migrating accounts, groups, or computers by using the scripting option and you also want to migrate OUs, modify your script to use the admtDomain option. Instead of using the admtData or admtFile option, you must use the admtDomain option with admtRecurse and admtMaintainHierarchy, as follows:
objUserMigration.Migrate admtDomain + admtRecurse + admtMaintainHierarchy