修复 PowerShell 和服务器管理器
今天手残,把家里服务器的PowerShell
给卸载了,结果悲催的发现服务器管理器
也跟着消失了。查阅微软文档,得知如下修复方式,特此记录:
@echo off
:: .Net Framework 4.x
Dism /online /enable-feature /all/ featurename:Netfx4
:: PowerShell & PowerShellISE
Dism /online /enable-feature /all /featurename:MicrosoftWindowsPowerShell
Dism /online /enable-feature /all /featurename:MicrosoftWindowsPowerShellISE