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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...