📅  最后修改于: 2022-03-11 14:50:28.756000             🧑  作者: Mango
$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"