I need to disable a USB device in command line on Windows 7 Ultimate x64.
I've downloaded devcon.exe from here:
When I start the 64bit executable I get this:
This version of C:\Work\devcon.exe is not compatible with the version of Windows
you're running. Check your computer's system information to see whether you nee
d a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the so
When I start the 32 bit executable it works.
devcon Usage: devcon [-r] [-m:\\<machine>] <command> [<arg>...]
For more information type: devcon help
I've tried some commands like devcon classes and it seems to work.
Now I want to disable a USB device.
the Hardware id is USB\VID_0BC7
But devcon disable *USB\VID_0BC7* gives:
C:\Work>devcon disable *USB\VID_0BC7*
: Disable failed
No devices disabled.
UAC is off.
Disabling/Enabling this device in device manager works.
I need to get the disable working. An alternate way (without devcon) to disable a USB device by command line will also be accepted.