A simple powershell script to ping multiple IPs/Hostname
How to use
Replace the value of the variable $variable (example: $variable = “ipaddress”,”hostname”,”computername”,”website”)
Copy and paste the script in notepad and save with extension “.ps1”
Run via the commandline in powershell
PS C:\Temp> .\ping.ps1
Or you can right click the file and run by “Run with PowerShell”
The Code