Sie sind auf Seite 1von 3

[TUTORIAL] Disable Or Enable any device in a single click!!! ... https://sekharpadikkal.wordpress.com/2009/03/23/tutorial-disabl...

Sekhar Padikkal's blog….

My Passions….

[TUTORIAL] Disable Or Enable any device in a


single click!!! by sekharpadikkal
[TUTORIAL] Disable Or Enable any device in a single click!!!

Have you ever thought of scheduling your downloads in your laptop in a wifi network. And you
wish to switch on wifi only at that time?

Or have you thought of disabling or enabling your Usb Ports with a single click Or any devices
with a single click?
Here is the solution: (Works with windows XP, Vista ,………..)

1. Download Devcon (Google it, you will find it in Microsoft site)

2. Or From h p://support.microsoft.com/kb/311272 (h p://support.microsoft.com/kb/311272)


(works with vista if used with skipuac)

3. Copy Devcon.exe to C:\

4. To know more about skipuac (TO disable UAC in vista only for specific appllcations) please
visit
” h p://msmvps.com/blogs/martinzugec/archive/2008/05/16/ignore-uac-for-specific-
programs.aspx (h p://msmvps.com/blogs/martinzugec/archive/2008/05/16/ignore-uac-for-specific-
programs.aspx) “ Hey thanks Martin!!!!!!!

5. Use a batch file as follows: FOR ENABLING A DEVICE


[Open notepad and copy the following below and save as ENABLE DEVICE.bat
FOR VISTA AS FOLLOWS:
@echo off
start “” C:\SkipUAC\ElevatorRunner.exe C:\devcon.exe enable *DEVICE ID*
FOR XP AS FOLLOWS :
@echo off
start “” C:\devcon.exe enable *DEVICE ID*
]

6. Use a batch file as follows: FOR DISABLING A DEVICE


[Open notepad and copy the following below and save as DISABLE DEVICE.bat
FOR VISTA AS FOLLOWS:
@echo off
start “” C:\SkipUAC\ElevatorRunner.exe C:\devcon.exe disable *DEVICE ID*
FOR XP AS FOLLOWS :
@echo off

1 de 3 14/03/2019 09:00
[TUTORIAL] Disable Or Enable any device in a single click!!! ... https://sekharpadikkal.wordpress.com/2009/03/23/tutorial-disabl...
start “” C:\devcon.exe disable *DEVICE ID*
]

Note 1 : SkipUAC is for Vista to Disable Uac Specific for this task!! See my next post regarding
this!!
Note 2 : *DEVICE ID* is the device id for example my device id for my Wifi is :
1. My Computer Right click
2. Click Manage
3. Then Click Device Manager
4. Right Click Device you need (here Intel(R) PRO/Wireless 3945ABG Network Connection)
5. Click Properties
6. Click Details TAB
7. Select Hardware Ids in Properties
8. You will get Device Id from here………

This is how we get from the window:

device properties

For Example :
[The window will look provide something like this :
PCI\VEN_8086&DEV_4222&SUBSYS_10008086&REV_02
PCI\VEN_8086&DEV_4222&SUBSYS_10008086
PCI\VEN_8086&DEV_4222&CC_028000
PCI\VEN_8086&DEV_4222&CC_0280

So here DEVICE ID is DEV_4222

9. SO TO DISABLE MY WIFI:

2 de 3 14/03/2019 09:00
[TUTORIAL] Disable Or Enable any device in a single click!!! ... https://sekharpadikkal.wordpress.com/2009/03/23/tutorial-disabl...
@echo off
start “” C:\SkipUAC\ElevatorRunner.exe C:\devcon.exe disable *DEV_4222*

10. <<<<<THANK YOU HAPPY COMPUTING>>>>>

This entry was posted in Tech Tips.

4 comments on “[TUTORIAL] Disable Or Enable any


device in a single click!!!”

JW says:
February 25, 2011 at 12:49 pm
hey there

you still have a copy of that elevatorrunner.exe? if you do can you pls email it to me? i can’t find
it anywhere..

Reply
Yusuf says:
March 9, 2011 at 12:31 pm
Thanks a bunch

Reply
Happy One says:
July 16, 2011 at 11:06 pm
Thank you very much!!! This will be very useful for me.

Reply
Joey says:
January 1, 2012 at 8:03 am
At last the answer! Thanks a million Sekhar. Up till now I’ve been using the freeware AlacrityPC
to instantly adjust Windows Services in categories like BLK VPR’s. But the one thing remained,
with all these changes being done on the fly, how to turn off a couple things in Device Manager
like slower DVD-ROM drive and USB etc. I DO have a question, how would the BATch file code
look with multiple entries from Device Manager? I’ve made one Batch file in my life. So do you
echo between commands or anything? An example would be most clear.Thanks in advance.

Reply

3 de 3 14/03/2019 09:00

Das könnte Ihnen auch gefallen