-2

I have a computer with windows 7 that I intend to use as server (it will at home and I may need to access it from work), now, problem is WiFi connection sometimes hangs, but after repairing it, it works OK.

Is there any way to trigger a network connection repair automatically from a script which will first ping router and if no answer then start connection repair, all without my intervention?

Joffrey
  • 2,021
  • 1
  • 12
  • 14
THESorcerer
  • 121
  • 2
  • 6

1 Answers1

1

You can combine two solutions on StackExchange to do this:

On how to repair the connection: I would use netsh to bring the interface down and up again.

The better solution to your problem would be to determine the cause of the failed network connection. Reinstall or update your drivers and update the firmware of your access-point/router.

Joffrey
  • 2,021
  • 1
  • 12
  • 14