I need to disable a USB device in command line on Windows 7 Ultimate x64.
I've downloaded devcon.exe from here:
http://support.microsoft.com/kb/311272
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
ftware publisher.
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*
USB\VID_0BC7&PID_0006\5&20
93BC86&0&2
: 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.
I think the fact that the x64 version wouldn't run might be a clue here, too. What if you run the x64 version from the Start/Run command line, instead of from a Command Prompt?