Ping All IPs in Subnet – PowerShell June 7, 2018 steve The following PowerShell code will ping all IPs in a given range: 1..255 | foreach { ping 10.4.19.$_ -n 1 -w 100 }