Ping Liste des adresses IP 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
Rabbeg Mohamed Ali