nbtstat

Source: https://learn.microsoft.com

Nbtstat is a Windows utility that helps in troubleshooting NETBIOS name resolution problems. The nbtstat command removes and corrects preloaded entries using several case-sensitive switches. Attackers use Nbtstat to enumerate information such as NetBIOS over TCP/IP (NetBT) protocol statistics, NetBIOS name tables for both local and remote computers, and the NetBIOS name cache.

nbtstat is a command-line tool in Windows used to display network statistics related to the NetBIOS over TCP/IP (NBT) protocol. It provides information about the network connections, including NetBIOS name resolution and the status of remote systems.

Nbtstat Syntax

The syntax of the nbtstat command is as follows:

nbtstat [-a <remotename>] [-A <IPaddress>] [-c] [-n] [-r] [-R] [-RR] [-s] [-S] [<interval>][-?]

Nbtstat Parameters

Parameter Function -a Displays the NetBIOS name table of a remote computer, where is the NetBIOS computer name of the remote computer -A Displays the NetBIOS name table of a remote computer, specified by the IP address (in dotted decimal notation) of the remote computer -c Lists the contents of the NetBIOS name cache, the table of NetBIOS names and their resolved IP addresses -n Displays the names registered locally by NetBIOS applications such as the server and redirector -r Displays a count of all names resolved by a broadcast or WINS server -R Purges the name cache and reloads all #PRE-tagged entries from the Lmhosts file -RR Releases and re-registers all names with the name server -s Lists the NetBIOS sessions table converting destination IP addresses to computer NetBIOS names -S Lists the current NetBIOS sessions and their status with the IP addresses Re-displays selected statistics, pausing at each display for the number of seconds specified in Interval -? Displays help

Table 4.3: Nbtstat parameters and their respective functions

Usage Context

nbtstat is mostly used in troubleshooting, especially when dealing with legacy Windows networking or mixed environments using both TCP/IP and NetBIOS.

Is there a specific nbtstat function you want to dive deeper into or troubleshoot?