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?

DavidPostill
  • 153,128
  • 77
  • 353
  • 394
amh
  • 307
  • 3
  • 10
  • You could probably do this with `devcon`. Or perhaps something from [here](http://blogs.technet.com/b/wincat/archive/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction.aspx). – Bob Sep 07 '14 at 06:00
  • [Scan for hardware changes in Windows using command line](http://serverfault.com/questions/547130/scan-for-hardware-changes-in-windows-using-command-line) – DavidPostill Sep 07 '14 at 06:37

1 Answers1

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
  • 24,206
  • 28
  • 102
  • 134