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 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.

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

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.

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.