记一次WindowsServer2019 卸载.Net Framework 4.7 出现的问题

卸载了.NET Framework 4.7

导致服务器管理器、和iis 打不开了

排查发现删除net framework 4.7的同时也删除了MicrosoftWindowsPowerShell和MicrosoftWindowsPowerShellISE功能

因此需重新添加PowerShell功能就行,管理员方式运行命令提示符,通过新增如下两条命令解决问题(路径请根据实际填写):

Dism /online /enable-feature /all /featurename:MicrosoftWindowsPowerShell /source:C:\Sources\sxs

Dism /online /enable-feature /all /featurename:MicrosoftWindowsPowerShellISE /source:C:\Sources\sxs



posted @ 2025-04-28 14:33  高宏顺  阅读(258)  评论(0)    收藏  举报