Get-PingStatus

Status-battery-100-icon

Over at 2009 I wrote a ping status function.
The function can now be downloaded from the Script Center Repository at Microsoft.
http://gallery.technet.microsoft.com/Get-PingStatus-Function-e375fec3

I use It in my own scripts and just updated It so I hope others can use It too.

.EXAMPLE
    Get-PingStatus server01
.EXAMPLE
    if (Get-PingStatus server01) { Write-Host “I’m up!” }
.EXAMPLE
    if (!(Get-PingStatus server01)) { Write-Host “I’m not up!” }

No related posts.

This entry was posted in Functions, PowerShell and tagged , , . Bookmark the permalink.

2 Responses to Get-PingStatus

  1. Pingback: Fredrik Wall

  2. Pingback: Poweradmse

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>