In this video, Trevor Sullivan covers how to write a simple ping test with Pester tests. You will learn about how to use the Pester PowerShell module, how to write a practical test within PowerShell, and then how to complete a basic ping using the test connection command in PowerShell.
Trevor focuses on Pester infrastructure monitoring using the Pester PowerShell module. He’ll show you where you can go on Github to find his public repository, then transition to demonstrating how to write a practical test in PowerShell.
You’ll see how to use several public domain servers to complete a basic ping. This will confirm that you can hit your local default gateway so you can route out to the internet. One of the key tools for this is a command built into PowerShell called the “test connection command.” Trevor will show you how to use this to begin with a ping and test various aspects of your infrastructure.