Adding and removing the GUI in Windows Server 2012

In Windows Server 2008 R2 you could select whether you wanted to run Standard (GUI) och Core version of Windows Server. In Windows Server 2012 the GUI is a feature which you can add or remove.

To remove the GUI you use the following Powershell one-liner:

Remove-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

You can also uninstall the GUI, which removes the binary files from the disk. To completely uninstall the GUI you use the following Powershell one-liner:

Uninstall-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

If you realize you are in over your head you can add it back in using:

Add-WindowsFeature Server-Gui-Shell

… or:

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source c:\mountdir\windows\winsxs

You can also do all of this using Dism:
Dism /online /enable-feature /featurename:ServerCore-FullServer /featurename:Server-Gui-Shell /featurename:Server-Gui-Mgmt


Intel® PRO/1000 GT Desktop Adapter and VLANs

I have my own lab server at home and the other day I finally reinstalled it with Windows Server 2012 RC. One of the NICs in the server is an Intel® PRO/1000 GT Desktop Adapter which is connected to a VLAN trunk in one of my switches to be able to put VMs on different VLANS. To configure the NIC to be a VLAN trunk you historically needed to download drivers from Intel.

Herein lies the problem. Intel does not provide new drivers for Windows 7/2008R2. Instead they refer to Microsoft built-in drivers. This means that there is no way that they will provide drivers for Windows Server 2012 Smile

After some searching I found a solution:

The only way to find and change advanced settings for the Intel NIC is the Registry. Start regedit and browse to HKLM\SYSTEM\CurrentControlSet\Control\Class\{GUID}\XXXX\VlanFiltering registry key (where {GUID} is the GUID containing the network adapter configuration and XXXX is the NIC to be confgured) and change it from 1 to 0. Then you reboot.