How can I rename a server from the command line?

John Savill

August 28, 2007

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

A. You can use the NetDom command, which is part of Support Tools, to add a new Fully Qualified Domain Name (FQDN) to a server, make the new name the primary name, then remove the old name, as you see below. This functionality is useful when you can't just do a straight rename operation (in which case, you would use NetDom Renamecomputer). For example, you would use this tool with domain controllers (DCs), as follows:

netdom computername ORIGNAME /add:NEWNAME.domain.com”
netdom computername ORIGNAME /makeprimary:NEWNAME.domain.com”
netdom computername NEWNAME /remove:ORIGNAME.domain.com”
netdom computername NEWNAME /enumerate

The last command will list all the names for the server.

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