Win+R runs as Administrator in Windows 8

30

7

In Windows 7 opening Run dialog (Win+R) and confirming with Ctrl + Shift + Enter ran specified command elevated.

In Windows 8 this trick doesn't work anymore and I miss it a lot!

Is there a way to get this feature back?

David Vidmar

Posted 2012-08-15T22:07:47.463

Reputation: 463

Figured it out, and posted an answer below (it restores the functionality via a local policy). – BrainSlugs83 – 2015-05-15T23:18:09.033

never had to do that when using win+r in a admin user account in W7, it ran elevated by default. – Moab – 2012-08-15T22:12:43.560

2@Moab Not if you have UAC enabled. – Darth Android – 2012-08-15T22:13:25.670

2For me, this only works in the Windows 7 Start menu, but not in the Run dialog. And that functionality is still there in Windows 8. – Der Hochstapler – 2012-08-15T22:23:35.730

Not on any of my systems with UAC enabled. – Moab – 2012-08-15T22:24:42.610

I'm on Windows Vista here. This only works from the Start menu, not from the Run prompt. This is something I picked up from HowToGeek years ago. But does this really work from the Run prompt in Windows 7?...

– Samir – 2013-08-03T22:13:05.143

@OliverSalzburg How can that be true when there is no Start menu in Windows 8? This is what MS says: "Swipe in from the right edge of the screen, and then tap Search. (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.) Enter run in the search box, tap or click Apps, and then tap or click Run. If you're using a mouse, you can also open the Run command by pointing to the lower-left corner, right-clicking the preview, and then clicking Run." There's much more clicking around (and "swiping") in Windows 8. – Samir – 2013-08-03T22:15:53.017

2@OliverSalzburg Is the shortcut Win+R (show Run prompt) dead in Windows 8? This is one of the most useful Windows shortcuts in my opinion. Along with Win+E (show Explorer), and Win+D (show Desktop). – Samir – 2013-08-03T22:17:26.037

@Sammy: If you want to have a discussion, find me on [chat]. – Der Hochstapler – 2013-08-03T22:33:13.307

Answers

27

Do not press Win + R.

Instead, just press Win and type the command directly into the Metro interface. As you type, the search interface will start bringing up possible matches, but just ignore them. When you're done typing, press Ctrl + Shift + Enter, and the command will run elevated, as expected.

This works perfectly for full commands with arguments. It also works for commands without arguments, but with some caveats (matching shortcut, multiple executables, etc.). I have not generally found these to be a major problem.

taoyue

Posted 2012-08-15T22:07:47.463

Reputation: 2 189

Figured it out, and posted an answer below (it restores the functionality via a local policy). – BrainSlugs83 – 2015-10-24T19:09:11.300

1Thanks! I just realised that I have been using Win / cmd / Shift+Ctrl+Enter all the time. :) – David Vidmar – 2012-08-16T08:30:56.823

This does not seem to work for me all the time when using parameters. Very often, Windows search will open with the exact search term displayed on the left which I can then click to execute the command, but I wan’t it executed when pressing enter instead. For example cmd /c echo.foo. – poke – 2014-01-09T19:28:27.537

1This behavior seems to have changed in Windows 8.1. If you have parameters, you can press Ctrl-Shift-Enter a second time to execute the command from the search results screen. Or press the down arrow key before hitting Ctrl-Shift-Enter. – taoyue – 2014-01-23T00:38:11.483

8

Okay, I figured it out. It seems to be caused by new a feature of UAC called "Admin Approval Mode" or "AAM". You can disable this feature and (at least with UAC turned off as well) Win+R will run applications as elevated by default. -- I have tried this on 3 machines now and it has worked for me every time.

Here's how to go about disabling it:

  1. Open Local Security Policy editor (on the Start screen type "secpol" and right click it, "Run as administrator").

  2. From the menu on the left, expand "Local Policy".

  3. Under the expanded "Local Policy" heading, select "Security Options".

  4. On the panel on the right find "User Account Control: Run all administrators in Admin Approval Mode", open this setting and change the value to Disabled.

SecPol - User Account Control: Run all administrators in Admin Approval Mode

  1. "OK" out of everything, and reboot (at least on my machine it said that a reboot was required, YMMV).

 

If it all worked right, when you hit Win+R at your windows desktop you should see the little shield below the text box that says "This task will be created with administrative privileges."

You can see that this works.

(Note: Depending on your luck, you may have to turn off UAC as well.)

BrainSlugs83

Posted 2012-08-15T22:07:47.463

Reputation: 142

Verified, this works in Windows 10 too. – BrainSlugs83 – 2015-10-27T03:01:38.680

THANK YOU. Been searching all over the place for weeks for this. – Jake – 2018-02-07T16:35:25.760

3

^ ^ I just signed up to comment about this, but I don't have 50 reputation to reply to the above. So I will reply in a new answer.

"Okay, I figured it out. It seems to be caused by new a feature of UAC called "Admin Approval Mode" or "AAM". You can disable this feature and (at least with UAC turned off as well) Win+R will run applications as elevated by default. -- I have tried this on 3 machines now and it has worked for me every time."

This indeed seems to be the only way to make the Windows Start Menu 'Run Command' ALWAYS run with administrator privileges. If you have a machine like me that is a Windows 'Home' product, the registry key can be found at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System clicking on that, on the right side there is 'EnableLUA'. Right click 'Modify' this to value '0' instead of '1' and that does the same thing of disabling UAC. Which apparently, is exactly the same thing as 'built in admin approval', or that the admin approval only works when there is the UAC enabled to 'control' the different user/admin account privileges/access rights.

I've ended up giving up and making an admin enabled shortcut to cmd prompt and placing it above the 'programs' folder on my start menu, as this is pretty close to near my 'run' button (just above shutdown on my modified 'classic Start Menu' modded Windows 10 Home edition). Otherwise with UAC off, I am able to get admin rights on my run command in the start menu BUT CANNOT get rid of the error (doesnt seem to do much, stuff works after clicking 'ok' on it but don't like seeing it) - http://www.bleepingtech.com/windows-8-fix-this-app-cant-open-for-built-in-administrator-account/ This app can’t open for Built-in Administrator account please sign in with a different account and try again .. trying that fix but I don't think there is any way to get admin rights on the run command, without disabling UAC, which in turn gives that error..

Jus Free

Posted 2012-08-15T22:07:47.463

Reputation: 31

Thanks for posting this! I don't have a lot of experience with the "Home" versions of Windows so that's helpful, but yeah, in Windows 8 and 10, it's a little more painful, because if you turn UAC off completely, the "apps" don't seem to run. -- I'd call this a major bug in the OS -- If you don't use "apps", it's fine, but it's terribly annoying in Windows 10 where even the calculator program is an "app" now. – BrainSlugs83 – 2016-03-28T21:36:33.727