0

Is there any way to write a batch file in windows to read the status of a a device and enable it if it is currently disabled?

Problem is, some times when I start the windows, the audio device is disabled (I don't know why). So I have to go to device manager and right click on the audio device and select "enable". Therefore, I am planning to write a script or batch file to scan for the devices and enable the device automatically.

However I don't know the if windows commands supports such feature.

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
mahmood
  • 1,225
  • 7
  • 25
  • 38
  • possible duplicate of [Enable/disable Windows 7 device via command line](http://superuser.com/questions/429016/enable-disable-windows-7-device-via-command-line) – and31415 Aug 20 '14 at 20:40

1 Answers1

0

Have you taken a look at this question already? Previous Question

pyker
  • 194
  • 4
  • ok please remove your answer so that I can delete the post. Seems to be duplicate – mahmood Aug 20 '14 at 19:41
  • it says there should be a "delete" link between edit and flag. It does not appear for me i must not have the reputation yet – pyker Aug 20 '14 at 19:45