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

John Savill

October 20, 2003

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

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

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