First of all, why don’t you delete .Net Framework in the operating system. Especially in your operating system, the graphical interface and management tools use some drivers and dlls that come with the .Net Framework library. That is why you should not delete .NET Framework 3.5 and earlier. Some of the documentation tells you that you need to delete the .NET Framework 4.5 / 4.5.1, but if you don’t pay attention to the deletion process and go fast, you’ll see the boredom I mentioned in the title.
I think you’re on the Command screen right now and here are the steps to follow:
1-DISM.exe /online /enable-feature /all /featurename:NetFx4
2-DISM.exe /online /enable-feature /all /featurename:MicrosoftWindowsPowerShell
The above two commands will allow you to re-install.NEt Framework 4.0.
Now you have PowerShell installed on your machine; You can install the Graphical Interface using PowerShell.
3-On the command screen, you run Powershell command and you open powershell, otherwise you cannot run the next commands.
Now that PowerShell is turned on, you can run this command to install the Graphical interface. But make sure you type in PowerShell:
4-Install-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra
After this step, when PowerShell is finished, run the last command:
Because this last step is not a normal GUI, it can be a reason to do it from PowerShell by doing it from the command probe so you can run restart from PowerShell no matter what happens.
In the meantime, if you think that you need to delete the.Net Framework 4.50 and above version from the system, then use the Remove-WindowsFeature command instead of Uninstall-WindowsFeature.
You can remove.Net FrameWork by selecting whether or not it removes the following command when removing the graphical interface without displaying this command from the query.
Remove-WindowsFeature Net-Framework-45-Features -WhatIf
But you should not remove 4.50 and before.