Quick & Easy Subnet Scan Using Windows XP Utilities

Written by James McDonald

February 5, 2007

Open a cmd.exe session and enter the following.

for /l %i in (1,1,254) do ping –w 100 –n 1 10.0.0.%i | findstr “Reply”

Where 10.0.0. is replaced with your subnet address e.g. 192.168.20.

Adjust the range of hosts you want to scan by change the first 1 in brackets and the final value. For example if you only wanted to scan from host 20 to 50 you would make the values in brackets (20,1, 50)

for /L %i in (1,1,50) do @ping -w 100 -n 1 192.168.80.%i | findstr “Reply”
Reply from 192.168.80.2: bytes=32 time<1ms TTL=128
Reply from 192.168.80.5: bytes=32 time<1ms TTL=128
Reply from 192.168.80.10: bytes=32 time<1ms TTL=128
Reply from 192.168.80.12: bytes=32 time<1ms TTL=128
Reply from 192.168.80.13: bytes=32 time<1ms TTL=64
Reply from 192.168.80.21: bytes=32 time=6ms TTL=60
Reply from 192.168.80.24: bytes=32 time<1ms TTL=255
Reply from 192.168.80.41: bytes=32 time<1ms TTL=128
Reply from 192.168.80.46: bytes=32 time<1ms TTL=128

1 Comment

  1. Chris

    You will need admin rights for this to work, a non-admin user will just see the cursor blinking while it does nothing.

    Reply

Submit a Comment

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

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...