Managing a Hyper-V Server Core installation using sconfig

Share this:

With all the benefits that Server Core bring such as performance, security and so on. But without the GUI, it’s not easy to do the daily management and maintenance of Hyper-V. If you want to change the computer name or the IP address, the GUI is always the easiest to use. But on the other hand, the command line can bring a fast and an automated process.

That’s why since Windows Server 2012, the Server Core version of Windows and Microsoft Hyper-V Server 2012 comes with the Server Configuration (sconfig). This is a command line with a simple interface to reduce the time for doing the most common tasks in Windows.

In the following screenshot, you can see an example of sconfig’s first page:

clip_image002

sconfig can do this via an intuitive numerical menu to facilitate the Windows configuration.

A simple example is when you have to change the IP address of your computer by using the command line. Have a look into the following command:

netsh interface ip set address “Local Area Connection” static 10.10.10.10 255.255.255.0 10.10.10.1 1

Sometimes it is hard to remember the exact command syntax and this can lead to server misconfiguration.

Using sconfig, the process would be simply to press the numbers 8, 0, and then 1 from the menu and simply specify the new IP configuration. That’s it.

SCONFIG Options

Besides IP configuration, the sconfig offers 13 other options:

1. Domain/workgroup

2. Computer name

3. Adding local administrator

4. Configuring remote management

5. Windows update settings

6. Downloading and installing updates

7. Remote desktop

8. Network settings

9. Date and time

10. Help in improving the product with CEIP

11. Logging off the user

12. Restarting the server

13. Shutting down server

Here are some examples how to set up the most common configurations in your server core without advanced command lines.

To change Domain/Workgroup

1. Press 1

2. Than press D for Domain or W for Workgroup

3. Specify the domain or workgroup name, the necessary username and the password and press Enter

To change the computer name

1. Press 2 and specify the new computer name.

2. Select Yes to restart the computer.

To add a local administrator

1. Press 3.

2. Enter the account to join the local administrators group and type the user password.

To configure the remote management

1. Press 4.

2. Select one of the following options:

  • Allow MMC Remote Management
  • Enable Windows PowerShell
  • Allow Server Manager Remote Management
  • Show Windows Firewall settings
To change Windows update settings

1. Press 5.

2. Select A for automatic or M for manual.

To download and install updates

1. Press 6.

2. Select A for all updates or R for recommended updates only.

To enable remote desktop

1. Press 7.

2. Select E to enable or D to disable.

To configure network settings

1. Press 8.

2. Select the network adapter number you want to configure and then select one of the existing options:

  • Set network adapter IP address
  • Set DNS Servers
  • Clear DNS Server Settings
To change the date and time

1. Press 9 and a graphical interface will show up with the date and time settings to be configured.

To restart and shut down the server:
  • Press 1+0 to join Customer Experience Improvement Program
  • Press 1+1 for logoff
  • Press 1+2 to restart the computer
  • Press 1+3 to shut down the server
  • Press 1+4 to exit to command line

After these configurations using sconfig and with reduced command line interaction, your server will be ready for the production environment.

How it works

Server Configuration basically runs scripts in the background for every option that has been selected through a numeric menu, making your life much easier. For every number you select, sconfig can run another script to show a submenu or just run the final script to apply the changes you have selected.

Written by Marcos Nogueira

Marcos Nogueira

With more than 18 years experience in Datacenter Architectures, Marcos Nogueira is currently working as a Principal Cloud Solution Architect. He is an expert in Private and Hybrid Cloud, with a focus on Microsoft Azure, Virtualization and System Center. He has worked in several industries, including Aerospace, Transportation, Energy, Manufacturing, Financial Services, Government, Health Care, Telecoms, IT Services, and Gas & Oil in different countries and continents.

Marcos was a Canadian MVP in System Center Cloud & Datacenter Managenment and he has +14 years as Microsoft Certified, with more than 100+ certifications (MCT, MCSE, and MCITP, among others). Marcos is also certified in VMware, CompTIA and ITIL v3. He assisted Microsoft in the development of workshops and special events on Private & Hybrid Cloud, Azure, System Center, Windows Server, Hyper-V and as a speaker at several Microsoft TechEd/Ignite and communities events around the world.

Related Post

How to disconnect media on all VMs in SCVMM 2008 R... Hello folks, Today I had a requirement to disable configure all VMs of a SCVMM 2008 R2 to  No Media and I could’ve gone to each one of the VMs, ask P...
How to prepare Windows Server 2012 R2 to support E... Exchange Server 2013 Service Pack 1 is finally here and now we can start taking advantage of Windows Server 2012 R2 for either Operating System on Exc...
How to move your workloads to Azure When integrating your on-premises environment with Azure, you might want to use the lift-and-shift approach to migrate some of your existing workloads...
How to run Best Practices Analyzer in Windows Serv... In this Tutorial we are going over the process to run the BPA (Best Practices Analyzer) on Windows Server 2012 R2. The Best Practices Analyzer concept...