Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9617

List All User Accounts on a Windows System via Command Line

$
0
0

I would like a command to list all of the user accounts in a Windows (Vista, 7, etc.) system in a way that I can use to iterate through them with a subsequent command.

net user gives me the data for which I'm searching, but it adds a bunch of other junk that would cause difficulty in parsing the users.

Ideally, I would receive output like:

> usercommanduser1user2user3

Viewing all articles
Browse latest Browse all 9617

Trending Articles