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 questionsDomain Windows Command Line
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.
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.
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."
Keep practicing
Take the free GSEC practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GSEC practice questions
- Question 1What is the key difference between Electronic Codebook mode and other block cipher modes …
- Question 2Which of the following systems acts as a NAT device when utilizing VMware in NAT mode?
- Question 4You are doing some analysis of malware on a Unix computer in a closed test network. The I…
- Question 5You work as a Network Administrator for McNeil Inc. The company has a Linux-based network…
- Question 6Which of the following services resolves host name to IP Address?
- Question 7What does PowerShell remoting use to authenticate to another host in a domain environment?
