未安装 Server 2012 Server Core powershell

124*_*485 8 powershell windows-server-2012

在服务器核心中,重新启动后突然没有安装powershell,我该怎么做才能重新安装它?

我还没有设置远程管理,所以我不能用它来重新安装它。

'powershell' 不是内部或外部命令、可运行的程序或批处理文件。

mwe*_*sel 8

使用部署映像服务和管理 (DISM.exe) 工具启用 PowerShell:

dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShellRoot

...或者如果这还不够:

dism.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell /all