开发者

Fast ping function for PowerShell [closed]

开发者 https://www.devze.com 2023-01-11 13:51 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_如何学Go

Closed 6 years ago.

Improve this question

Is there 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.


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

http://pscx.codeplex.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号