Getting a List of User Accounts

by Allen Wyatt
(last updated February 27, 2017)

You already know that Windows allows you to create multiple user accounts on one physical computer. This is a great feature, as it allows multiple people to use a computer and configure it to their individual liking. Over time, however, you may lose track of the user accounts created on a particular system.

Fortunately, it is rather easy to see what user accounts there are on a system. Start by displaying the command prompt, and then enter the following:

net user

When you press Enter, Windows displays all the users on the system. For instance, here is the list of users I saw when I used this command on my Windows 8 system. (See Figure 1.) (There are only three users listed, which is good to know. If there were more, I'd need to investigate where they came from.)

Figure 1. The net user command can show a list of user accounts.

If you need to capture the list of users into a text file so you can work with it in some other way, you can use the old DOS trick of directing output into a text file:

net user > c:\UserList.txt

Run this command and you end up with the user list in the file UserList.txt, in the root directory of the C: drive. From there you can load it and work with it the same as any other text file.

 This tip (13121) applies to Windows 7, 8, and 10.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Not Enough Resources to Delete Rows and Columns

Few things are as frustrating as trying to delete rows or columns and having Excel tell you that you can't perform the ...

Discover More

Saving Versions

If you need to save your Excel data at different benchmarks, you might want to use some sort of "versioning" system. Such ...

Discover More

Searching for Styles

If you use styles to format your text, you can later search for words and phrases that are formatted using various styles. ...

Discover More
More WindowsTips

Understanding the Guest Account

If lots of people may need temporary access to your computer, then you may want to set up the Guest user account. Before ...

Discover More

Changing a User's Account Type

There are several different account types in Windows. This tip tells you how to change from one account type to another.

Discover More

Changing How User Account Control Works

The User Account Control (UAC) model allows an administrator to control when (or if) they are to be notified when a ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is eight more than 8?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.