我在Windows 7中运行Powershell 3.0,并且已连接到域。
这些是我运行Enable-PSRemoting时获得的日志:
WinRM has been updated to receive requests.
WinRM service type changed successfully.
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="mycomputername.mydomainname"><f:Message>Unable to check the sta
the firewall. </f:Message></f:WSManFault></f:ProviderFault></f:Message></f:WSManFault>
At line:1 char:1
+ Set-WSManQuickConfig
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand
最佳答案
糟糕...在“防火墙”的“入站规则”中,未添加Windows远程管理(HTTP-In)规则。我添加了它,问题就解决了。
因此,请确保在防火墙设置中为WinRM(Http-In)配置了所有入站规则
关于powershell - 如何在Powershell V3中启用Powershell远程处理?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19653879/