【发布时间】:2020-07-15 00:21:41
【问题描述】:
为什么Enable-PSRemoting/Set-WSManQuickConfig在Windows 2012R2、Azure WebRole的Administrator下无法“检查防火墙状态”?如何解决这个问题?
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。操作系统版本:6.3.9600 N/A Build 9600。Powershell:4.0
PS。 是的,有:
- Error PSRemoting using Session and CredSSP。没有明确的解决方案
- Winrm quick config shows error 。重新启动/重新映像实例没有帮助。
- https://support.microsoft.com/en-us/kb/2697738。未安装修补程序(2012 年!),但每次部署都需要安装?
- https://technet.microsoft.com/en-us/library/hh849694.aspx。有此消息,但这是针对“客户端版本”的
- http://terenceluk.blogspot.ru/2012/05/executing-command-winrm-quickconfig.html重启防火墙也没用
- How to enable powershell remoting in Powershell V3?。没有“HKLM:\SYSTEM\Policies\Microsoft\Windows Firewall”可更改。重启防火墙服务没有帮助。
更新。 其他有价值的参考:
【问题讨论】:
标签: powershell azure