FOR /L %i IN (1,1,254) DO ping -n 1 192.168.1.%i | FIND /i “Reply”>>c:\ipaddresses.txt
it will write to ipaddress.txt on c drive, replace 192.168.1 to your own
My Work Diary
FOR /L %i IN (1,1,254) DO ping -n 1 192.168.1.%i | FIND /i “Reply”>>c:\ipaddresses.txt
it will write to ipaddress.txt on c drive, replace 192.168.1 to your own