Internet Connectivity Script
My friend was having issues with his internet being spotty and sometimes just randomly connecting and disconnecting so I created a PowerShell script to ping 8.8.8.8 (Google DNS) every 5 seconds and output whether or not it succeeded to a text file on his desktop. Using this he was able to confirm with his ISP that something was wrong and it was happening intermittently. He ended up calling a tech out and they found that they didn’t connect the fiber correctly/all the way so anytime the wind blew a certain direction the connection would come loose, causing his internet to drop. Matching up with what he saw from his internet connection.
Ethernet Link Speed Script
I was having issues with my ethernet connection randomly auto negotiating down to 100mbps. I tried connecting the cable to different ports, forcing 1000mbps connection speed and no luck. To help determine when/what possibly could be causing this issue to arise, I wrote a script to get the link speed of my ethernet adapter and print out the Date, Time, Name, Status, and Link Speed of the adapter. I wanted to try using Task Scheduler to automate this script so it wouldn’t run in the foreground (I didn’t want to leave terminal open all the time). I created a task to run the script upon creation every 1 minute, indefinitely. So far it works perfectly, appending the specified ethernet adapter to a text file every minute.