An easy command-line configuration utility for Windows Server 2012 and later: sconfig

Posted: (EET/GMT+2)

 

Windows is most well-known for its GUI, but there's the possibility to run Windows Server without the normal, graphical user interface. This is called the Core edition. Now, if you are running a Windows Server without the full desktop experience, many common configurations can now be done from a single place.

All you need to remember is a single command: "sconfig".

Just open Command Prompt as Administrator and type:

sconfig

You will get a text-based menu like in the ol' DOS times, something like this:

Server Configuration
--------------------
1) Domain/Workgroup
2) Computer Name
3) Add Local Administrator
4) Configure Remote Management
5) Windows Update Settings
6) Download and Install Updates
...
15) Exit to Command Line

You can use the number keys to select your command. Such as, join the server to a domain, rename it, set up remote management, or install updates; all without loading Server Manager or PowerShell scripts.

The "sconfig" command first appeared in Windows Server 2008 R2 Core installations and continues in 2012, 2016, and likely onwards. It's a quick way to get your server ready without any GUI overhead.