batch script to "scan for hardware" in Windows 8.1

3

There is this issue with Wifi on the Surface Pro 3 that can be easily fixed with a script that does the equivalent of running "Scan for hardware changes" in the Device Manager. This script will be executed automatically whenever the computer comes back from sleep.

How would one go about doing this? Powershell?

amh

Posted 2014-09-07T05:55:40.697

Reputation: 307

You could probably do this with devcon. Or perhaps something from here.

– Bob – 2014-09-07T06:00:31.890

Scan for hardware changes in Windows using command line – DavidPostill – 2014-09-07T06:37:16.450

Answers

0

There are two issues here:

First to run an event on wakeup, use task scheduler to register a task for that event (see here for more details).

For the second, use the devcon utility mentioned by @Bob.

All that remains is to point the task that you created at the batch file.

soandos

Posted 2014-09-07T05:55:40.697

Reputation: 22 744