Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $int = 1
- While($int=1)
- {
- $ping = New-Object System.Net.NetworkInformation.ping
- $job = $ping.send('8.8.8.8')
- sleep -MilliSeconds 2000
- if($job.RoundtripTime -eq 0)
- {
- Write-Host "Failed!"
- Invoke-RestMethod -Uri https://www.btopenzone.com:8443/tbbLogon -Method Post -Body username=pauladawson81@gmail.com"&"password=Dr0887Dr0887
- }
- else
- {
- Write-Host "Passed! Ping time to 8.8.8.8 was: " $job.RoundtripTime "ms."
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement