Cannot remove HyperV vEthernet (Default Switch)

3

Basically, this: How to remove all the vEthernet (Default Switch) once and for all?

Except, I removed hyperV and the Containers feature, and all that happened was that the NIC reported as disabled. But it was still there. Then I reinstalled hyperV and it created a second one. Removing HyperV disabled, but did not remove the second one.

I removed it from the registry manually (see third post here: https://social.technet.microsoft.com/Forums/en-US/7f18af6f-4f6b-40ac-94bc-4be32e850fb1/vethernet-default-switch?forum=win10itpronetworking) and that made exactly no difference.

So my question is, short of resetting my laptop, how can I make this stupid thing go away? It's screwing up my networking (auto-switch between WiFi and Ethernet doesn't work anymore)

Edit: for clarification, my end goal, here, is to have (a) Hyper-V removed (uninstalled) and (b) remove the (now unnecessary and unwanted) Hyper-V switches that remained after Hyper-V was uninstalled.

Chris

Posted 2018-07-18T20:27:26.030

Reputation: 523

Answers

5

  1. Use the Hyper-V management console or Device Manager aka. devmgmt.msc to remove virtual NIC. Do not remove NIC via registries

  2. You remove virtual switch via PowerShell like it's specified here: https://www.starwindsoftware.com/blog/basic-hyper-v-virtual-nic-management

  3. Also as a workaround, you can try these steps. https://social.technet.microsoft.com/Forums/windows/en-US/e49df568-4f4c-47b7-b30c-952d1e26ca58/cant-remove-failed-virtual-switch-from-hypervs-virtual-switch-manager

A.Newgate

Posted 2018-07-18T20:27:26.030

Reputation: 206

0

I've solved it, I think. I deleted all entries under these two keys:

HKLM\SYSTEM\CurrentControlSet\Services\VMSMP\Parameters\NicList HKLM\SYSTEM\CurrentControlSet\Services\VMSMP\Parameters\SwitchList

And rebooted. I should note that this is obviously the nuclear option.

Edit: As mentioned in the comments, device manager probably would have worked too, had I remembered that device manager was a thing.

Chris

Posted 2018-07-18T20:27:26.030

Reputation: 523

3NEVER delete NIC registries. Use Hyper-V management console or Device Manager aka. devmgmt.msc to remove virtual NIC. Also you don't have to remove default switch, it's 'default', provide internet access in VMs. – Biswapriyo – 2018-07-18T20:40:07.237

1Except, as I said, I completely uninstalled hyperv since I'm not using it (I'll clarify above). There aren't any VMs to provide internet to. – Chris – 2018-07-18T21:57:46.807

1Also, you can't to my knowledge remove the default switch using the Hyper-V management console. And only one of the two switches was actually recognized by Hyper-V anyway. Though I'll admit, I regrettably completely forgot device manager was a thing. – Chris – 2018-07-18T22:03:00.753