Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


Displays NetBIOS over TCP/IP (NetBT) protocol statistics, NetBIOS name tables for both the local computer and remote computers, and the NetBIOS name cache. Nbtstat allows a refresh of the NetBIOS name cache and the names registered with Windows Internet Name Service (WINS). Used without parameters, nbtstat displays help.


nbtstat[-aRemoteName] [-AIPAddress] [-c] [-n] [-r] [-R] [-RR] [-s] [-S] [Interval]

-a RemoteName
Displays the NetBIOS name table of a remote computer, where RemoteName is the NetBIOS computer name of the remote computer. The NetBIOS name table is the list of NetBIOS names that corresponds to NetBIOS applications running on that computer.

-A IPAddress
Displays the NetBIOS name table of a remote computer, specified by the IP address (in dotted decimal notation) of the remote computer.

Displays the contents of the NetBIOS name cache, the table of NetBIOS names and their resolved IP addresses.

Displays the NetBIOS name table of the local computer. The status of Registered indicates that the name is registered either by broadcast or with a WINS server.

Displays NetBIOS name resolution statistics. On a computer running Windows XP or a Windows Server 2003 operating system that is configured to use WINS, this parameter returns the number of names that have been resolved and registered using broadcast and WINS.

Purges the contents of the NetBIOS name cache and then reloads the #PRE-tagged entries from the Lmhosts file.

Releases and then refreshes NetBIOS names for the local computer that is registered with WINS servers.

Displays NetBIOS client and server sessions, attempting to convert the destination IP address to a name.

Displays NetBIOS client and server sessions, listing the remote computers by destination IP address only.

Redisplays selected statistics, pausing the number of seconds specified in Interval between each display. Press CTRL+C to stop redisplaying statistics. If this parameter is omitted, nbtstat prints the current configuration information only once.

Displays help at the command prompt.

  • Nbtstat command-line parameters are case-sensitive.

  • The following table describes the column headings that are generated by nbtstat.


    Heading Description


    The number of bytes received.


    The number of bytes sent.


    Whether the connection is from the computer (outbound) or from another computer to the local computer (inbound).


    The remaining time that a name table cache entry will live before it is purged.

    Local Name

    The local NetBIOS name associated with the connection.

    Remote Host

    The name or IP address associated with the remote computer.


    The last byte of a NetBIOS name converted to hexadecimal. Each NetBIOS name is 16 characters long. This last byte often has special significance because the same name might be present several times on a computer, differing only in the last byte. For example, <20> is a space in ASCII text.


    The type of name. A name can either be a unique name or a group name.


    Whether the NetBIOS service on the remote computer is running (Registered) or a duplicate computer name has registered the same service (Conflict).


    The state of NetBIOS connections.

  • The following table describes the possible NetBIOS connection states.


    State Description


    A session has been established.


    A connection endpoint has been created and associated with an IP address.


    This endpoint is available for an inbound connection.


    This endpoint has been opened but cannot receive connections.


    A session is in the connecting phase and the name-to-IP address mapping of the destination is being resolved.


    An inbound session is currently being accepted and will be connected shortly.


    A session is trying to reconnect (it failed to connect on the first attempt).


    A session is in the connecting phase and the TCP connection is currently being created.


    An inbound session is in the connecting phase.


    A session is in the process of disconnecting.


    The local computer has issued a disconnect and it is waiting for confirmation from the remote system.

  • This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.


To display the NetBIOS name table of the remote computer with the NetBIOS computer name of CORP07, type:

nbtstat -a CORP07

To display the NetBIOS name table of the remote computer assigned the IP address of, type:

nbtstat -A

To display the NetBIOS name table of the local computer, type:

nbtstat -n

To display the contents of the local computer NetBIOS name cache, type:

nbtstat -c

To purge the NetBIOS name cache and reload the #PRE-tagged entries in the local Lmhosts file, type:

nbtstat -R

To release the NetBIOS names registered with the WINS server and re-register them, type:

nbtstat -RR

To display NetBIOS session statistics by IP address every five seconds, type:

nbtstat -S 5

Formatting legend


Format Meaning


Information that the user must supply


Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft