You want to configure the host name for a server.
From the Control Panel, open the System applet.
Select the Computer Name tab (or Network Identification on Windows 2000).
Click the Change button (or Properties on Windows 2000).
Enter the new name in the Computer name field.
If the computer is a member of the domain, you will be prompted for credentials to use for renaming the account in the domain unless you are logged in with a domain administrator account.
Click OK to confirm that you'll need to restart (this won't actually restart the computer).
Click OK again.
Click Yes if you want to restart now or No to restart later.
Use this command to display the current computer name:
The compname.exe utility, which is available from http://www.willowhayes.co.uk/, can also display the current computer name:
> compname /s
But this command can also do a whole lot more. This changes a computer's name:
> compname /c
The truly powerful feature of compname is its ability to name a system based on certain variables (or what it calls templates). You can name a computer based on its serial number, UUID, MAC address, and date, among other things. The following example changes a computer name to contain its serial number at the end:
> compname /c pc-?s
compname /? for more
information on the available templates.
This is a registry-based method for setting a computer's ...