On Removing .Net 4.5 from a Windows Server…

Posted on Updated on

I had an occasion where all things pointed to .NET 4.5 being corrupted and needed to be reinstalled. In my case, MMC kept crashing on me no matter what I did.

If you remove .NET 4.5 from your server, after the requisite restart, you’ll be presented with a handy little thing called a Command Window…aaaaaaaand nothing else. So crack your knuckles and get ready to do some typin’ ladies & gents…

CommandWindow

The only way to get the GUI back and Powershell, for that matter, is to run the following DISM commands from the handy Command Window.

DISM being the Deployment Image Servicing and Management tool.

With thanks to Sanup Kumar Bishla in his LinkedIn article p

Type the following two commands and wait for the completion of each…then type in the third and final command to force a restart; When you come back up, you’ll need to invoke a few PowerShell commands before you have your GUI back!

  • DISM.exe /Online /enable-feature /featurename:NetFx4 /all
  • DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell /all
  • shutdown /r

…now that you’re back… Press CNTL-ALT-DEL and bring up the Task Manager.

NOTE: If you’re RDP’ing into the server, type CNTL-ALT-END instead.

  • Once Task Manager Opens select File and Run new task
  • You should now see the Create new task menu, type PowerShell.exe and select OK
    • NOTE: PowerShell prompt should now be open
  • Run the following commands in PowerShell:
    • Install-WindowsFeature Server-Gui-Shell (this one took a while to complete for me!)
    • Install-WindowsFeature Server-Gui-Mgmt-Infra
  • Once the GUI Shell is installed, you will need to restart the server with the following command:
    • Restart-Computer

…when it comes up you should be back in business. This should convey the lesson that it really helps being familiar with the Command Line Interface (CLI) and PowerShell especially. It can pull your ass out of some serious situations, for sure!

A GUI-Only SysAdmin isn’t really a SysAdmin, IMHO.

I hope this helps you out!

B

Advertisements

Garbage In – Garbage Out.

Posted on

Garbage-In – Garbage Out. This is a statement meant to imply that if you input faulty data, the result will be faulty as well. Asked my Pixel if it was going to rain today because I was seeing some pretty ominous clouds above. Here is Google’s answer at 8:15am…

And now, at 9:09am it is raining. So, of course, I just HAD to ask it once again…

…I realize that Google is probably relying on a weather service for the info…and of course, all weather reports lead back to the U.S. Government. Why should I be surprised?

I honestly didn’t know whether to post this here on the tech blog because it deals with Google Assistant …on laughingbrian.wordpress.com because my first inclination is to laugh …or constitutionalbrian.wordpress.com because the US Gov’t has veered so far off its original mandate that it can’t get a weather report right…and it shouldn’t be doing the DAMNED WEATHER ANYWAY!!

sigh…

B

GPU prices are falling, and you should buy now

Posted on

[Note from Brian: I have no idea if this person is paranoid or not… Sounds a bit on the paranoid side. Still, I think it’s good advice to buy a 1080 card before Nvidia’s 11 series hits. I think it’s likely Nvidia will do it’s damnedest to keep the 1080’s price high by reducing supply… Just sayin’]

GPU prices are falling, and you should buy now on

https://search.app.goo.gl/zLBvd

Microsoft Is Officially Not the Windows Company Anymore

Posted on

Microsoft Is Officially Not the Windows Company Anymore

https://search.app.goo.gl/73qLV

Shared from my Google feed

Intel Invented the SSD Killer of the Future, and It’s So Fast and So Expensive

Posted on

Intel Invented the SSD Killer of the Future, and It’s So Fast and So Expensive

https://search.app.goo.gl/CqXA

Shared from my Google feed

Microsoft’s compiler-level Spectre fix shows how hard this problem will be to solve

Posted on

Microsoft’s compiler-level Spectre fix shows how hard this problem will be to solve

https://search.app.goo.gl/azbu

Shared from my Google feed

Researchers Find New Ways to Exploit Meltdown and Spectre Vulnerabilities in Modern CPUs

Posted on

Researchers Find New Ways to Exploit Meltdown and Spectre Vulnerabilities in Modern CPUs

https://search.app.goo.gl/mG3c

Shared from my Google feed