Run dialog "run as admin" option

9

1

Is this a Windows 7 feature?

Create new task: Create this task with administrative privileges.

Is there any way I can start whatever I type there as admin always if I have UAC on?

I don't want to have to configure every app that I want to start as admin, or use the runas command. I've searched and multiple people said it's not possible, is the run command this limited?

Also, I don't want to run Explorer itself as admin to circumvent this.

SomeNickName

Posted 2016-02-10T11:18:21.860

Reputation: 300

2I think the problem is you want UAC, but you don't want it to ask for admin rights, and you don't want to configure applications. They're all somewhat contradictory statements, what do you actually want to achieve? – Jonno – 2016-02-10T11:53:21.527

I'm fine with displaying UAC prompt, i want to run everything inside the Run Dialog as admin, i don't care if it prompts or not, i just don't want to configure every app that i may run there to run as admin, is this not possible at all? – SomeNickName – 2016-02-10T11:55:54.390

I understand - unfortunately I don't believe there is a way with the Run dialog, which I agree is annoying. The Start Menu you can with the solution in my post, or you can configure applications manually as per @LPChip's answer, otherwise I think you're out of luck though. – Jonno – 2016-02-10T11:57:52.270

@Jonno , one of the apps is taskmgr, windows doesn't seem me to allow to change the "compatibility" tab on windows files, am i stuck with this also? http://i.imgur.com/3GWo86L.png

– SomeNickName – 2016-02-10T12:01:51.427

Odd, I'm not quite sure, I know network shared items don't allow it. There may be a registry workaround (information here), it may be because of the permissions for this particular EXE (Owned by system rather than your account or the admin group).

– Jonno – 2016-02-10T12:06:04.067

@Jonno Thanks for the link, very useful info, taking control of the .exe didn't allow me to change the compatibility tab anyway, so, i did it from regedit as "RUNASADMIN", everytime i run taskmgr it runs as admin now, only problem is Ctrl Shift Esc doesn't do nothing, god bless windows lol. Edit: Neither does Ctrl Alt Del + clicking on task manager. – SomeNickName – 2016-02-10T12:21:25.163

1Open PowerShell as admin (DOS prompt would work too, but this is 2016). Run stuff you want as admin from there. Test it out with notepad. You'll see it's admin. This becomes a super-run, but you constrain the ability to that box. – David Betz – 2016-02-10T16:46:02.970

@DavidBetz That's actually a nice idea, thanks ! – SomeNickName – 2016-02-10T18:53:29.300

@SomeNickName Converting to an answer to benefit others. – David Betz – 2016-02-10T20:14:35.227

Answers

13

That particular screen is from Task Manager's File -> Run New Task and exists since Windows 7.

enter image description here

This check box doesn't exist on the standard 'Run...' box from Win+R, although you can get to this screen by using Ctrl+Shift+Esc, Alt+F, N if you wish.

Otherwise, you can run things from the Start Menu as admin by holding Ctrl+Shift and pressing Enter.

You can disable UAC and use an administrator account to remove this protection, although this is a fairly dangerous practice as you will have no defence against any program with a malicious intent. You can find the option under User Accounts in the control panel.

More information in this question I made here.

Jonno

Posted 2016-02-10T11:18:21.860

Reputation: 18 756

I don't have that checkbox on the taskmgr new task, it wouldn't be useful in this case 'cause i'm trying to reduce the time i spent running as admin, but, it's not there, running windows 7 Ultimate 64-bits. – SomeNickName – 2016-02-10T11:41:24.033

Nevermind, the option is there IF i execute taskmgr as admin, which is not ideal for what i want... – SomeNickName – 2016-02-10T11:47:10.407

You can use autohotkey to fire this key for you when you type win+r – relipse – 2016-02-10T19:50:49.033

The Start Menu trick is what I used. I had to train myself to stop using Win+R and hit the Windows key instead. When you hit the Windows key you can immediately type and it will filter application names (as long as their locations are indexed). Then when your application is highlighted, hit Ctrl-Shift-Enter to launch as admin. Now instead of Win+R > cmd.exe > enter, I use Win > 'co' (let it autocomplete) > Ctrl-Shift-Enter – Stefan Mohr – 2016-02-11T00:29:36.940

6

If I understand you correctly, you want to run every program as administrator, yet you do not want to disable UAC.

Well, this is contradicting already. If every program ran as administrator, UAC would in essence be doing nothing. Explorer itself is a program and would thus also be run as admin, and any program launched or otherwise will run as admin, so if you want to accomplish this, disable UAC.

If you do not want to run every program as admin, you will have to configure a program to run as admin one way or the other. There are various methods you can use though. Jonno gave a way to manually start a program as admin, but if you want to configure it for any program, then this answer will work better.

Configure an individual program to always run as administrator

First, if you don't already have a shortcut either in the start menu or on your desktop (take the one where you will be launching it from) you will have to create the shortcut first. Now, right click the shortcut and choose properties

Go to the Security tab and check Always run this program as Administrator

Press OK and you're done for that program.

Opening the shortcut the normal way will now provide you with the UAC dialog to confirm you want to run the program as Administrator, or no to abort launching the program.

LPChip

Posted 2016-02-10T11:18:21.860

Reputation: 42 190

2I want to run every program as admin from the Run Dialog. One of these programs is taskmgr, and windows apparently disabled the configuration you suggested on windows files that i already tried. – SomeNickName – 2016-02-10T11:39:11.583

@Jonno Feel free to edit my question, i think i explained myself enough for you to improve it ;) – SomeNickName – 2016-02-10T11:44:08.430

@SomeNickName Ah, if windows does not show you the Compatibility tab, then you will have to manually create a shortcut to the executable and use cmd.exe /c "c:\path\program.exe" This will allow you to do many things to the program and shortcut, including pinning it to your taskbar if desired. – LPChip – 2016-02-10T12:35:55.480

@SomeNickName Reading the comments, it seems a policy is in place on your computer which prevents task manager and access to the compatibility tab. This might prevent you from doing this answer then. – LPChip – 2016-02-10T12:39:36.677

Windows does show me the security tab, however that option is on the "Compatibility" tab, which is greyed out completely for system files, i've tried taking control of the .exe, same thing, changed compatibility layer manually through registry now it always opens as admin, however, Ctrl Shift Esc doesn't do nothing, neither does Ctrl Alt Del + click on task manager. Thanks for the answer, i see i got limited options here. – SomeNickName – 2016-02-10T12:40:38.480

@SomeNickName is your computer in a domain and thus controlled by policies? If not, then you might have a policy problem that can be repaired to fix the issue. – LPChip – 2016-02-10T12:45:24.017

Computer isn't on a domain, how can i check if i have a policy problem? Edit: To clarify my previous comment, compatibility tab is greyed out, i changed it manually through the registry, the change worked and task manager runs as admin always, however the shortcut Ctrl Shift Esc doesn't do nothing, which afaik it's normal in this case from what i've searched, if you were talking about a policy problem 'cause of the security tab option you mentioned, then idk. – SomeNickName – 2016-02-10T13:14:23.243

@SomeNickName open a command prompt as administrator and run the following command: gpupdate /force this should restore settings. A reboot may be required afterwards. – LPChip – 2016-02-10T15:00:02.310

i'll do it but what is this going to do specifically? Edit: Already done it – SomeNickName – 2016-02-10T18:55:56.610

It'll stop any problems regarding policies. It refreshes your local policies. You might now be able to press CTRL-ESC etc to bring task manager up, and have access to the security tab, etc. If it still doesn't work, then something is wrong in your profile and it needs to be refreshed. – LPChip – 2016-02-10T21:08:37.407

Ctrl Shift Esc only doesn't work if i manually change compatibility mode to "RUNASADMIN" in regedit for task manager (what i said i did above), if i remove it, it works again. – SomeNickName – 2016-02-11T00:04:53.780

1

Here's what I generally do:

Open PowerShell as admin (DOS prompt would work too, but this is 2016). Run stuff you want as admin from there. Test it out with notepad. You'll see it's admin. This becomes a super-run, but you constrain the ability to that box.

David Betz

Posted 2016-02-10T11:18:21.860

Reputation: 295

Upvoting because of a nice and inexpensive workaround to the Run Dialog, saves a few keystrokes and also a uac popup for everything i run. – SomeNickName – 2016-02-11T00:06:04.143

There's no DOS in Windows NT. – Andreas Rejbrand – 2016-02-11T13:44:40.070

1@AndreasRejbrand You know what a DOS prompt is. Don't be a smart alec. If you want to go there, then, there's no Windows NT anymore at all. End of discussion. – David Betz – 2016-02-11T16:52:57.153