[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 http://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
” http://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
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:
@echo off
start “” C:\SkipUAC\ElevatorRunner.exe C:\devcon.exe disable *DEV_4222*
10. <<<<<THANK YOU HAPPY COMPUTING>>>>>
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..
Thanks a bunch
Thank you very much!!! This will be very useful for me.
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.