I would like to get a list of "normal" users in the Windows command line. By normal, I mean the users that appear when logging on to the computer. Thus, disabled accounts, accounts like System, and others that an average PC users would never log into, would not be in this list. I also need to know whether the users returned were admins or standard users. Any ideas?
feedback
|
|
To list users, use the
You output get something like this:
If you need a list of users in a specific group, the use
You output get something like this:
This is for local system users, not domain accounts. If you want to know the membership of the Administrators group, you would just supply that as a parameter: | |||
feedback
|