To rename a user object by using the Windows interface, perform the following steps:
To rename a user object by using the command line, perform the following steps:
Note
Renaming a user account by using the command line is a two phase process. The first step uses the dsmod command to modify the applicable name attributes for the object. The second step uses the dsmove command to modify the distinguished name of the object.
Dsmod user "CN=John Smith,CN=Users,DC=WS08DOMAIN01,DC=local" -fn Jonathan -display "Jonathan Smith"
Tip
For a full list of dsmod user parameters, go to http://technet.microsoft.com/en-us/library/cc732954.aspx.
Dsmove "CN=John Smith,CN=Users,DC=WS08DOMAIN01,DC=local" -newname "Jonathan Smith"