you could also use webpage load test to verify content comes back and use a list of pings and loads combined to afford icmp blocks for pings or a url that is down which, both could lead to a false internet failure indicator. This way if a particular site or ping fails it may not be indicitive of true no internet.
on error resume next
arraywebsite = array("www.google.com","www.yahoo.com")
for each objUrl in arraywebsite
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
strurl = "http://" & objUrl
objHTTP.Open "GET", strURL, FALSE
objHTTP.Send
if objHTTP.statusText = "OK" then
wscript.echo now & " Url Status " & objHTTP.statusText & " For " & strUrl
else
wscript.echo now & " Error Connecting to " & strurl
end if
next