Radio

Uninstall GUI from Windows Server 2012 R2

Some programs require the desktop environment to be present. Otherwise the installation procedure doesn’t work. I came across such a program and was forced to install it on a server with GUI installed. Later I realized that the program itself doesn’t require the GUI (at any time), so i decided to remove the GUI. Here’s how:I’ll show how to do it via PowerShell only. The only way to learn PowerShell it is to use it.

Cmdlet used to achive this is ‘Uninstall-WindowsFeature’ (or it’s alias ‘Remove-WindowsFeature’). In my case, I want to remove both GUI Shell and GUI Management Tools and Infrastructure. Run PowerShell in elevated mode and list the features in order to get the percise feature name: