nbtstat

Windows CMD · Network · reference only

What it does

Shows NetBIOS over TCP/IP statistics and connections: names, name cache and sessions.

Syntax

nbtstat [opciones] [intervalo]

Options and parameters

  • -n

    Lists the local NetBIOS names.

  • -a nombre

    Shows a remote computer's name table from its name.

  • -A dirección

    Shows a remote computer's name table from its IP.

  • -c

    Shows the NetBIOS name cache.

  • -S

    Shows NetBIOS sessions by IP address.

  • -R

    Purges the name cache and reloads it from the LMHOSTS file.

Usage examples

  • nbtstat -n

    Shows the NetBIOS names registered on this machine.

  • nbtstat -a PC01

    Queries the names of a network computer by its name.

  • nbtstat -A 192.168.1.20

    Queries a computer's names by its IP address.

  • nbtstat -R

    Purges and reloads the name cache.

Notes and common mistakes

  • NetBIOS is an old protocol; on modern networks almost everything is resolved through DNS.

Related commands