How to enable / disable windows 7 devices through a .bat or other file type?

2

I need to enable and disable a specific device (device manager) frequently, and doing it manually is very annoying. I believe that with a .bat file it is possible to enable / disable each time I run. I've seen it's possible with DevCon, but it's a lot of work for little. Thanks for any help.

    
asked by anonymous 04.11.2017 / 20:39

1 answer

1

You can disable and enable devices with DevManView by command line.

To disable a device can do with the following command:

devmanview.exe /disable "Nome do Dispositivo"

To enable:

devmanview.exe /enable "Nome do Dispositivo"
  

The name of the device should be the same as the one in the   devices.

     

Save the .bat files in the directory that the executable is    devmanview.exe , or copy it to System32.

Download DevManView

    
04.11.2017 / 21:14