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.
You are using the wrong "spelling" in your command.
This should work:
If you already found the exact device you want to disable you can do it like this:
In your case:
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.
No matching devices found. is a confusing way for devcon to tell u to run the command elevated. this is without elevation
this is with elevation
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:
Look at superuser question
Resume:
To download correct version devcon x86/x64. Run the devcon commands in cmd.exe with administrative privileges
To block/unblock:
Sometimes devcon does not disable:
In this case, the only solution is replace the command: "disable" by "remove":
But devcon is not a permanent solution for locking and unlocking devices. The test is that you can lock a usb device and then run bash script renewusb_2k.bat, and you will see that the script reinstall the usb drivers again and the locked usb device becomes accessible again.