Answers for "ping list of ip addresses powershell"

1

ping list of ip addresses powershell

#Write the log into output file 
Start-Transcript -Path .\Desktop\log.txt

#ping the IPs From IPAddresses.txt
(Get-Content .\Desktop\IPAddresses.txt) | ForEach {Write-Host $_, "-", ([System.Net.NetworkInformation.Ping]::new().Send($_)).Status}
Stop-Transcript
Posted by: Guest on April-21-2022

Browse Popular Code Answers by Language