Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to reboot when no Internet Connection?

$
0
0

From time to time one of my Windows 7 PC's loses it's internet connection, but still  has a LAN connection.  The only solution is to reboot the PC when this happens...  

Usually no problem I can remote in from one of my local computers and reboot the PC remotely.  But once in a while this happens when I am away from home for a few days, so I can't reboot until I am physically back at the PC.

The best idea I've come up with is to schedule a task to run a script a couple of times a day to check if there is a connection to the internet, (maybe pinging my ISP or Google.com) and if that fails then to reboot the computer.

I've done all kinds of google searches, and searched this forum, but I can't find any example script of this... any help would be appreciated.

Thanks


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>