ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Rename the Local Windows Server from the Command Line without PowerShell

    Scheduled Pinned Locked Moved IT Discussion
    windowscommand line
    2 Posts 1 Posters 668 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      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/

      1 Reply Last reply Reply Quote 3
      • scottalanmillerS
        scottalanmiller
        last edited by

        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!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post