220-1102 exam dumps

220-1102 practice question 123 of 828

A+ Core 2. Associate level, CompTIA. Free question with the correct answer and a full explanation.

220-1102 Question 123

Single answerwhoami

A help desk technician is remotely assisting a Windows user who reports that a shared folder is denying access even though the user believes they are logged in with the correct company account. The technician wants to quickly verify which user account the current Command Prompt session is running under before troubleshooting permissions further. Which command should the technician use?

  1. A

    whoami

  2. B

    hostname

  3. C

    ipconfig

  4. D

    net user

Show answer and explanation

Correct answer: A

Explanation

The best answer is whoami because it is specifically designed to display the current user name and security context for the active session. In a real support scenario, this helps confirm whether the user is actually running under the expected account before checking permissions on shared resources. On Windows, whoami is a standard command-line tool and can also be used with switches such as /groups or /priv to view additional security information when permissions issues are more complex. This aligns with practical troubleshooting best practices: first verify the active identity, then evaluate access rights. Microsoft command-line documentation identifies whoami as the tool for displaying user, group, and privilege information for the current user.

  • A. Correct.

    Correct. The whoami command displays the name of the currently logged-on user associated with the current security context. In a Windows troubleshooting scenario, this is a fast way to confirm which account the current session is actually using before investigating NTFS or share permissions.

  • B. Incorrect.

    Incorrect. The hostname command displays the computer's name, not the currently logged-in user. A technician might choose this if they confuse system identity with user identity, but it does not help verify which account is running the session.

  • C. Incorrect.

    Incorrect. The ipconfig command displays TCP/IP network configuration information such as IP address, subnet mask, and default gateway. It is useful for network troubleshooting, but it does not identify the current user account.

  • D. Incorrect.

    Incorrect. The net user command can display or manage user accounts on the local computer or domain context, but by itself it does not simply report the identity of the current user in the session as directly as whoami does. This is a common confusion because both commands relate to users, but they serve different purposes.

Timed practice exam

Take a 220-1102 practice test under exam conditions

90 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam