Ping utility function/module for PowerShell

After needing to ping large lists of servers I created a quick function to do exactly that. It will accept pipeline input or you can provide server names via an input parameter. It also has input parameters for buffer size and count as well as creation of a logfile for output. This is a function I probably use on more or less a daily basis. It’s incredibly useful due to it being pipeline enabled.

As per the examples in the comments, you can pipe the content of the textfile in and the function will go away and ping all machines in the list. I also use it to ping all machines on a VMware host quite frequently if the host’s management agents have died. If the -Count parameter is set to 1 then the ping results will come back incredibly quickly. Essentially you can ping 50+ servers in a couple of seconds. Feel free to suggest improvements.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">