Windows has this nifty little shortcut for running commands. Press Windows + r.

Problem is, is there an easy way to have the commands I run in that dialog to prompt for a UAC credentials dialog and get consent from a admin user.

Right now, I'm trying to run this command in the Run dialog runas /user:admin "regedit.exe"

It works when I run this though: runas /user:admin "cmd"

link|improve this question

75% accept rate
feedback

4 Answers

up vote 3 down vote accepted

I have the exact same problem. The Ctrl+Shift+Enter solution only works if you use the not-as-reliable start menu run box - but for the Win+R run box you are out of luck. The closest thing to a solution I have found is to manually set application properties to 'Run as Administrator' under the program compatibility tab.

For system utilities such as cmd.exe, you can put a shortcut in your User folder (C:\Users\%USERNAME%) and set 'Run as Admin' under shortcut advanced settings. See http://helpdeskgeek.com/windows-7/command-prompt-admin-rights-windows-7/ for detailed instructions. (To run the short cut you have to type the whole file name, e.g. cmd.lnk)

link|improve this answer
Yea, I've noticed that that too. Ctrl+Shift+Enter never actually works for me outside of the Start Menu and even then, its not because its in the search box, but because by default it selects the first thing on the list. – wag2639 Oct 28 '10 at 6:10
Unfortunately I too can confirm this annoying limitation. I don’t like typing things into the Start menu because it takes much longer to use than the Run dialog because the run dialog takes raw input, but the Start menu searches for matching programs, which can take a while if you have a long path. Why oh why doesn’t Ctrl+Shift work with the Run dialog? Even getting an elevated Run dialog is a chore, the fastest way being via an elevated Task Manager. :-( – Synetech Mar 3 '11 at 20:08
feedback

Press Control+Shift before running a program and it'll run elevated.

link|improve this answer
feedback

just press Win and then enter regedit. windows7 will provide you with some suggestions, rightclick onto regedit.exe and pick "run as administrator".

link|improve this answer
feedback

Take a look at Elevation PowerToys for Windows Vista. It allows you to run applications as administrator by simply running "elevate [command]"

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.