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

Possible Duplicate:
is there any ‘Sudo’ command for windows ?

I want to run a console program in Windows, but it required administrative privileges. So, I can right click the command prompt to run as administrator, but I want to use something from the command line to elevate the program.

Is there something like sudo in Windows?

share|improve this question

marked as duplicate by Mehper C. Palavuzlar, random May 19 '10 at 11:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

@Blorgbeard: My answer isn't in that other question, so not exactly a dup. – harrymc May 19 '10 at 9:14

Or use runas, supplied with Windows:

Runas /user:administrator notepad

Or you can have a batch file (say myrunas.bat) that contains:

Runas /user:administrator %*

%* means "all parameters".
Used, for example, as:

myrunas notepad
share|improve this answer