Find NetBIOS/WINS name of a IP

How can I find the NetBIOS/WINS name of a PC

You can use nbtstat

Example:

nbtstat -A x.x.x.x

Syntax

...

By IP address

  NBTSTAT -A IP_address [options] [interval]

Key

...

-A (Adapter status) List the remote machine's name table given its IP address

Source NBTSTAT.exe - Display protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP)


Further reading

  • An A-Z Index of the Windows CMD command line is an excellent reference for all things Windows cmd line related.

ping -a xxx.xxx.xxx.xxx

This will try WINS and then DNS.

The NSLOOKUP command does similar, but only via DNS.