I have a device that I often enable and disable using the Device Manager. I'd like to write a script to do this programmatically (that is, using the command line). I saw a program called devcon
that works for Windows 2000, Windows XP and Windows Server 2003, but I need one that works for Windows 7. Is there one freely available?
Windows 7 – Enable/Disable Device via Command Line
command linedriverswindows 7
Best Answer
So, there is Devcon.exe for Windows 7 for you. It works with Windows 7, and it is free.
Instructions taken from the Microsoft Answers forum.