zequestioner
asked on
Find XP Computers on a network with Batch file
Hello experts,
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 000::sp4
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Per the above website i can use this:
#17: How do I detect remote operating system?
You can identify a remote host apps and OS using the -O option:
nmap -O 192.168.1.1
nmap -O --osscan-guess 192.168.1.1
nmap -v -O --osscan-guess 192.168.1.1
Is there a better way to do this and have the script output a nice list?