Using nbtstat -a [ipaddress] to identify the computer name


How to find out the computer name of a known ip address: nbtstat –a [ipaddress]

NOTE: The instructions below also claims to list the username (net view /domain:[domain name] > filename.txt) but I am not sure of it works under Windows 7. Not sure if this is because of Windows 7 permissions level (make sure you use CMD (the Windows 7 command prompt window) as a local administrator (start-programs-accessories and right click on command prompt and select RUN as administrator)

source: http://geekswithblogs.net/TimH/archive/2006/05/03/77070.aspx

If you need to find a username but only have an ip address, if you use active directory (AD) then you can use the following method to find out the username:

1. At the command prompt enter the following command:
nbtstat –a ipaddress
Where ipaddress is the ip address.
This will list the machine name using that ip address.
2. Then run the following command:
net view /domain:ad > somefile.txt
Where ad is the name of the domain you want to search and somefile.txt is the name of the file to contain the output.
This will generate a list of every machine and who is logged in.
3. Open the output file and search for the machine name determined in step 1 (the username will be listed next to this)
source:
=========================================

Actual Example of the nbtstat -a [ipaddress] command

C:\>nbtstat -a 135.84.217.154
Local Area Connection:
Node IpAddress: [135.84.217.154] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
——————————————
GAE87000IT-TEST UNIQUE Registere
CORP GROUP Registere
GAE87000IT-TEST UNIQUE Registere
CORP GROUP Registere
MAC Address = 5C-FF-35-01-ED-FB
Local Area Connection* 29:
Node IpAddress: [0.0.0.0] Scope Id: []
Host not found.
Wireless Network Connection:
Node IpAddress: [0.0.0.0] Scope Id: []
Host not found.
Wireless Network Connection 2:
Node IpAddress: [0.0.0.0] Scope Id: []
Host not found.
C:\>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: