How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

agnul picture agnul · Sep 18, 2008 · Viewed 33.5k times · Source

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

I'd like to get NetBIOS name, IP and MAC addresses for every host on the LAN, preferably not having to walk to every single PC and take note of the stuff myself.

How to do that with Windows Script Host/PowerShell/whatever?

Answer

mana picture mana · Sep 18, 2008

As Daren Thomas said, use nmap.

 nmap -sP 192.168.1.1/24

to scan the network 192.168.1.*

 nmap -O 192.168.1.1/24

to get the operating system of the user. For more information, read the manpage

 man nmap

regards