Posted by: Niko | September 19, 2006

How to rename an Active Directory computer account

I believe the easiest way to rename a domain computer account is the netdom.exe command. Netdom.exe is part of the Windows XP Support Tools -pack which is found in the Windows XP Professional CD-ROM. In addition to the computer renaming netdom.exe could be used in various domain related computer tasks e.g. joining, removing, adding and quering.

Syntax of the rename command (wrapped to multiple lines for easy reading):

NETDOM RENAMECOMPUTER machine /NewName:new-name
/UserD:user [/PasswordD:[password | *]]
[/UserO:user [/PasswordO:[password | *]]]
[/Force]
[/REBoot[:Time in seconds]]

Example:

NETDOM RENAMECOMPUTER computer1 /NewName:computer2 /userD:mydomain\administrator /passwordD:* /userO:administrator /passwordO:* /Force

Command renames computer1 to computer2. Parameter userD determines the user account that has administrative permissions to the computer object in the domain and the parameter userO the user account that has local administrative permissions on the computer1. The asterisk symbols after the password parameters specifies that the password should be typed with hidden characters when the command is submitted. Without the force -parameter the user is prompted to proceed with the command. Automatic restart is not used in this example but you can set it up with the reboot -parameter.

Advertisements

Responses

  1. Aletaan puhua asiaa. Keksi vielä tapa millä nimetään active directory domain uudelleen ja vedetään vielä propagate kaikkiin koneisiin ilman että tarvii kopsia profiileja niin helvetisti ympäriinsä 😀 nimim. tiedän mitä teen valkeakoskella ensi viikolla..

    auton kuvia löytyy muuten osoitteesta http://velikani.com/galleria/ , muuten hyviä kuvia mutta vähän outdated, tänään tuli mustat kilvet katsastusasemalta 🙂


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: