【发布时间】:2020-06-10 05:20:21
【问题描述】:
安装 HyperV 并出现
vEthernet(默认开关)Hyper-V 虚拟以太网适配器
命令
Enable-PSRemoting(或 Set-WSManQuickConfig)
抛出异常:
et-WSManQuickConfig : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859113" 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="2150859113" Machine="*******"><f:Message>WinRM firewall exception will not work since one of the network connection types
on this machine is set to Public. Change the network connection type to either Domain or Private and try again. </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 10; PSVersion - 5.1.18362.145
【问题讨论】:
标签: hyper-v powershell-remoting