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

How do I know if I have Windows administrator rights from command line? Particularly on Windows7?

Is there any equivalent to linux id?

share|improve this question
id does not shows the permissions of a user, it shows the id. "administrative rights" can be retrieved by (among others) sudo. then the output of id is meaningless in terms of finding out what the user can do. just as a sidenote. – akira Sep 14 '12 at 8:06
up vote 4 down vote accepted

You can run the following script:

`NET SESSION >nul 2>&1
    ECHO Administrator PRIVILEGES Detected! 
) ELSE (

By the way, you can start command prompt with administrative privileges:

  1. click on windows icon

  2. type "cmd" without quotes on the search bar


  4. press CTRL+C or click on "yes" when the UAC message appear

I think you didn't do your homework by searching on web, here's the question answered on stackoverflow:

share|improve this answer
SHIFT+CONTRL+ENTER doesn't seem to work on win8. – Pacerier Feb 3 '15 at 10:41

You must log in to answer this question.

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