I am looking for a simple script (that can be executed in windows platform) to ping all machines, and to write the IP of "On" machines (machines that'll reply) to a text file.

3 Answers 3


nmap -sP

Performs a ping scan (host discovery), then print out the available hosts that responded to the scan. No further testing (such as port scanning or OS detection) is performed.


You can use fping, for example:

/usr/sbin/fping -g -a

Will print all IPs answering to ping on the network.


Try the following program Netscan, I think this will do what you want..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.