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

A. You can use the Dsmove command with the -newname switch to rename Active Directory (AD) objects. For example, to change user savillj to user johnsavill, type

C:\>dsmove CN=savillj,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com
   -newname johnsavill

The machine will return the following result:

dsmove succeeded:CN=savillj,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.