Today I received an email from a customers supplier along the lines of..

We installed an IIS feature, restarted the server and now all we get is a command prompt when connecting via RDP.

Being the first time I'd heard of this happening, I interestingly connected to see what they had managed to break this time (nuff said there)!

Upon logging in via RDP I ended up with a black screen and a command prompt, which somewhat baffled me with this server being a full GUI server install for the last 2 months up until this point!

 

 

Upon trying to run explorer.exe I was returned an error message stating the it could not be found, which began to confirm my suspicions, which was that the server had been converted to server core without the GUI.

However to further complicate matters it appears EVERY role and feature had been removed including Powershell, which made checking and changing back to Server with GUI a little more difficult.

I was able to convert the server back to a full server with GUI using Dism:

Dism /online /enable-feature /featurename:Server-Gui-Mgmt /featurename:Server-Gui-Shell /featurename:ServerCore-FullServer

After a restart I was then able to use the Add/Remove Role and Features GUI to add back the remaining roles required.

I don't know the root cause of this issue, the supplier is adamant only an IIS feature was added and a script was not used.

 

 

 

Share this blog post on social media:

Social Links

Disclaimer

All advice, installation/configuration how to guides, troubleshooting and other information on this website are provided as-is with no warranty or guarantee. Whilst the information provided is correct to the best of my knowledge, I am not reponsible for any issues that may arise using this information, and you do so at your own risk. As always before performing anything; check, double check, test and always ensure you have a backup.

Copyright ©2008-2021 Andy Barnes - Please do not copy any content including images without prior consent!

Designed and Hosted by Andy Barnes

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.