I am trying to write a batch file and use nmap.exe to find XP machines on the network. The batch file executes:
(I downloaded zenmap)
C:\program files\nmap.exe -F -O 192.168.1.0/24 > XPList.txt
Sample export is:
Nmap scan report for xp1.lab.net (192.168.1.16)
Host is up (0.00076s latency).
All 100 scanned ports on xp.lab.net (192.168.1.16) are filtered
Warning: OSScan results may be unreliable because we could not find at least 1 o
pen and 1 closed port
Device type: general purpose
Running: Microsoft Windows 2000
OS CPE: cpe:/o:microsoft:windows_2
OS details: Microsoft Windows 2000 SP4
OS detection performed. Please report any incorrect results at http://nmap.org/submit/
How can I loop in all the text and echo out all the XP machines? (Windows 2000)
Is there a better way to do this?