GSEC practice question 8 of 35

You work as a Network Administrator for McRobert Inc. You want to know the NetBIOS name of your computer. Which of the following commands will you use?

Full set: 383 questions

Domain Windows Command Line

Answer options
A: NETSTAT -s
B: NBTSTAT -s
C: NBTSTAT -n Correct answer
D: NETSTAT -n
Correct Answer:
C. NBTSTAT -n
Explanation

The nbtstat (NetBIOS over TCP/IP Statistics) command is a diagnostic tool for NetBIOS over TCP/IP. It is used to troubleshoot NetBIOS name resolution problems. The -n switch specifically displays the local NetBIOS name table registered by the local computer. This table includes the computer's unique NetBIOS name (type ) and the workgroup or domain name (type ), making it the direct command to view the local machine's NetBIOS name.

Why Incorrect

A. NETSTAT -s: This command displays detailed per-protocol statistics for TCP, UDP, ICMP, and IP, not NetBIOS names.
B. NBTSTAT -s: This command displays the NetBIOS session table with the destination IP addresses, not the local name table.
D. NETSTAT -n: This command displays active TCP connections and ports in numerical form, bypassing name resolution entirely.

References

1. Microsoft Corporation. (2023). nbtstat. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nbtstat.

Reference Detail: Under the "Parameters" section

the documentation states that the -n parameter "Displays the local NetBIOS name table. In the table

each name is followed by its type and status (registered or conflict)."

2. Microsoft Corporation. (2023). netstat. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat.

Reference Detail: The "Parameters" section describes -s as "Displays per-protocol statistics" and -n as "Displays active TCP connections

however

addresses and port numbers are expressed numerically and no attempt is made to determine names."

3. University of Washington. (n.d.). Commonly Used Command Line Commands. UW-IT Connect. Retrieved from https://itconnect.uw.edu/learn/workshops/online-tutorials/command-line-interface/common-commands/.

Reference Detail: In the section on networking commands

nbtstat -n is described as the command to "display the local NetBIOS name table."

Scroll to Top