Subscribe to Windows IT Pro
August 29, 2007 12:00 AM

How can I rename a server from the command line?

Windows IT Pro
InstantDoc ID #96938
Rating: (1)

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.

Related Content:

ARTICLE TOOLS

Comments
  • Mikael
    4 years ago
    Feb 01, 2008

    Unfortunately This does not work on our Windows 2000 servers, which is where it is needed.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.