You can use the Microsoft Windows 2000 Resource Kitís Movetree utility to move organizational units (OUs), users, or computers between domains in a forest. This capability is useful for consolidating domains or to reflect organizational restructuring.
You canít use Movetree to move certain objects, such as local and domain global groups. If you move the container that these objects are in, the utility places the objects in an orphan container in the source domainís LostAndFound container.
Movetree also doesnít move associated data, such as policies, profiles, logon scripts, and personal data. To move these items, use the Remote Administration Scripts tool to write custom scripts.
Movetreeís syntax is
movetree [/start | /continue | /check] [/s SrcDSA] [/d DstDSA] [/sdn SrcDN] [/ddn DstDN] [/u Domain\Username] [/p Password] [/quiet]
The following table explains each command
|/start||Starts a Movetree operation with the /check option by default. Use /startnocheck to start a Movetree operation without a check.|
|/continue||Continues a failed Movetree operation.|
|/check||Checks the whole tree before moving an object.|
|/s <SrcDSA>||Source server's fully qualified primary DNS name. Required.|
|/d <DstDSA>||Destination server's fully qualified primary DNS name. Required.|
|/sdn <SrcDN>||Source subtree's root distinguished name (DN). Required for /start and /check operations. Optional for /continue operations.|
|/ddn <DstDN>||Destination subtree's root DN. Relative distinguished name (RDN) plus destination parent DN. Required.|
|/u <Domain\UserName>||Domain name and user account name. Optional.|
|/p <Password>||Password. Optional.|
|/quiet||Quiet mode. Doesnít include screen output. Optional.|
Run the Movetree utility in /check mode first, to perform a test without carrying out the action. Youíll see any errors that will occur, and the utility will write these errors to the file movetree.err in your current directory. If your test is OK, proceed with the /start option.
An example Movetree command is
movetree /check /s titanic.market.savilltech.com /d pluto.legal.savilltech.com /sdn OU=testing,DC=Market,DC=Savilltech,DC=COM /ddn OU=test2,DC=Legal,DC=Savilltech,DC=COM