After upgrading to windows 10 v1511, the Hyper-V switch I had has gone all over the place.
Aside from being disabled, and not being able to start, the network connections manager shows the switch with a different name "Ethernet 2" (description says it is a hyper-v switch). When I try to remove the switch via the Hyper-V manager I get the Error:
Failed while removing virtual Ethernet switch. Internal miniport delete failed, internal NIC = 'somenicidthatstoolong': Invalid parameter (0x80041008)". The switches name is "vEthernet".
Since that does not work, I tried removing the vmswitch through PowerShell.
remove-vmswitch -Name "vEthernet" -force remove-vmswitch -Name "Ethernet 2" -force
Both of these grant me another error:
remove-vmswitch : Hyper-V was unable to find a virtual switch with name "vEthernet". remove-vmswitch : Hyper-V was unable to find a virtual switch with name "Ethernet 2".
Since none of these are working, I tried to list all of the VMSwitches using get-vmswitch…which returned nothing.
So in the end we are left with a nonexistant vmswitch, that exists in the hyper-v manager still, and also in Control Panel\Network and Internet\Network Connections with a different name.
How do I remove these entries so I can create a new VMSwitch?