Ask the Expert

Can the 'net user' command be used to find the admin account names on a network?

Couldn't the "net user" command be used by a regular user in the network to find out the names of the administrator accounts on the network?
The net user command can be used to dump a list of account names. An authenticated user can list the local accounts by entering "net user" at the command prompt. Entering "net user /domain" will list the active accounts in the domain that the user is a member of, but this list does not expose group membership. If you have renamed the administrator account, you cannot tell from this output who is an administrator and who is not.

You could, armed with resource kit tools or third-party tools, discover this information. However, there are other sources of account lists, including the list exposed when assigning or viewing permissions on files. This capability will expose not only the user names, but information about existing groups and any comments in the comment field of the group. This information leakage is more contained in Windows Server 2003.

There are many sources of information about your network that are available to authorized users of your network -- this is what can make them infinitely more dangerous than someone from the outside.


Member feedback: The command net group /"domain admins" /domain will list the members of the domain admins group. No third-party tools are needed.


Roberta Bragg's response: The question asked what the net user command would show and is therefore answered correctly. The net user command does not expose who the administrators are. However, as is correctly pointed out, the net group command, like other native, freely available and third-party tools, will expose the list of domain administrators.

This was first published in March 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: