Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can find and one by one show the info of users using the command:

net users

but is there any way I can view the Info of all users at once? Such as a:

net users /all
share|improve this question
    
What OS are you using? –  Doktoro Reichard Aug 24 '13 at 21:39
    
Well there is no one OS. I need to execute this on Windows XP to 7 machines and Windows Server 2003 to 2008 machines. Thats the best range I can give you. –  John Aug 24 '13 at 21:40

2 Answers 2

up vote 0 down vote accepted
wmic useraccount list /format:list
share|improve this answer
    
Doesn't work on Windows XP Home Edition (tested it myself; however it seems to be available on all other platforms (source). –  Doktoro Reichard Aug 25 '13 at 20:22

If you want something like this:

User Accounts

On Run, type:

control userpasswords2

And you can see graphically all users and by selecting Properties, you can then see some of their attributes.

Based roughly on this source and this for some pictures. It is somewhat of an obscure command, though. And it works on XP, so I can't say for sure it works on versions upper than that.

share|improve this answer
    
Works on Win7. Cliff –  cliff2310 Aug 24 '13 at 22:28
    
I want to do this from the command line. –  John Aug 25 '13 at 10:00
    
In that case, you could write a batch file, but I've been looking at that and, since the output of >net user isn't easy to treat, this would seem like the best option, unless you weren't opposed to something in the likes of a Python script. –  Doktoro Reichard Aug 25 '13 at 20:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.