(Side note: This is my first time using PowerShell, so please excuse my ignorance! I’m familiar with Python & Java, but this is new to me.)
As title says! I’ve been having some serious issues with my ISP, so I set out to make a simple script that pings Google’s 8.8.8.8 DNS every 3 minutes to look for crashes.
It downloads a test file, records the speed, and then outputs the result (Pass/Fail) and speed (if applicable) both to me on my monitor, as well as a txt log file.
My issue: It works perfectly fine when the internet is online. However… whenever it records a crash, the echo seems to stop, and the program no longer continues to monitor issues. Rather than continuing to ping for a continuous crash or a restoration of the network, it just… stops. This is what has stumped me, ultimately. I have no clue why it would stop :( any help on this (very specific) case would be appreciated!
Images below for the very short code & examples of the output :)