Automatic uninstallation of Microsoft Teredo Tunneling Adapter RRS feed

  • 問題

  • Hi,

    I am attempting to uninstall the Microsoft Teredo Tunneling Adapter by using a script, on a Windows 8 Enterprise x64 OS. The device is installed incorrectly by default:

    This device cannot start. (Code 10)
    {Operation Failed}
    The requested operation was unsuccessful

    and it is not useful at all in our organization.

    I've tried so far to use devcon.exe and pnputil.exe, but it is impossible to perform the uninstallation.
    However, if I perform the uninstallation manually from DevMgr (right-click on device and Uninstall), the Microsoft Teredo Tunneling Adapter is removed successfully, without being reinstalled after reboot.

    Can you please indicate how should I perform an automatic uninstallation of this device?

    Many thanks,
    2013年6月6日 上午 06:40


  • Hi,

    I would like to confirm why you want to uninstall Microsoft Teredo Tunneling Adapter. The Teredo Tunneling Adapter is an IPv6 related feature. If you don’t use IPv6, we can disable this virtual device using the following command.

    netsh interface teredo set state disabled

    Niki Han
    TechNet Community Support

    2013年6月7日 上午 06:57
  • I've already tried to disable it using netsh, but it's still present in Device Manager as a ghost device (with exclamation mark). One of my goals is to have a "clean" computer, without ghost devices.

    I forgot to mention that the Teredo tunnelling adapter ghost device appears only if disable IPV6 using:

    reg.exe add hkey_local_machine\system\currentcontrolset\services\TCPIP6\parameters /v disabledcomponents /t reg_dword /d 0xffffffff /f

    during the MDT deployment (after the WinPE step is completed we use an internally-developed sequencer to perform driver installation and country-dependent customizations).

    However if I enter this registry value AFTER the first logon (using an administrative account) the Teredo ghost device does NOT appear anymore. I tried to attach the reg.exe command in the RunOnce section, but it needs an administrative account in order to succeed.

    Do you know what is the correct timing to set that registry value (actually to disable IPV6) during the MDT installation? The dilemma is:

    - if the key is entered too early, then the Teredo ghost device appears

    - if the key is entered too late (e.g. attached to RunOnce) then the user does not have permission to enter the reg. value.


    • 已編輯 tlc76 2013年6月12日 上午 10:28
    2013年6月12日 上午 10:25
  • I'd also be interested in how to get rid of all tunnelling.

    As I see it those of use who have enough IPv4 addresses are going to leave our IPv4 setup intact (NAT and all the rest) and build a parallel IPv6 infrastructure, rely on Windows being able to switch between the two as needed, and on 12 years time remove the IPv4.


    2013年7月26日 下午 05:58
  • Hate to resurrect an old thread, but I really am finding little online. We are in the same boat, the ghost device on our image after disabling IPv6 and only finding ways online to 'Disable' the device, not uninstall it entirely.

    tlc76, did you ever find a solution?

    Anyone else have any ideas?

    Daniel Ratliff | | @PotentEngineer

    2015年4月27日 下午 01:31
  • You can try removing Teredo as a service with nssm from Just extract the zip file, and in an elevated command line after changing directory to the location of nssm.exe enter nssm remove. Type Teredo or teredo as applicable and click on remove service.

    You might want to uninstall/disable teredo first with the netsh interface teredo set state disabled command first.

    Earlier in the month, I accidentally removed teredo as a service in the abovementioned fashion. If you can, do try exporting the teredo driver and then mailing it to me please. Reply to this and I'll send my email to your linkedin (the one on your profile), I run Windows 10 Home Build 1903, I doubt if its compatible, but still.
    • 已編輯 otnas 2019年6月20日 上午 09:14 Update
    2019年6月20日 上午 09:10