Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ping list of ip addresses powershell

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

#ping the IPs From IPAddresses.txt
(Get-Content .DesktopIPAddresses.txt) | ForEach {Write-Host $_, "-", ([System.Net.NetworkInformation.Ping]::new().Send($_)).Status}
Stop-Transcript
 
PREVIOUS NEXT
Tagged: #ping #list #ip #addresses #powershell
ADD COMMENT
Topic
Name
8+1 =