The correct command is 'net user JohnDoe', which retrieves information about the specified user account, including group membership and status.
The other commands listed do not provide user account details in this context. For example, 'whoami' displays the currently logged-in user, while 'netstat' is used for network statistics and connections.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the function of the 'net user' command?
Open an interactive chat with Bash
What does 'whoami' do, and why is it not suitable for this task?
Open an interactive chat with Bash
What are the differences between 'netstat' and 'net accounts' commands?