Hello!
I am wondering, can someone provide a script (or help me creating one) for disabling/enabling a system device using a MacroScheduler script?
So, instead of me having to go to Computer Management > Device Manager, select a device, right click and disable/enable it I would like to use a script that would quickly do that for me (without the need of a graphical user interface).
Thank you in advance.
How to disable/enable a system device?
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Download DevCon whch is a command line version of device manager:
http://support.microsoft.com/kb/311272
Then you can do something like:
Run>devcon.exe disable bla
Run>devcon.exe enable bla
http://support.microsoft.com/kb/311272
Then you can do something like:
Run>devcon.exe disable bla
Run>devcon.exe enable bla
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
without needing to download anything click start menu click run type "msconfig" with out the qoutes
this will bring up the system menu this is also how you stop programs from running on start up and slowing boot time
this will bring up the system menu this is also how you stop programs from running on start up and slowing boot time
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!
That wasn't what I asked for.idiot wrote:without needing to download anything click start menu click run type "msconfig" with out the qoutes
this will bring up the system menu this is also how you stop programs from running on start up and slowing boot time
I want to disable and re-enable a device (during the same session), not services and applications. As for the boot time I'd get a SSD to speed it up, I wouldn't disable services and applications that are started because they are being used (not to mention I roughly restart the PC once a month).
Either way, thanks for the input, idiot.