How can I use the command line to move a user account in Windows Server 2003?

John Savill

October 21, 2003

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

A. You can use the Dsmove command with the -newparent switch to assign new containers to Active Directory (AD) objects. For example, to move user johnsavill from the Users container to an organizational unit (OU) called Sales, type

C:>dsmove "CN=johnsavill,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com"   -newparent OU=Sales,DC=it,DC=uk,DC=savilltech,DC=com

The machine will return the following result:

dsmove succeeded:CN=johnsavill,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com

About the Author

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