220-1102 Question 99
Single answer1.5 Given a scenario, use the appropriate Microsoft command-line tools.A support technician is troubleshooting a Windows 11 PC that can reach local network resources but cannot browse the internet. The user reports that this started after moving the PC to a different office. The technician suspects the PC may have an incorrect default gateway or DNS configuration from the previous network. Which command-line tool should the technician use FIRST to view the current IP address, subnet mask, default gateway, and DNS server information for the network adapter?
- A
ipconfig /all
- B
ping localhost
- C
net use
- D
tracert 8.8.8.8
- E
nslookup
Show answer and explanation
Correct answer: A
Explanation
The best first step is to inspect the current network configuration with ipconfig /all. In a real troubleshooting workflow, technicians should verify the local adapter settings before moving to connectivity-path or name-resolution testing. This command is especially useful after a system changes networks because it shows whether the device received a valid DHCP lease and whether the default gateway and DNS servers match the new environment. After reviewing the output, a technician might continue with commands such as ping, tracert, or nslookup depending on the findings. Microsoft documentation for ipconfig describes its use for displaying Windows IP configuration values, including details available with the /all switch.
- A. Correct.
Correct. The ipconfig /all command displays detailed TCP/IP configuration information for each adapter, including the IPv4 address, subnet mask, default gateway, DHCP status, and DNS servers. In this scenario, the technician needs to verify whether the system is using valid network settings after being moved to a different office, so this is the most appropriate first command.
- B. Incorrect.
Incorrect. ping localhost tests whether the TCP/IP stack is functioning on the local machine, but it does not show the assigned IP configuration. A technician might choose this because it is a common basic connectivity test, but it will not reveal whether the PC has an incorrect gateway or DNS server.
- C. Incorrect.
Incorrect. net use is used to view or manage mapped network drives and shared resource connections. It is not a tool for displaying adapter IP settings. Someone might pick this because the PC can still access local resources, but the question specifically asks for network configuration details.
- D. Incorrect.
Incorrect. tracert 8.8.8.8 can help identify where traffic is failing on the path to an internet host, but it does not display the current adapter's configured IP address, gateway, or DNS servers. This could be useful later in troubleshooting, but it is not the best first step for verifying local configuration.
- E. Incorrect.
Incorrect. nslookup is used to query DNS and test name resolution. It can help determine whether DNS is functioning, but it does not provide the full adapter configuration needed here. A technician might use it after checking IP settings if DNS is still suspected.