尝试配置 Hyper-V 虚拟交换机时,我收到上述错误。无论我尝试创建哪种类型的交换机,都会发生这种情况。
PS C:\Users\Martin> New-VMSwitch -Name “NewSwitch” -NetAdapterName “WiFi” -AllowManagementOS $True
New-VMSwitch : Failed while creating virtual Ethernet switch.
Switch create failed, name = '326B5310-CEB9-4E87-AB36-DD2DD9602A73', friendly name = '': Operation times out (0x80041069).
Timed out trying to acquire network configuration lock, current owner = 'iphlpsvc.dll'.
The operation timed out.
At line:1 char:1
+ New-VMSwitch -Name “NewSwitch” -NetAdapterName “WiFi” -AllowManagementOS $True
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationTimeout: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [New-VMSwitch], VirtualizationOperationFailedException
+ FullyQualifiedErrorId : OperationTimeout,Microsoft.HyperV.PowerShell.Commands.NewVMSwitchCommand
由于我在网上找不到任何东西,因此非常感激任何帮助。
答案1
引用的文件是“IP Helper”服务。使用以下命令停止该服务net stop iphlpsvc
并尝试切换命令。
注意:停止此服务将停用 Teredo 6to4 隧道,但如果您不使用它,则无需担心。