Server 2012 – Recover GUI in windows 2012 and 2012R2 & .Net Framework feature dependency in windows 2012

How to recover from this situation and to bring back the power shell, .net feature and UI in 2012, 2012U1

As stated earlier, this will leave the server without a graphical shell for user interaction. Only the command prompt will be available post reboot.

If you get into this situation, run the below commands in the Server Core’s command prompt window to help you recover:

i) Run the below commands one by one

DISM.exe /Online /enable-feature /featurename:NetFx4 /all

DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell /all

ii) Reboot the server

iii) To restore the GUI need to run the PowerShell commands. Below procedure how to open PowerShell prompt in server core’s command prompt

a) To begin, press CTRL-ALT-Del and select Task Manager from the list

b) Once Task Manager Opens select File and Run new task

 

c) You should now see the Create new task menu, type PowerShell.exe and select OK

d) PowerShell prompt should now be open

iv) Run the below commands on the PowerShell prompt

Install-WindowsFeature Server-Gui-Shell

Install-WindowsFeature Server-Gui-Mgmt-Infra

v) Once the GUI Shell is installed, you will need to restart the server with the following command:

Restart-Computer

 

From another server connect to install the features remotely:

add the following features to enable Windows GUI:

 

 

Next and Install,

Once the process will finish and the server restarted you fixed the problem 🙂

 

Enjoy.