Reconnaissance and Enumeration
A tester has a command prompt on a standalone Windows workstation and wants a list of its local user accounts. Which command BEST does this?
Show the answer
Correct answerD. net user
AWhy not this: whoami /groups shows the group memberships of the current user only, not every local account.
BWhy not this: net localgroup lists local group names such as Administrators, not the user accounts.
CWhy not this: net share lists shares the host offers, which is share enumeration rather than user enumeration.
DWhy this is right: net user with no switches lists the accounts held in the local security account database.
Run without switches, net user lists the user accounts in the local computer's account database. net localgroup lists group names, not user accounts, so it does not answer the question.