tags:

views:

83

answers:

1

Does anybody have a fast function for pinging a list of machines using Powershell?

I know I can use Test-Connection:

Test-Connection -Count 1 -ComputerName (gc .\comps.txt) -ea silentlycontinue

but this seems painfully slow (I'm assuming because it uses Win32_PingStatus).

Even better would be an example of how running it as a background job to speed it up would be most useful.

Thanks

+3  A: 

The PowerShell Community Extensions include a fast ping (among other useful scripts and aliases)

http://pscx.codeplex.com/

mwilson
This is the one I use. It allows you to specify the timeout value.
Mike Shepard