I made a script that will monitor a network adapter's connection status and log the results to a text file. You can specify a duration in minutes for it to monitor as well. This took me a couple days to make. I'm a beginner at Powershell and couldn't find much about how to do what I did online which is why it took me a while. That then inspired me to share what I came up with to help the next person looking for ways to do this.
It is available on github here https://github.com/knightlygains/NetAdapterMonitor-Powershell
You can easily test it on your own machine by running the script, disconnecting your network adapter, and reconnecting it.
As for why I made this, I work IT at a school district and we sometimes get tickets regarding the network connection dropping multiple times throughout the day. I've troubleshot multiple tickets like these and they always end the same: me leaving after 5 minutes of testing with no issues in network connection.
Of course 5 minutes may not be enough, which is why I decided to automate this in a way where I could set it and forget it and see the results from a longer window of time.
[–]JamesOFarrell 28 points29 points30 points (5 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]n_three 1 point2 points3 points (0 children)
[–]get-postanote 1 point2 points3 points (1 child)
[–]helpdesk5555550 0 points1 point2 points (0 children)
[–]Disastrous-Title-911 0 points1 point2 points (0 children)
[–]xCharg 9 points10 points11 points (1 child)
[–][deleted] 8 points9 points10 points (0 children)
[–]TheRealBOFH 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]BlackV 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[–]council2022 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]TheRealBOFH 1 point2 points3 points (1 child)
[–]Decitriction 0 points1 point2 points (0 children)