Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there anything I can call from the command line which will tell me if the currently logged in user has a limited account or is an admin?

share|improve this question
up vote 6 down vote accepted

With the default command tools (no third party downloads) you can use the net command.

%username% will have the username of the current logged on user, so I would use:

net user "%username%"

To display information about the current logged on user. The last section of this shows:

Local Group Memberships      *Administrators       *HelpLibraryUpdaters
                             *HomeUsers
Global Group memberships     *None

Hope this helps

share|improve this answer
1  
Don't forget to add the domain first if your in a domain – r0ca Sep 23 '10 at 16:31

What I do most of the time is in the command prompt:

compmgmt.msc /computer=Computer_name

Then, I check in the user/admin groups

You can also check with the PSTools. There is a lot you can do remotely within a domain with this!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .