Created
November 15, 2016 01:22
-
-
Save chrisbrownie/3b2a9be4f5dc8f492ee5db2aad382d25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Because we all know loading up an already overwhelmed site helps #Census | |
$url = "https://ebgames.com.au/featured/nintendo-classic-mini-nes" | |
$passes = 0 | |
$fails = 0 | |
while ($true) { | |
try { | |
iwr $url -ErrorAction "STOP" -Verbose:$false | Out-Null | |
$passes++ | |
} catch { | |
$lastError = $_ | |
$fails++ | |
} | |
Clear-Host | |
"Passes: $passes" | |
"Fails: $fails" | |
"Last error:`n$lastError" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment