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

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

Leave a Reply

Your email address will not be published. Required fields are marked *