cmdlet "remove-vmswitch" throws exception:
PS C:\Windows\system32> Get-VMSwitch
Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
HyperV External м Realtek PCIe GBE
hV Internal
PS C:\Windows\system32> Remove-VMSwitch 'hV'
"hV"?
[Y] - Y [A] - A [N] - N [L] - L [S] - S [?]
(м м "Y"):
Remove-VMSwitch : мм Ethernet.
:1 :1
+ Remove-VMSwitch 'hV'
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Remove-VMSwitch], Virtualizat
ionOperationFailedException
+ FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.RemoveVMSwitchCommand
Changing namespace in script to "root\\virtualization\\v2" occurs next error: 80041088 on line
this.m_VirtualSwitchManagementService = list.ItemIndex(0);
-
Edited by
Viktor Khokhryakov
Thursday, April 23, 2015 7:42 PM