📜  powershell ping - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:28.756000             🧑  作者: Mango

代码示例1
$ping = New-Object System.Net.Networkinformation.Ping
1..10 | % {$ping.send("192.168.1.$_") } | Where-Object Status -eq "Success" | Select-Object -Property "Address" | Select -Expand Address | Out-File -FilePath "$home\Desktop\IPaddresses2.txt"