Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $int = 1
  2.  
  3. While($int=1)
  4. {
  5. $ping = New-Object System.Net.NetworkInformation.ping
  6. $job = $ping.send('8.8.8.8')
  7. sleep -MilliSeconds 2000
  8.  
  9. if($job.RoundtripTime -eq 0)
  10. {
  11. Write-Host "Failed!"
  12. Invoke-RestMethod -Uri https://www.btopenzone.com:8443/tbbLogon -Method Post -Body username=pauladawson81@gmail.com"&"password=Dr0887Dr0887
  13. }
  14. else
  15. {
  16. Write-Host "Passed! Ping time to 8.8.8.8 was: " $job.RoundtripTime "ms."
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement