System Properties, Startup, and Shutdown - 6.3 Changing the System Name
(Page 3 of 4 )
Problem
You want to change the name of your computer, or a computer on a domain on which you have administrative privileges.
Solution
Using a graphical user interface
- Right-click My Computer, choose Properties, and click the Computer Name tab.
- Click the Change button.
- In the Computer Name Changes dialog box, shown in Figure 6-3, type in your new computer name in the Computer Name box. Click OK and then click OK again.

Figure 6-3. The Computer Name Changes dialog boxYou can only use this technique on your own computer, not on another computer in a domain to which you’re attached.
Using a command-line interface
If you want to rename a computer that is a member of an Active Directory domain, you can use thenetdom tool. You’ll be able to rename not just the computer you’re attached to, but others as well, as long as you have administrative permission to do so on the PC. You can do this only on Windows XP Professional, not on Home Edition.
To change a computer’s name, do the following:
- Install the Windows XP Support Tools from the Support\Tools folder on the Windows XP Professional CD.
- At the command line, use thenetdomcommand line tool to rename a computer, using this syntax:
> netdom renamecomputer machine /newname:new_computername / userd:domainname\
administrator_id /passwordd:* / usero:local_admin /passwordo:* / reboot:seconds
before automatic reboot
Following is an explanation of the syntax:
Machine
The current name of the computer that you want to
rename.
New_computername
The new name that you want to give to the
computer.
Domainname\administrator_id
The NetBIOS domain name and the administrator
identification (ID) of the user account that has
administrative permissions to the computer that you
want to rename.
Local_admin
A user who has local administrative permissions. This
can be the same account that you specified
for /userd.
The asterisk symbol (*)
Used for the /passwordd: and /passwordo:
parameters. It specifies that the password should be
typed with hidden characters when the command is
submitted, for security purposes.
Seconds before automatic reboot, in seconds
The amount of time, in seconds, before the computer
restarts after it is renamed. If you don’t specify this
parameter, the computer will have to be restarted
manually.
/userd
The user account used to make the connection with
the domain specified by the /Domain
argument.
/usero
The user account for making the connection with the
trusting domain.
Discussion
Using a graphical user interface
When using the Computer Name tab, make sure you do not confuse the computer description with the computer name. The computer name is what will show up on a network and will be what your computer is called. The description allows you to provide more details about the computer, for example, “computer in the downstairs living room.”
Using a command-line interface When you use netdom to rename a computer, you may see the following, lengthy message: “This operation will rename the computer “Mycomputer” to “Yourcomputer.” Certain services, such as certification authority, rely on a fixed computer name. If any services of this type are running on “Mycomputer”, a computer name change would have an adverse impact.” You’ll then be prompted to proceed. If you don’t want this warning to appear, and don’t want to be prompted to proceed, use the/forceswitch when you enter thenetdom command in addition to the other parameters you use.
See Also
MS KB 298593, “How To Use the Netdom.exe Utility to Rename a Computer in Windows XP”
Next: 6.4 Create a Multiboot Menu >>
More Windows Scripting Articles
More By O'Reilly Media
|
This article is excerpted from chapter six of the Windows XP Cookbook, written by Robbie Allen, Preston Gralla (O'Reilly; ISBN: 0596007256). Check it out today at your favorite bookstore. Buy this book now.
|
|