Skip to main content

Switching between Windows Server 2012's interface levels

·622 words·3 mins
system-administration tech minimum-server-interface powershell server-core sysadmin technology windows-2012
James Pettigrove
Author
James Pettigrove
Cloud Engineer with a focus on Microsoft Azure
Table of Contents

One of the much touted features of Microsoft’s latest incarnation of the Windows Server release, Server 2012 is that administrators can freely switch between levels of interface available to the user.

In Server 2008 R2, the Server Core option was introduced which gave administrators all the power of the Window Server product without the bloat and attack vector of the GUI interface. Trouble was, this feature was permanent. This spelt trouble for those who didn’t really know their way around Windows without the safety of Explorer.exe.

Thankfully, Microsoft have changed this in Server 2012 and now the GUI level can be changed freely via the Roles and Features wizard or via Powershell which I will demonstrate today.

Before we dive into how to change the levels of interface in Server 2012 let’s explore the levels you can choose from:

Server with GUI
#

This is the mode most will be familiar with. The typical Windows product with Windows Explorer, Internet Explorer and all the trimmings.

Minimal Server Interface
#

This is a new addition in Server 2012. What we get is a very very nice in between mode where by all the typical binaries ala MMC, majority of Control Panel and even the Server Manager but minus the two most patched and vulnerable binaries in Windows; Windows Explorer and Internet Explorer.

Server Core
#

The bare minimum; nothing but a Command Prompt here. If you like your servers lean and mean then pick this bad boy. This type of configuration would be a favourite among those already running Linux servers and enjoy management via shell and remote management tools.

Now that we now what we are dealing with let’s go and reduce a Server with GUI to a Minimal Server Interface.

Drop down to Powershell and input the following cmdlet:

Uninstall-WindowsFeature Server-Gui-Shell

gui_to_minimal

Once complete, we will be warned that a restart must take place to complete the install. For scripting purposes we can appended the above powershell cmdlet with -restart to restart the machine after the GUI interface has been removed automatically if you so desire.

Now that we have restarted the machine we are presented with the a Minimal Server Interface configuration of Window Server 2012.

minimal

As you can see, upon login we are presented with a command prompt and Server Manager which has access to a wide array of applications available in Control Panel. Importantly, via Computer Management application we can still use Device Manager. This is pretty big in my view as most struggle with device driver management in Server Core installations. Having access to Device Manager (in both read and write mode) would remove this boundary to running lean and mean server installations.

Let’s take it one step further and remove all GUI components and reduce our Minimal Server Interface to a Server Core installation.

Once again, open up Powershell and input the following:

Uninstall-Windowsfeature Server-Gui-Mgmt-Infra

minimal_to_servercore

Removal of the rest of the interface requires a restart just like the previous cmdlet so when you are comfortable, go ahead and restart the machine.

As expected, after restart we have ourselves a Server Core installation.

servercore

Nothing but a command prompt.

If you wanted to do the reverse, simply use the same cmdlet but instead of Uninstall-Windowsfeature use Install-Windowsfeature. You can install multiple features at a time, simply separate each feature by a comma.

For example if you wanted to go from a Server Core installation back up to a Server with GUI then use the following cmdlet:

Install-WindowsFeature Server-GUI-Mgmt-Infra,Server-Gui-Shell

Easy huh?

If you don’t need the full GUI experience then I strongly suggest making use of the Server Core setup. If that is too hardcore then the Minimal Server Interface is a great in-between with the best of both worlds.

Related

Give a computer account Send-As permissions in Exchange Powershell
·189 words·1 min
system-administration tech exchange exchange-2007 exchange-2010 powershell sysadmin technology
Take for instance the File Server Resource Manager that is a feature of the File Server role.
Move Quorum Disk Witness to another node
·226 words·2 mins
system-administration tech cluster hyper-v server-core sysadmin technology windows-server-2008-r2
I cannot say the Failover Cluster Manager is a very intuitive management interface.
How to setup and restore a object from the Active Directory Recycle Bin
·310 words·2 mins
system-administration tech active-directory powershell sysadmin technology
CTRL+Z, the undo button, the recycle bin, shadow copies; The human element in the world of IT can some times be our undoing; This goes along way to explain the push to automate EVERY facet of the our IT systems.