Installing GUI Feature on Windows Server 2012 Core

Only for Windows Server 2012 Core

  1. Confirm windows edition is Standard or Datacenter.
PS C:\> Get-ComputerInfo | Select-Object WindowsProductName, WindowsEditionId

WindowsProductName WindowsEditionId
------------------ ----------------
Windows Server 2012 Datacenter ServerDatacenter
  1. Install GUI feature.
# Online
PS C:\> Install-WindowsFeature -Name Server-Gui-Mgmt-Infra, Server-Gui-Shell -Restart

# Offline
PS C:\> DISM /Get-WimInfo /WimFile:D:\sources\install.wim
PS C:\> Install-WindowsFeature -Name Server-Gui-Mgmt-Infra, Server-Gui-Shell -Source wim:D:\sources\install.wim:4 -Restart
  1. Uninstall GUI feature.
PS C:\> Uninstall-WindowsFeature -Name Server-Gui-Mgmt-Infra, Server-Gui-Shell -Restart
PS C:\> Get-WindowsFeature –Name *Server-Gui* | ft name, installed