We help IT Professionals succeed at work.
Get Started

Disabling a device with Devcon.exe

10,797 Views
Last Modified: 2013-12-01
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&2093BC86&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.
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE