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

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
TAGS: Windows 8
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.