Monitor Network Script

As hardware becomes old, the operating system running on it, whether it is a virtual machine running in a hypervisor or it’s a bare metal install, will start to exhibit what we here at Tech With a Hammer like to call “Ghost In the Machine Issues”. There will be inexplicable issues, like network drop outs or mouse and keyboard input randomly freezing, which can’t be truly attributed to anything. Hardware may check out with the built in diagnostics, memory or peripherals replaced; yet these issues keep cropping up with no probable cause other than old hardware.

One of our technicians was having an issue with random network drop-outs where DNS resolution failed, while in the Windows Event Logs there is no clear indication. Verbose Windows logging has been enabled, yet none of the log files in C:\Windows\Logs can describe the underlying root cause. So, in an attempt to analyze the situation, the following hammer was created which logs DNS resolution and network ping success and failures to a custom Event Log

Leave a Reply

Your email address will not be published. Required fields are marked *