up vote 3 down vote favorite
3
share [g+] share [fb]

I wonder if exists a way how to run program or command with elevated rights when I am already in non-elevated command line. Exactly the same action that would be performed when I click on the program shortcut and select Run as administrator.

runas command is probably not a solution - it asks for a password but I just want the UAC dialog.

link|improve this question

feedback

3 Answers

up vote 4 down vote accepted

It looks like this utility - Hidden Start - will do what you wish if you use the /uac switch. Here's an example command line:

hstart /UAC "notepad.exe"

This will pop up the UAC dialog rather than ask for a password like runas does.

enter image description here

link|improve this answer
Accepting this answer for its simplicity. – Lukas Cenovsky Oct 16 '09 at 8:51
feedback

Take a look at Start++ - it has this functionality along with a lot of other useful things. To run with the UAC prompt, simply use sudo then your program name at the command line as shown here:

alt text

Here are some other features (you can also add your own):

alt text

alt text

link|improve this answer
Looks also good but I already use FARR which has similar functionality as Start++ and more (of course except sudo). – Lukas Cenovsky Oct 16 '09 at 8:54
Wow seems amazing ! – asksuperuser Nov 3 '09 at 19:34
feedback

There is an utility named hstart which should do what you need.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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