SCONFIG, short for “Server Configuration” was introduced in Server 2008. It’s a simple command line utility that helps bridge the gap between complete lack of a graphical user interface and running everything by command. As Microsoft pushes for servers with a smaller footprint and less vulnerability to GUI related attacks, SCONFIG helps facilitate tasks without knowing long precise commands. To demonstrate the ease of SCONFIG I will change the hostname of a Windows Server 2012 Core installation.
At a command prompt type “SCONFIG”. You will a blue prompt like the one below. It will show your current hostname, or Computer Name here.
Type the corresponding number for the function you want to perform. In this case it is 2.
Type the new name of the system and hit Enter. I am using DAN-OAK-DC03 as my server name. It will change the name and require a reboot.
That’s all it takes. SCONFIG is a very quick and easy way to change the hostname.