PowerShell的快速​​ping功能

fen*_*ter 6 powershell

是否有使用PowerShell ping机器列表的快速功能?

我知道我可以使用Test-Connection:

Test-Connection -Count 1 -ComputerName (gc .\comps.txt) -ea silentlycontinue
Run Code Online (Sandbox Code Playgroud)

但这似乎很慢(我假设因为它使用Win32_PingStatus).

更好的是一个例子,说明如何将它作为后台工作来加速它将是最有用的.

mwi*_*son 5

PowerShell社区扩展包括快速ping(以及其他有用的脚本和别名)

http://pscx.codeplex.com/