Remove multiple 6to4 tunnel adapters in Windows 7

I had an incident the other day where a Windows 7 laptop was having ip connectivity issues as a result of a known bug in Microsoft Windows 7 32bit & 64bit. The bug appears in machines with wireless adapters where a new ip version 6to4 adapter is created on boot up or shutdown. I did an ipconfig on a machine yesterday that showed the machine had 215 Local Area Connections! I had a look around and found what the issue was but everyone who mentioned it said they had to remove each of the adapters one by one. This is fine if you only have 5 or 6, but not 215. Th solution was to use a file called devcon.exe which I got from the Windows Drivers Kit ISO. I have attached a file containing both the 32bit and 64bit executables along with a batch file to show how to execute it. Just extract the the archive to your desktop and run the batch file or alternatively open the command prompt and run it.
Note that you should run either as Administrator otherwise you may get an error saying “No devices were removed”
6to4 Batch Remover

This entry was posted in DaytoDay and tagged , , , , , , , , , , , . Bookmark the permalink.

30 Responses to Remove multiple 6to4 tunnel adapters in Windows 7

  1. Alex says:

    Thanks a mil for that. Fucking joke that MS doesn’t provide that piece of help.

  2. Pingback: First Aid: FAQ zur Netzwerkeinrichtung « Borns IT- und Windows-Blog

  3. Asa says:

    Thank you so much! I had over 400 of those buggers, and even with the utility it’s taking quite a while, but it does work! Kudos!

  4. isenkevics says:

    Thanks a lot, my friend! I have an unique (fake) 6to4 tunel adapter but my wlan stop working! I execute the batch and now MY WLAN itΒ΄s working like a charm!!!

  5. Kenan says:

    Thanks man…you are the only one on the Planet post full package, 32,64bit with devcon.exe too…thanks again!

  6. Mehul Shah says:

    Just download devcon package from following Microsoft site.

    Extract/Unzip to temp folder.

    Then copy devcon.exe from respective folder (i.e. for 32 bit from i386 folder and 64 bit from ia64 folder)to c:\ drive

    Open command prompt and then type

    c:\devcon remove *4to6mp*

    It’s done

  7. no0ne says:

    thanks brimur!
    helped a lot! πŸ˜‰

  8. mikelsoft says:

    finally..running the batch as me type.. thanx brimur..

    first class..

  9. Jason Ford says:

    Thanks a Ton…..This batch file helps.

  10. AJ Whitney says:

    Thanks so much for sharing this. I’ll definitely have to add this to my bag of tricks!

  11. Vladimir Vovk says:

    It works! Thank you! πŸ™‚

  12. Lars Holdgaard says:


  13. Will Raresheid says:

    So now I can get rid of them but what was the cause so Ican prevent getting more of them? Thanks for the solution, BTW!

  14. Keith Dickerson says:

    This worked for me. I’m running a Win7/64 Pro on a desktop machine and using a gigabit network to access folders on a Win7/64 Pro laptop. I could ping and connect using remote terminal, but could not access shared folders.
    I removed the 200+ 6to4 adapters from the desktop machine and now it can access the shared folders.
    Many thanks.

  15. Antony says:

    Thanks for this guys!!!! it really works

  16. Jackson says:

    When I run this as administrator, nothing seems to happen (cmd opens for a split second and shuts again). When I click open and then run, cmd opens and a list of the hundreds of 6to4 adapters forms, each saying remove failed to the right. any ideas? I’m running 64 bit Windows 7

    • brimur says:

      Hi Jackson,

      The easiest way to troubleshoot this is to do the following
      1) Extract the files to your desktop or another location
      2) Click the start button and in the search box above it type “cmd” (no quotes)
      3) You will see cmd.exe show up in the search, right click that and select Run As Administrator
      4) In the Administator CMD window navigate to the batch file and run it.

      You will be able to see any issues that it is having.

  17. k-ton says:

    Thank you.. it work !! confirm

  18. Pekka Halonen says:

    Major big thanks for this batch!
    I did thought that I might remove these all +200 adapters via regedit, but that would have been a rocky road – as there were 3 locations in where these adapters were “written”. It does not help at all that there are all other adapters stored in same locations. And there is allso a list with running sequence numbers stored in.


    But as said, the bach did it nicely and neatly. I removed fair 30 manully from hidden devicelist in dev.manager but then found this batch info and got:
    ROOT\*6TO4MP004 : Removed
    170 device(s) removed.

    πŸ™‚ Big hand from here!

  19. Duggesh says:

    Super cool, it saved my time and life…

  20. jiminlove says:

    thank you, thank you, thank you. κ³ λ§™μŠ΅λ‹ˆλ‹€.

  21. myunusha says:

    great …..
    thanks a lot Brimur, it works …!!!
    I don’t need to reinstall (OS) on my laptop anymore. so … it’s safe my time ….!
    .. and my laptop now run faster …
    .. and the sound back to normal … ( whereas, I think there’s something corrupt/damage on my sound device ) so … it’s safe my money …!
    … and the network adapter’s property appears .. and no error message..
    two thumbs ..!

  22. saulat says:

    Just copy devcon.exe to C drive root then run following command. You also 1st of all login with only Administrator user.

    c:\devcon remove *6to4mp*

    Its working ………. :)))

  23. saulat says:

    I removed 500 devices with this command. Wonderful command. Thanks

  24. Huong VN says:

    Thank you very much, My friend is IT engineer cant help me remove this as fast as this ,

  25. Angie says:

    Run as Administrator was the BEST advice – been trying to get this to work all day! now it’s finally working. Thanks

  26. Srdjan says:

    Someone needs to pay you for this. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *