Background

Oh gross a batch file! Powershell 4 and above have so many features to replace all of this! I know, I know. This is a script that our clients can figure out how to run, works on XP and above, and has zero dependencies. Boss' requirements met!

It has some basic functionality like pinging the detected default gateway, as well as pinging and resolving a few well known, highly available servers. There are also a few lines in there to test connectivity to your own servers. The only semi-cool part of this is the fancy colored output. This is insanely difficult when compared to Powershell. A simple (yet puppy-killing) Write-Host -fo Green would solve all of this.