Logo
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
EPL Standings
 
 
Windows Server

Windows Server 2012 : Managing a Server Core installation using sconfig

7/22/2013 5:38:05 PM

You read in the previous recipe about all the benefits of Server Core 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 in 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:

Managing a Server Core installation using sconfig

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 192.168.0.10 255.255.255.0 192.168.0.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.

Besides IP configuration, the sconfig offers 13 other options:

  • Domain/workgroup
  • Computer name
  • Adding local administrator
  • Configuring remote management
  • Windows update settings
  • Downloading and installing updates
  • Remote desktop
  • Network settings
  • Date and time
  • Help in improving the product with CEIP
  • Logging off the user
  • Restarting the server
  • Shutting down server

In this recipe, you will see how to set up the most common configurations in your server core without advanced command lines.

Getting ready

The Server Configuration tool is added by default on a Server Core installation or Hyper-V Server. Just type sconfig at the command line and the menu will be loaded.

How to do it...

In order to manage the server core installation using sconfig, carry out the following steps:

  1. To change the domain/workgroup settings, press 1.
  2. Press D for domain or W for workgroup.
  3. Specify the domain or workgroup name, the necessary username and the password, and press Enter.
  4. To change the computer name, press 2 and specify the new computer name.
  5. Select Yes to restart the computer.
  6. To add a local administrator, press 3.
  7. Enter the account to join the local administrators group and type the user password.
  8. To configure the remote management, press 4.
  9. Select one of the following options:
    • Allow MMC Remote Management
    • Enable Windows PowerShell
    • Allow Server Manager Remote Management
    • Show Windows Firewall settings
  10. To change Windows update settings:
    1. Press 5.
    2. Select A for automatic or M for manual.
  11. To download and install updates:
    1. Press 6.
    2. Select A for all updates or R for recommended updates only.
  12. To enable remote desktop:
    1. Press 7.
    2. Select E to enable or D to disable.
  13. 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
  14. To change the date and time, press 9 and a graphical interface will show up with the date and time settings to be configured.
  15. 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
  16. 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.

Other -----------------
- SQL Server 2012 : Running SQL Server in A Virtual Environment - EXTENDED FEATURES OF VIRTUALIZATION
- SQL Server 2012 : Running SQL Server in A Virtual Environment - VIRTUALIZATION CONCEPTS
- SQL Server 2012 : Running SQL Server in A Virtual Environment - COMMON VIRTUALIZATION PRODUCTS
- What's new and improved in SharePoint 2013 : Creating an asset library
- What's new and improved in SharePoint 2013 : Using the Office Store
- What's new and improved in SharePoint 2013 : Customizing the interface
- What's new and improved in SharePoint 2013 : Creating a new site
- System Center Configuration Manager 2007 : Configuring Desired Configuration Management
- Extending Dynamics GP with Free Software : Preventing date errors with DocDateVerify, Executing SQL from the Support Administrator Console
- Extending Dynamics GP with Free Software : Checking Dynamics GP spelling with Willoware
- Microsoft Lync Server 2010 : Planning for Voice Deployment - Enhanced 911
- Microsoft Lync Server 2010 : Planning for Voice Deployment - Media Bypass
- Microsoft Lync Server 2010 : Planning for Voice Deployment - Network Configuration, Call Admission Control
- SQL Server 2012 : Running SQL Server in A Virtual Environment - WHY VIRTUALIZE A SERVER?
- SQL Server 2012 : Running SQL Server in A Virtual Environment - AN OVERVIEW OF VIRTUALIZATION
- Windows Server 2012 Group Policies and Policy Management : Understanding Group Policy (part 3) - GPO Filtering, Group Policy Loopback Processing
- Windows Server 2012 Group Policies and Policy Management : Understanding Group Policy (part 2) - Group Policy Link Enforcement, Group Policy Inheritance, Group Policy Block Inheritance
- Windows Server 2012 Group Policies and Policy Management : Understanding Group Policy (part 1) - GPO Storage and Replication
- Windows Server 2012 Group Policies and Policy Management : Local Group Policies, Domain-Based Group Policies
- Windows Server 2012 Group Policies and Policy Management - Group Policy Processing: How Does It Work?
 
 
Most view of day
- Windows Server 2012 : Installing and Managing Hyper-V in Full or Server Core Mode - Enabling the Hyper-V role
- Windows Phone 8 : Configuring Basic Device Settings - Date and Time (part 1) - Setting the Date and Time
- Installing and Configuring the Basics of Exchange Server 2013 for a Brand-New Environment (part 6)
- Microsoft Dynamics AX 2009 : Integration with Microsoft Office - Reading Excel files
- Windows Server 2012 Administration : Configuring Sites (part 1) - Creating a Site - Creating Site Subnets
- Sharepoint 2013 : Backup and Restore (part 3) - Unattached Content Database Data Recovery
- Microsoft Project 2010 : Fine-Tuning Task Details (part 3) - Interrupting Work on a Task
- Editing Digital Video with Windows Live Movie Maker (part 9) - Sharing Your Videos - Outputting to the PC
- Adobe Dreamweaver CS5 : Using Library Items and Server-side Includes (part 1) - Using the Library Assets Panel - Adding a Library item
- Windows Phone 8 : Configuring Basic Device Settings - Passwords and Screen Timeouts (part 1) - Setting the Screen Timeout
Top 10
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 3) - Creating IPv4 DHCP Scopes
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 2) - Installing DHCP Server and Server Tools
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 1)
- Windows Server 2012 : DHCP,IPv6 and IPAM - Understanding the Components of an Enterprise Network
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 3) - Translating Text with the Mini Translator
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 2) - Translating a Word or Phrase with the Research Pane
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 1) - Setting Options for the Research Task Pane, Searching with the Research Task Pane
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 2) - Ending a Linked Notes Session, Viewing Linked Notes
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 1) - Beginning a Linked Notes Session
- Microsoft OneNote 2010 : Doing Research with Side Notes (part 3) - Moving Side Notes to Your Existing Notes
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro