devcon disable cannot disable device not found

21,796

Solution 1

No Matching Devices is the way that windows tells you that it cannot find or access the devices you are looking for. There can be a couple of causes for this:

  1. Incorrect Permissions caused by not running the command prompt/BAT as an administrator. Simply right-click the relevant access method and select 'Run as administrator"
  2. Incorrect Access caused by running the wrong version of devcon.exe. As a remnant of the shift to 64 bit computer there are two version of devcon located in the 'Tools' folder, one for x86 and one for x64, ensure that you are running the correct version for your computer and you should be able to perform your tasks without issue.

Solution 2

You are using the wrong "spelling" in your command.

This should work:

devcon.exe disable "ACPI\SYN1ECA*"

If you already found the exact device you want to disable you can do it like this:

devcon.exe disable "@<instace ID>"

In your case:

devcon.exe disable "@ACPI\SYN1ECA\4&22077A96&0"

If this also doesn't work you should use the remove command. remove works almost always, but the device will be back after you restart the system.

devcon.exe remove "@<instance ID>"

Solution 3

No matching devices found. is a confusing way for devcon to tell that you are running the command without elevation. This is without elevation:

devcon restart "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5: Restart failed
No matching devices found.

This is with elevation:

devcon restart "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5: Restarted
1 device(s) restarted.

To elevate right click on command prompt and select "run as administrator".

Share:
21,796
Abhishek
Author by

Abhishek

I have been a senior developer with a focus on architecture, simplicity, and building effective teams for over ten years. As a director at Surge consulting I was involved in many operational duties and decisions and - in addition to software development duties - designed and implemented an interview processes and was involved in community building that saw it grow from 20 to about 350 developers and through an acquisition. I was then CTO setting up a dev shop at working closely with graduates of a coding bootcamp on both project work and helping them establish careers in the industry. Currently a Director of Engineering at findhelp.org your search engine for finding social services. I speak at conferences, have mentored dozens of software devs, have written popular articles, and been interviewed for a variety of podcasts and publications. I suppose that makes me an industry leader. I'm particularly interesting in companies that allow remote work and can check one or more of the following boxes: Product companies that help people in a non-trite manner (eg I'm not super interested in the next greatest way to get food delivered) Product companies that make developer or productivity tooling Funded startups that need a technical co-founder Functional programming (especially Clojure or Elixir) Companies trying to do something interesting with WebAssembly

Updated on July 23, 2022

Comments

  • Abhishek
    Abhishek almost 2 years

    I'm on Windows 8.1 trying to disable my clickpad programatically. I've installed the correct x64 bit version of devcon as noted here. I can find the correct device but devcon disable with the same parameters fails.

    PS C:\...\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64> .\devcon.exe disable 'ACPI\SYN1ECA*'
    ACPI\SYN1ECA\4&22077A96&0                                   : Disable failed
    No matching devices found.
    

    Which is rather confusing. It obviously finds the right device, but then reports "No matching devices found". What the heck?

    Please note that I am aware of this similar question but, in addition to not having an accepted answer, that question has a different error and is likely using the wrong version of devcon.

  • Abhishek
    Abhishek over 9 years
    Thanks, but this is in an admin shell
  • sunil
    sunil about 7 years
    Tried running as administrator. Made sure its 64bit version from amd64 folder. But disabling Synaptics Touchpad did not work. Is anyone else facing the problem ?
  • ExceLHelp
    ExceLHelp almost 6 years
    Status works, but restart doesn't. From an administrator command prompt: C:\devcon.exe status "@ACPI\LEN0036*" ACPI\LEN0036\4&110B26F5&0 Name: Synaptics Pointing Device Driver is running. 1 matching device(s) found. C:\devcon.exe restart "@ACPI\LEN0036*" ACPI\LEN0036\4&110B26F5&0 : Restart failed No matching devices found.
  • drojf
    drojf over 5 years
    I was running the 32 bit version on 64 bit windows and it failed, changing it succeeded - you can download the correct version for your OS here: superuser.com/questions/1002950/…