Rename the Local Windows Server from the Command Line without PowerShell
-
As Server Core and GUI-less installations become more and more commonplace simple tasks like renaming the host from the command line become very important. Using the %computername% variable makes this very easy. Let’s assume that we are logged in as the local administrator account and that we want to rename our computer to “snoopy” we can use this command:
NETDOM RENAMECOMPUTER %computername% /newname:snoopy /userd:administrator
That’s all that there is too it. Using the %computername% variable makes this a simple, local command with the least effort.
Originally posted on my Windows Administration blog in 2013 here: http://web.archive.org/web/20131001022749/http://www.scottalanmiller.com/windows/2013/03/24/rename-the-local-server-from-the-command-line/
-
Totally coincidence that I posted this same topic for PowerShell yesterday and today I started moving over my Windows Admin blog content and the first post over there was the same topic, but without PowerShell!