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

36 comments:

Unknown 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...

Anonymous 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*

Unknown said...

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

Unknown said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by the author.
Unknown said...

BIG thx, man!

Unknown 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.

Unknown 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

h 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

Unknown said...

thanks a lot man !! problem solved ;-)

Unknown 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.

Unknown said...

Excellent Man..Keep up good work...

S A Delphin said...

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

Hughes said...

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

Unknown said...

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

Unknown said...

Thanks a lot!!!!

Unknown 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

radha said...

simple and clear. Keep updating Artificial Intelligence Online Training

Unknown said...

You, sir, have done a great service. I would have banged my head bloody trying to figure this out. And having the links was the icing on the cake. Thank you!

svrtechnologies said...

I think this is one of the most important info for me.And i am glad reading your article. But want to remark on few general things, The site style is good , the articles is really excellent and also check Our Profile for ai programming tutorial.

Tomminy said...

iDealshare VideoGo is just the right vidoe Converter!https://www.idealshare.net/video-converter/play-mkv-on-sony-bravia-tv.html

Anonymous said...

Smm Panel
smm panel
İs İlanlari
instagram takipçi satın al
HIRDAVAT
https://www.beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi

Anonymous said...

maltepe bosch klima servisi
kadıköy bosch klima servisi
ümraniye samsung klima servisi
kartal mitsubishi klima servisi
ümraniye mitsubishi klima servisi
kartal alarko carrier klima servisi
ümraniye alarko carrier klima servisi
kartal daikin klima servisi
ümraniye daikin klima servisi

Anonymous said...

lisans satın al
yurtdışı kargo
uc satın al
nft nasıl alınır
en son çıkan perde modelleri
minecraft premium
en son çıkan perde modelleri
özel ambulans

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

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