How to remove all the vEthernet (Default Switch) once and for all?

118,533

Solution 1

I just found out that I could easily remove all the vEthernet switches by simply going to:

"Control Panel" > "Programs" > "Programs and Features" > "Turn Windows features on or off" on your Windows 10 machine Find the name of the feature/s you would like to disable--in this case, "Containers" and (optionally) "Hyper-V"

enter image description here

Which is stated in this article https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon

Solution 2

Just go to device manager, network adapters, right click and uninstall

Solution 3

I have 160 of these devices, and I don't feel like uninstalling them all by hand.

I've used the; https://gallery.technet.microsoft.com/Device-Management-7fad2388 to disable them like so;

get-device | Where-Object -Property Name -Like hyper-v* | disable-device

But that's only a disable;

(Get-WmiObject Win32_Networkadapter | Where-Object -Property Name -Like hyper-v*).delete()

This gets an error message...

Solution 4

I found a definitive solution. My solution works, even with Hyper-V enabled. Many of us don't want to disable Hyper-V security, and nothing else here worked for me on Windows 10 2004, everything is replaced on reboot, even netbios settings which increase attack surface, and its a pain to configure potentially hundreds of adapters every single time. Even automating with Nvspbind all settings revert on reboot. One way to disable these adapters literally ONCE AND FOR ALL is to disable DNScache aka Dns Client service and use a third-party DNS service such as Acrylic , or SimpleDNSCrypt. Be sure to comb through Acrylics configuration with a fine toothed comb because initially your default DNS provider will automatically be set to google or cloudflare. Then point acrylic to your router IP, or preferred DNS server, and set all your adapters DNS settings to 127.0.0.1.

You must disable DNSCache with regedit, here:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache

Set start to 4, and reboot.

The only minor caveat is you may see a single adapter constantly and briefly appearing and disappearing under Control Panel\Network and Internet\Network Connections and your device manager window will constantly refresh each time it attempts to install adapters. This problem appears to have went away for me after I enabled DNSCache (which was already disabled before I initially started using Hyper-V), then disabled it again. Another caveat is that initially loading the windows store you will get an error, unless you have previously opened the store with DNScache enabled. After that the store will work indefinitely unless you reset it. Not a big price to pay given how annoying this is, this actually works.

Solution 5

I used the tool Device Remover to successfully remove all my 150+ vEthernet devices quickly.

Other than that, only the suggestion to remove each device manually worked. However, that takes a lot of time for 150+ devices. Fortunately I found the above tool.

Regarding the re-creation of new devices on reboot I have no solution other than disabling/removing Hyper-V.

Share:
118,533
compski
Author by

compski

Updated on September 18, 2022

Comments

  • compski
    compski over 1 year

    vEthernet

    As in the screenshot above, I don't know why the vEthernet (Default Switch) on my Windows 10 laptop keeps reproducing itself and auto connecting to it everytime I shut down and switch on the laptop.

    Worst is if I switch Wi-Fi networks, it auto connects to the vEthernet (Default Switch) even when i have pre-disabled it before

    Please help me find out the root cause of this problem? E.g. :

    1. Why this strange occurrence keeps happening (I suspect it is because I installed Docker?)
    2. Why I can't seem to delete the vEthernet (Default Switch) from Network Connections
    3. Why does it keep auto connecting to vEthernet (Default Switch) and how to permanently disable it?
    • Tyler
      Tyler almost 4 years
      See my answer below with the included image, it actually works, nothing else here removes the "default switch" except disabling hyper-v altogether which is impractical for the security minded.
  • Blackwood
    Blackwood over 5 years
    The question asks how to remove the devices and prevent them repeatedly reappearing. Can you explain how your answer does that?
  • BNT
    BNT over 5 years
    Its not possible do use Docker then anymore, i assume?
  • Craig Silver
    Craig Silver over 5 years
    I was getting too fancy, going to the registry and such. This answer actually helped me even though I know it's not a 100% answer for the OP.
  • compski
    compski over 5 years
    @BNT Do ask that in another question - I'd like to read the answer to that =p
  • GollyJer
    GollyJer almost 5 years
    For me this didn't delete the existing vEthernet's. I had to then go into device manager and uninstall them. And yes... this will disable the ability to use Docker. It requires HyperV on Windows. Unless you want to get creative. 👍
  • Colm
    Colm almost 5 years
    Considering I actively use Hyper V to manage some VMs. This answer is not helpful.
  • Jerry Chong
    Jerry Chong over 4 years
    After removed Hyper-V, my laptop crashed and cannot load Windows successfully. Need to use System Recovery.
  • somebadhat
    somebadhat about 4 years
    Does not really answer the question.
  • AMS777
    AMS777 over 3 years
    For me unchecking Containers had no effect. I had to uncheck the Hyper-V checkbox, and then disable vEthernet (Default Switch) under Control Panel\All Control Panel Items\Network Connections. Didn't need to uninstall network adapters or devices. Restart needed.
  • Chiramisu
    Chiramisu over 3 years
    In addition to recommendations here, I also had to disable the "Windows Sandbox" feature.