Install the package:

  • This will install the “User Interface & Infrastructure” feature
  • Run it through DISM:
    • Import-Module Dism
    • Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer,Server-Gui-Shell,Server-Gui-Mgmt
  • Run it through PowerShell:
    • Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart
      –Source c:\mountdir\windows\winsxs
  • Then if you want the total desktop experiences, you have to enable it separately by going to the features & Roles to enable it

Staged the package/feature:

  • Go to the feature and Role to deselect the “User Interface & Infrastructure” feature
  • Reboot the machine
  • This will only disable/stage the feature. The package is still on the server

Recover the GUI:

  • From PoerShell session, run the “sconfig” command/cmdlet
  • Use option 12 to recover it (the package must already exists on the machine for it to work)