Ping All IPs in Subnet – PowerShell

The following PowerShell code will ping all IPs in a given range:

  • 1..255 | foreach { ping 10.4.19.$_ -n 1 -w 100 }

Leave a Reply

Your email address will not be published. Required fields are marked *