Search
Windows Server

Active Directory Domain Services 2008 : Manage Active Directory Domain Services Data - Move User Object

Published 1 min readBy Programming4us Editorial Team
Move an AD DS user account by using the Windows interface or by using the command line.

Move User Object by Using the Windows Interface

To move a user object by using the Windows interface, perform the following steps:

1.

Log on to a domain controller or a member computer that has Windows Server 2008 RSAT installed.

2.

Click Start, click Administrative Tools, and then click Active Directory Users and Computers.

3.

In the details pane, right-click the user object you want to move and click Move.

4.

On the Move window, shown in Figure 1, select the OU or container to which you want to move the user object; then click OK.

Figure 1. The Move object window.


Move User Object by Using the Command Line

To move a user object by using the command line, perform the following steps:

1.

Log on to a domain controller.

2.

Click Start, and click Command Prompt.

3.

In the Command Prompt window, type the following command and press Enter:

Dsmove  "CN=Jonathan Smith,CN=Users,DC=WS08DOMAIN01,DC=local" -newparent "OU=New York,DC=WS08DOMANI01,DC=local"

(where "CN=Jonathan Smith,CN=Users,DC=WS08DOMAIN01,DC=local" is the distinguished name of the user and "OU=New York,DC=WS08DOMANI01,DC=local" is the location to which you want to move the user).

4.

Verify that the results of the dsmove command entered above returns dsmove succeeded, as shown in Figure 2.

Figure 2. Moving a user using the command line.


Tip

For a full list of dsmove parameters, go to http://technet.microsoft.com/en-us/library/cc731094.aspx.