JSI Tip 3219. Using the MoveTree utility to move objects between domains in a forest?

Jerold Schulman

January 3, 2001

2 Min Read
ITPro Today logo in a gray background | ITPro Today


When you reorganize, you may want to move objects from one domain to another within your forest.

The MoveTree utility from the support tools can assist.

Install the Windows 2000 Support Tools from the SupportTools folder on the Windows 2000 Professional or Windows 2000 Server CD-ROM.

MoveTree initially moves objects to the Lost and Found container in the source domain, and from there to the destination domain. Objects that can NOT be moved are placed in an orphancontainer in the Lost and Found container. All objects that are moved are logged in the MoveTree.log file and errors are recorded in the MoveTree.err file.

MoveTree does NOT move profiles, logon scripts, and the users' personal data.

MoveTree will move an OU with all the linked GPOs, but clients will still receive the Group Policy settings from the source domain, so you should re-create the GPOs for the moved OUs in the destination domain, and delete the old GPOs in the source domain.

The MoveTree syntax is:

   MoveTree [/start | /continue | /check] [/s SrcDSA] [/d DstDSA]   [/sdn SrcDN] [/ddn DstDN] [/u DomainUsername] [/p Password] [/quiet]   /start               : Start a MoveTree operation with /check option by default, or use the /startnocheck switch.   /continue            : Continue a failed MoveTree operation.   /check               :Check the whole tree before actually moving any object.   /s           : Source domain DSA name. Required.    /d           : Destination domain DSA name. Required.   /sdn          : Source subtree's root domain name,                          required for /Start and /check, optional for /continue.   /ddn          : Destination subtree's root domain name. Required.   /u  : Domain name and user account name. Optional.   /p         : Password. Optional.   /quiet               : Quiet mode. Without any display. Optional.

Examples:

MoveTree /check /s Server1 /d Server2 /sdn OU=SourceOU,DC=Dom1 /ddn OU=DestOU,DC=Dom2 /u Dom1administrator /p *MoveTree /start /s Server1 /d Server2 /sdn OU=SourceOU,DC=Dom1 /ddn OU=DestOU,DC=Dom2 /u Dom1administrator /p AdminPasswordMoveTree /startnocheck /s Server1 /d Server2 /sdn OU=SourceOU,DC=Dom1 /ddn OU=DestOU,DC=Dom2 /u Dom1administrator /p AdminPasswordMoveTree /continue /s Server1 /d Server2 /ddn OU=DestOU,DC=Dom1 /u Dom1administrator /p * /quiet

Guidelines for Using MoveTree

DNS must be working properly.

You must be a member of the Enterprise Admins group.

Use all lower case letters for the source an destination, or you will receive a 0x20e4 The Naming Context error.

The destination domain must be in Native mode.

Even though MoveTree moves the computer accounts, they are invalid and unusableuntil you run NETDOM to move the computer accounts.


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like