Tuesday, July 24, 2012

"Disable failed No devices disabled" devcon.exe | How to disable devices from command prompt


 This article will help you in Disable or Enable devices from command prompt. And also this will discuss about the error u may likely to encounter.

It will be really good rite, when you can disconnect your modem or internet connection in one click after you are finished with it. This article will help you to do that.

First you need to have devcon.exe. An alternate to device manager which can be run through command prompt.

Download the devcon.exe from the below link

http://support.microsoft.com/kb/311272 

Once you downloaded the devcon exe file, extract  the exe and paste it inside c:\windows\system32 folder. That's it you are ready to run it. 

 I've read the above procedure in a blog, and wanted to try it.  But i was getting this message..

"
C:\Windows\system32>devcon disable *mouse*
HID\VID_04CA&PID_0030\7&3A7DF96F&0&0000                     : Disable failed
No devices disabled.
"

After some digging i found the the 64 bit version of devcon available to download form Microsoft website is not compatible for windows 7 64 bit. You will need to extract it from server 2003 64 bit dvd.

Once it's done it will work like a charm. I've extracted the 32 and 64 bit version devcon.exe from server 2003 dvd and uploaded it. You can download it from below links..

Devcon.exe 32 bit

Devcon.exe 64 bit



Hope this helps..
Techytipz

Reactions:

29 comments:

Hamzah A said...

OMG thank You a MILLION man!!! Been trying to figure out first why 64bit was not working then was like fine will try 32bit but that would not work properly on my 64bit machine ( of course) and would not disable. Then i found this. Thanks so much man!!!!

Just Between Ismi & Arief... said...

Thanks a lot this is what we need...

ravil ll said...

i tried to run devcon disable =Mouse
it shows disable as output in command promt.
but still the mouse working ..please help me

S A Delphin said...

You welcome Hamzah and Just Between Ismi & Arief.. I wounder what does "Just Between Ismi & Arief" mean though

S A Delphin said...

Hi Ravi, try this command,
devcon disable *mouse*

Paul Wishart said...

You're a life saver :D Thank you very much!

Bliase Pascal said...
This comment has been removed by the author.
Bliase Pascal said...
This comment has been removed by the author.
Дмитрий Гафаров said...

BIG thx, man!

Wes Hunter said...

Hi I'm using devcon to disable and re-enable devices in an automated test system. The 1st time i run through, it works great. the 2nd time, it doesn't disable, says reboot required. How do I get around this?

ClaudeSpeed said...

you are a king, sir.

Hany Aloum said...

thank you so much

Unknown said...

HI
I downloaded the 64 bit version and put it in the system32 folder. shouldn't matter?#
when I run this from the prompt it finds devices but I still get the disable failed back. very annoying.
im using windows 7 professional. any thoughts ? thanks

I Herman said...

hi, i've trying to copy your 64 bit devcon to system32 folder in my win7 64 bit version, but it still doesn't work, Disable failed. Could you help me answer this question, please ...

VITORINO said...

Thanks!!
Very good!!!

Bosshog said...

Trying to get the remove command to work on XP Embedded. File has been copied to the system32 folder but still fails. Does this work on XP Embedded?

Bosshog said...

Received the same message in XP too...not sure what I'm doing wrong

Bosshog said...

It allows me to disable, but not remove the RealTek driver

Aakash Patil said...

thanks a lot man !! problem solved ;-)

Santosh Gangatharan said...

Worked for me..
Thanks a lot..
Wonder why the following didnt work..
Its a code snippet of my visual c++ 2013 project built for x64 bit environment.. Hencee I had to resort to devcon...

params.ClassInstallHeader.cbSize = sizeof(SP_CLASSINSTALL_HEADER);
params.ClassInstallHeader.InstallFunction = DIF_PROPERTYCHANGE;
params.HwProfile = 0;
params.Scope = DICS_FLAG_CONFIGSPECIFIC;
params.StateChange = DICS_DISABLE;

// prepare operation
if (!SetupDiSetClassInstallParams(hDevInfo, &DeviceInfoData, &params.ClassInstallHeader, sizeof(params)))
{
printf("Error while preparing params !\n");
break;
}
// launch op
if (!SetupDiCallClassInstaller(DIF_PROPERTYCHANGE, hDevInfo, &DeviceInfoData))
{
printf("Error while calling OP ! Return code is %x\n", GetLastError());
continue;
}

Problem solved.. Thats wht matters.

Prashant Shalgar said...

Excellent Man..Keep up good work...

S A Delphin said...

Glad this post hel[ped you guys..!!!

楊尚修 said...

You save my live!!!!!!!!!!!!!!!!!!!!!!!!!
So many thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Simon Lepage said...

Didn't work for me. It says that the device was disabled, however it's still running (Wi-Fi card). Any help?
Thanks!

Clément Grosjean said...

Thanks a lot!!!!

Pawanvir Singh said...

i am doing the same as for keybord but it is not disabling the keyboard.

BRPx said...

You saved a life! The only blog that have the correct answer.

S A Delphin said...

BRPx, We are glad that we helped you

RaShan Saddler said...

This was a big help! Didn't know the 32bit would be incompatible, but I was getting the same error as you. Thanks alot

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons