2016-09-20 449 views
2

为什么Enable-PSRemoting/Set-WSManQuickConfig无法在Windows 2012R2 Azure WebRole上的”管理员“下运行管理员的”检查防火墙的状态“?如何解决这个问题?修复“Set-WSManQuickConfig`的”无法检查防火墙状态“

PS D:\Users\***User> enable-psremoting -force 

WinRM is already set up to receive requests on this computer. 
Set-WSManQuickConfig : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2" 
Machine="localhost"><f:Message><f:ProviderFault provider="Config provider" 
path="%systemroot%\system32\WsmSvc.dll"><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" 
Code="2" Machine="RD***CA2"><f:Message>Unable to check the status of the firewall. 
</f:Message></f:WSManFault></f:ProviderFault></f:Message></f:WSManFault> 
At line:69 char:17 
+     Set-WSManQuickConfig -force 
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException 
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand 

操作系统名称:Microsoft Windows Server 2012 R2 Datacenter。 OS版本:6.3.9600不适用Build 9600. Powershell:4.0

PS。 是的,有:

更新。 其它有价值的参考文献:

回答