nbtstat Command Tutorial

NetBIOS is a popular protocol mainly used for Microsoft Windows operating systems. NetBIOS provides network-related information and communication over the TCP/IP. The nbtstat command is used to use and manage the NetBIOS protocol. Also, the nbtstat command is used to manage the Windows Internet Name Service (WINS). In this tutorial, we will learn how to list the BIOS table, Session statistics, etc. with the nbtstat command.

nbtstat Syntax

nbtstat command has the following syntax which is very simple and the remote computer IP address or name is provided with the options.

nbtstat OPTIONS
  • OPTIONS are specified to display, change or clear different configuration.

nbtstat Parameters

PARAMETERDESCRIPTION
/a HOSTNAMEDisplay specified computer NetBIOS table
/A IPADDRESSDisplay specified computer NetBIOS table
/cDisplay NetBIOS name cache, names, and IP addresses
/nDisplay NetBIOS name table of the local computer
/rDisplay NetBIOS name resolution statistics
/RPurge NetBIOS name cache
/RRRelease and refresh NetBIOS names
/sDisplay NetBIOS client and server sessions hostname
/SDisplay NetBIOS client and server sessions with IP address
/?Display help information
INTERVALSpecified interval value

Display NetBIOS Table

NetBIOS table provides information about the computers on the current network. NetBIOS table provides computer name, type and status information. This table also called as NetBIOS Local Name Table .

C:\>nbtstat /n

Ethernet0:
Node IpAddress: [192.168.142.130] Scope Id: []

                NetBIOS Local Name Table

       Name               Type         Status
    ---------------------------------------------
    DESKTOP-HQVAMA3<20>  UNIQUE      Registered
    DESKTOP-HQVAMA3<00>  UNIQUE      Registered
    WORKGROUP      <00>  GROUP       Registered

Display NetBIOS Table of Remote Computer

NetBIOS is an open protocol where remote systems information can be easily gathered. The /A or /a command can be used to get the NetBIOS table of the remote system. The /A is used to specify the remote host as IP address like below.

> nbtstat /A 192.168.1.10

or /a is used to specify remote system domain name.

> nbtstat /a dc.windowstect.com

Display NetBIOS Name Cache

The NetBIOS name cache can be displayed by using the /c parameter.

> nbtstat /c

Purge/Clear NetBIOS Name Cache

You can urge or clear the NetBIOS name cache and relaod the pre-tagged entries in the local Lmhosts file.

> nbtstat /R

Display NetBIOS Session Statistics

NetBIOS is a session based protocol where sessions can be established during usage. The NetBIOS sessions information and statistics can be listed with the /S parameter like below.

> nbtstat /S

Set Interval

The different commands output can be displayed regularly by specifying an interval. The interval value can be added at the end of the current command. In the following example we will set the interval as 10 seconds.

> nbtstat /S 10
READ  Windows PowerShell ISE (Integrated Scripting Environment )

Leave a Comment