powershell - PowerShell 的快速 ping 功能

标签 powershell

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

4年前关闭。




Improve this question




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

我知道我可以使用测试连接:

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

但这似乎非常缓慢(我假设是因为它使用 Win32_PingStatus)。

更好的例子是如何将它作为后台作业运行以加速它是最有用的。

最佳答案

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

http://pscx.codeplex.com/

关于powershell - PowerShell 的快速 ping 功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3470936/

相关文章:

node.js - powershell 和 cmd 之间的文件大小不同

scripting - 监视Powershell脚本的挂起实例

arrays - Powershell 如何重载数组索引运算符?

variables - 带有 GUI 的 Powershell 不会设置变量

azure - 如何将参数传递给 Azure PowerShell Set-AzVmRunCommand?

powershell - 我可以在Powershell读取主机中使用现有变量吗

c# - 在执行每个管道命令后在 C# 中捕获 PowerShell 输出

powershell - Select-Object 表达式语句中的变量未按预期工作

regex - 如何解决“替换字符串”方法区分大小写的问题?

powershell - 命令.startservice()在Powershell中不起作用