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