Powershell Ping all IP addresses in my subnet Updated July 02 2025
Use a one liner to ping all IP addresses in your subnet, to see what devices are on your network. It works, you don't need any extra software, but boy is it slow!

If your subnet doesn't begin with "192.168.1." then replace them with your subnet beginning. It will scan from .1 to .254.

Copy to Clipboard foreach ($i in 1..254) { test-connection 192.168.1.$i -Count 1 -ErrorAction SilentlyContinue}



After it finishes, you can find devices which don't ping by running an ARP command:
Copy to Clipboard arp -a
Search Keywords: Powershell, Ping, ipscan, scan, discover, network, gateway




©2024 - Some portions of this website are Copyrighted.
Your IP: 216.73.216.140     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy