是否有使用PowerShell ping机器列表的快速功能?
我知道我可以使用Test-Connection:
Test-Connection -Count 1 -ComputerName (gc .\comps.txt) -ea silentlycontinue
Run Code Online (Sandbox Code Playgroud)
但这似乎很慢(我假设因为它使用Win32_PingStatus).
更好的是一个例子,说明如何将它作为后台工作来加速它将是最有用的.
| 归档时间: |
|
| 查看次数: |
15516 次 |
| 最近记录: |