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.
Pingback: Fredrik Wall
Pingback: Poweradmse