The Quick and Dirty (and Free!) IP Scanner
Posted: November 10, 2011 Filed under: Tid-bits | Tags: free ip scanner, ip, ip address, ip address scanner, ip scanner 1 Comment(edit: 12Aug24) PowerShell version:
& {for ($i=1;$i -le 254;$i++) {ping 192.168.86.$i -n 1 | Select-String “bytes=32”} } | out-file c:\temp\ping.txt
If, on occasion, you need to scan a range of IP addresses for live devices but don’t have access to the many tools for such a task, free or otherwise, memorize this little trick and move on to more important things!
Open a command prompt and type
for /L %i in (1,1,254) do ping -n 1 xxx.xxx.xxx.%i | find “Reply” >> c:\ping.txt
Be sure to replace the x’s in the above command with the correct portion of the IP address range you want to scan.
The output below is what the command looks like when it’s running.