Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Changing the Windows computer name in Server 2012

Summary: This article provides information on how to change the Windows computer name in Windows Server Core using Sconfig and Windows PowerShell

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

Use the following steps to change the computer name using Server Configuration on a workgroup or standalone server running Windows Server Core.

     1. Type

Sconfig


and press Enter in the Command Prompt window to open Server Configuration.

     2. Type 2 and press Enter to continue. Type the new computer name and press Enter to change the computer name.

         HOW10252_en_US__1sconfig name 2

     3. Click Yes to restart the computer on Restart.

         HOW10252_en_US__2W_sconfig_name 3_JM_V1


Use the following steps to change the computer name using Server Configuration on a domain joined server running Windows Server Core.

     1. Type

Sconfig


and press Enter in the Command Prompt window to open Server Configuration.

     2. Type 2 and press Enter to continue. Type the new computer name and press Enter to change the computer name.

          HOW10252_en_US__3W_ps_domain ren_JM_V1

     3. Type the domain Administrator password and press Enter to continue.

         HOW10252_en_US__4W_ps_rename pass_JM_V1

     4. Click Yes to restart the computer on Restart.

         HOW10252_en_US__5W_ps_rename dialog box_JM_V1

Use the following steps to change the computer name using Windows PowerShell on a workgroup or standalone server running Windows Server Core.

     1. Type

Start PowerShell


and press Enter in the Command Prompt window to start Windows PowerShell.

     2. Type

Rename-Computer -NewName CN1 -LocalCredential WS\Administrator -PassThru


 and press Enter to change the computer name. Replace CN1 with the name of the computer and WS with the current name of the computer.

     3. Type the local Administrator password and click OK to complete the change.

         HOW10252_en_US__6W_ps_ren comp 2_JM_V1

     4. Type

shutdown -r -t 0


to reboot the server.

Use the following steps to change the computer name using Windows PowerShell on a domain joined server running Windows Server Core.

     1. Type

Start PowerShell


and press Enter in the Command Prompt window to start Windows PowerShell

     2. Type

Rename-Computer -NewName CN1 -DomainCredential vdomain\Administrator -PassThru


and press Enter to change the computer name. Replace CN1 with the name of the computer and vdomain with the domain name.

     3. Type the domain Administrator password and click OK to complete the change.

         HOW10252_en_US__7W_ps_ren dom_JM_V2

4. Type

shutdown -r -t 0


to reboot the server.

Additional Information:

Additional information about the Windows PowerShell command -NewName can be found on TechNet.

Article Properties


Affected Product

Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2

Last Published Date

09 Sep 2022

Version

4

Article Type

How To