Page 1 of 3 123 LastLast
    Run as Administrator in Windows 10

    Run as Administrator in Windows 10

    How to Run an App as Administrator in Windows 10
    Published by
    2015-01-03
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 17,534

    Show Printable Version 


    How to Run an App as Administrator in Windows 10

    information   Information
    Some legitimate applications require a full administrator access token (elevated) to perform their functions or tasks. For example, when a program that you are trying to run is giving you a Access Denied or No Permission type error.

    The User Account Control (UAC) message is displayed to request consent or credentials to allow an application to use the full administrator access token in any of the following circumstances:
    • The application developer marked the application to require an administrator access token. This is done by using a development technique known as an embedded manifest.
    • UAC detected that the application is an installer or setup application. (Automatic detection can be disabled by using Group Policy.)
    • Microsoft analyzed the application and provided an application compatibility shim. A shim is a small amount of extra code provided by Microsoft that supports certain non-Microsoft applications.
    • An administrator configured the application compatibility settings on the application's Program Properties page.
    • An interactive user right-clicked the application and then clicked Run as administrator to start the application.


    This tutorial will show you different ways on how to have an application Run as administrator with full unrestricted elevated rights in Windows 10.

    Note   Note
    The "Run as administrator" option is only available for desktop apps, and not available for Windows apps (aka: modern apps).

    You must be signed in as an administrator or provide the credentials of a member of the local Administrators group to Run as administrator.
    • If you are on as a standard user, or if UAC is configured to always require credentials, enter the appropriate administrative credentials, and then click OK.
    • If you are logged on as an administrator and UAC is not configured to always require credentials, click Yes to start the application.


    CONTENTS:
    • Option One: To Run as Administrator using Keyboard Shortcut
    • Option Two: To Run as Administrator using Context Menu
    • Option Three: To Run as Administrator in Apps screen and Start screen Options
    • Option Four: To Run as Administrator in Start Menu
    • Option Five: To Run as Administrator in File Explorer Ribbon
    • Option Six: To Run as Administrator on Taskbar
    • Option Seven: To Run as Administrator in Task Manager
    • Option Eight: To Always Run as Administrator in Shortcut Advanced Properties
    • Option Nine: To Always Run as Administrator in Compatibility Properties
    • Option Ten: To Always Run as Administrator in Registry Editor







    Run as Administrator in Windows 10 OPTION ONE Run as Administrator in Windows 10
    To Run as Administrator using Keyboard Shortcut

    1. Select an app to highlight it.

    2. Press and hold the CTRL + Shift keys.

    3. Press Enter or click/tap on the app.

    4. Release the CTRL + Shift keys.





    Run as Administrator in Windows 10 OPTION TWO Run as Administrator in Windows 10
    To Run as Administrator using Context Menu

    1. Right click on an app, and click/tap on Run as administrator. (see screenshots below)

    Name:  Desktop_File_Explorer_Context_Menu.jpg
Views: 382314
Size:  25.2 KB
    Click image for larger version. 

Name:	Start_screen_context_menu.jpg 
Views:	1634 
Size:	153.4 KB 
ID:	10012
    Click image for larger version. 

Name:	Apps_screen_context_menu.jpg 
Views:	1272 
Size:	149.5 KB 
ID:	9999





    Run as Administrator in Windows 10 OPTION THREE Run as Administrator in Windows 10
    To Run as Administrator in Apps screen and Start screen Options

    1. If you use the Start screen instead of Start menu, then while on your Apps or Start screen, do step 2 or step 3 below for what you would like to do.

    2. Press the space bar, and go to step 4 below. This will select (check) the top left app (ex: Desktop) by default.

    3. On a touchscreen, press and hold on a single app (ex: Command Prompt) until the options bar opens at the bottom, and go to step 4 below.

    4. Select (check) the app you want to "Run as administrator", unselect (uncheck) all other checked apps, and click/tap on the Run as administrator button on the options bar.

    Click image for larger version. 

Name:	Apps_screen_options.jpg 
Views:	1127 
Size:	136.1 KB 
ID:	10000
    Click image for larger version. 

Name:	Start_screen_options.jpg 
Views:	703 
Size:	146.0 KB 
ID:	10013





    Run as Administrator in Windows 10 OPTION FOUR Run as Administrator in Windows 10
    To Run as Administrator in Start Menu

    1. If you use the Start menu instead of Start screen, then open your Start menu, and do step 2 or step 3 below for what you would like to do.

    2. Right click or press and hold on an app (ex: Command Prompt) on the left side of the Start menu, and click/tap on Run as administrator. (see screenshot below)

    Click image for larger version. 

Name:	Start_Menu-2.jpg 
Views:	2762 
Size:	71.5 KB 
ID:	10011

    3. Right click or press and hold on an app (ex: Command Prompt) on the right side of the Start menu, and click/tap on Run as administrator. (see screenshot below)

    Click image for larger version. 

Name:	Start_Menu-1.jpg 
Views:	728 
Size:	84.3 KB 
ID:	10010





    Run as Administrator in Windows 10 OPTION FIVE Run as Administrator in Windows 10
    To Run as Administrator in File Explorer Ribbon

    1. While in File Explorer, select an app (ex: cmd.exe).

    2. Click/tap on the Application Tools Manage tab, and do step 3 or step 4 below for what you would like to do.

    3. Click/tap on the top half of the Run as administrator button in the ribbon. (see screenshot below)

    Click image for larger version. 

Name:	File_Explorer_Ribbon-1.jpg 
Views:	3173 
Size:	87.8 KB 
ID:	10005

    4. Click/tap on the bottom half of the Run as administrator button in the ribbon, and click/tap on Run as administrator. (see screenshot below)

    Click image for larger version. 

Name:	File_Explorer_Ribbon-2.jpg 
Views:	602 
Size:	89.3 KB 
ID:	10006





    Run as Administrator in Windows 10 OPTION SIX Run as Administrator in Windows 10
    To Run as Administrator on Taskbar

    1. Right click or press and hold on a program's (ex: Command Prompt) icon on the taskbar to open it's jump list. (see screenshot below step 2)

    2. In the jump list, right click or press and hold on the program's name (ex: Command Prompt), and click/tap on Run as administrator.

    Click image for larger version. 

Name:	Taskbar.jpg 
Views:	488 
Size:	72.5 KB 
ID:	10016





    Run as Administrator in Windows 10 OPTION SEVEN Run as Administrator in Windows 10
    To Run as Administrator in Task Manager

    1. Open Task Manager in more details view.

    2. Click/tap on File (menu bar), and click/tap on Run new task. (see screenshot below)

    Name:  Task_Manager-1.jpg
Views: 380701
Size:  48.6 KB

    3. Type the name of the app's .exe file (ex: cmd) or browse to and select the program's .exe file or shortcut, check the Create this task with administrative privileges box, and click/tap on OK. (see screenshot below)

    Name:  Task_Manager-2.jpg
Views: 380239
Size:  22.9 KB





    Run as Administrator in Windows 10 OPTION EIGHT Run as Administrator in Windows 10
    To Always Run as Administrator in Shortcut Advanced Properties

    1. Right click or press and hold on a shortcut of an app on your desktop or in File Explorer, and click/tap on Properties in the context menu.

    2. Click/tap on the Shortcut tab, and click/tap on the Advanced button. (see screenshot below)

    Name:  Shortcut_Advanced_Properties-1.jpg
Views: 380299
Size:  48.1 KB

    3. Do step 4 or step 5 below for what you would like to do.

    4. To Always Run Shortcut as administrator when Opened

    A) Check the Run as administrator box, click/tap on OK, and go to step 6below. (see screenshot below step 5)

    5. To Not Always Run Shortcut as administrator when Opened

    A) Uncheck the Run as administrator box, click/tap on OK, and go to step 6below. (see screenshot below)

    Name:  Shortcut_Advanced_Properties-2.jpg
Views: 379986
Size:  28.5 KB

    6. Click/tap on OK. (see screenshot below step 2)





    Run as Administrator in Windows 10 OPTION NINE Run as Administrator in Windows 10
    To Always Run as Administrator in Compatibility Properties

    1. Right click or press and hold on a shortcut of an app on your desktop or in File Explorer, and click/tap on Properties in the context menu.

    2. Click/tap on the Compatibility tab, and do step 3 or step 4 below for what you would like to do. (see screenshot below)

    3. Set "Run as administrator" Privilege Level for App for Only Your Account

    A) In the Settings section, check or uncheck the Run this program as an administrator box for what you would like to do, and click/tap on OK. (see screenshot below)

    Note   Note
    If the Run this program as an administrator setting is grayed out, then you will need to do step 4 below instead.


    Name:  Compatibility.jpg
Views: 379865
Size:  55.5 KB

    4. Set "Run as administrator" Privilege Level for App for All Users

    A) Click/tap on the Change settings for all users button. (see screenshot below step 4B)

    B) In the Settings section, check or uncheck the Run this program as an administrator box for what you would like to do, and click/tap on OK. (see screenshot below)

    Click image for larger version. 

Name:	Compatibility_for_all_users-1.jpg 
Views:	822 
Size:	102.4 KB 
ID:	10002

    C) Click/tap on OK. (see screenshot below)

    Note   Note
    If you checked the Run this program as an administrator box in step 4B, then the Run this program as an administrator setting in step 3 will be grayed out and unable to be changed unless you do step 4A again.


    Name:  Compatibility_for_all_users-2.jpg
Views: 379500
Size:  52.4 KB






    Run as Administrator in Windows 10 OPTION TEN Run as Administrator in Windows 10
    To Always Run as Administrator in Registry Editor

    1. Press the Win+R keys to open Run, type regedit, and click/tap on OK to open Registry Editor.

    2. If prompted by UAC, click/tap on Yes.

    3. In regedit, navigate the location below that you want to use. (see screenshot below)
    Note   Note
    If the Layers key is not there, then right click or press and hold on the AppCompatFlags key, click/tap on New, click/tap on Key, type Layers, and press Enter.



    (for current account only)
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers


    (for all users)
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

    Click image for larger version. 

Name:	Compatibilty_mode_registry-1.png 
Views:	688 
Size:	18.7 KB 
ID:	30659

    4. In the right pane of Layers, right click or press and hold on an empty area, then click/tap on New, and click/tap on String Value. (see screenshot above)

    5. Type in the full path of the app's exe file (ex: "C:\Program Files\CCleaner\CCleaner.exe") you want to always run as administrator, press Enter, then double click/tap on the full path in the right pane to modify it. (see screenshot below step 3)

    6. Copy and paste the data value below, and click/tap on OK. (see screenshot below)

    ~ RUNASADMIN

    Name:  Run_as_administrator_registry.png
Views: 368105
Size:  6.1 KB

    7. When finished, you can close Registry Editor if you like.


    That's it,
    Shawn



  1. Joined : Nov 2015
    Posts : 13
    Windows 10
       2015-11-17 #1

    Hello,

    I have followed your steps as instructed to effectively create key entries for both Command Prompt, and Registry Editor. Registry Editor usually opens with administrator privileges although I was hoping this registry edit would bypass the UAC prompt, and the command line simply opens as usual, not as elevated. I know I could create a shortcut for cmd and create a scheduled task to run as administrator or even select the 'Run as Administrator' checkbox within the shortcuts advanced properties but again I was hoping this would too bypass the UAC prompt when using the direct application path, and not a shortcut. Am I missing something?

    Regards
    Wh0pper28
      My System SpecsSystem Spec


  2. Joined : Oct 2013
    Posts : 17,534
    64-bit Windows 10 Pro build 15014
       2015-11-17 #2

    Hello Wh0pper28,

    By default, any time you run anything as administrator (elevated), you will get a UAC prompt for approval first.

    This will not bypass it.

    To try and understand for a better solution, why did you want to bypass UAC when opening Registry Editor?
      My System SpecsSystem Spec


  3. Joined : Nov 2015
    Posts : 13
    Windows 10
       2015-11-17 #3

    Brink said: View Post
    Hello Wh0pper28,

    By default, any time you run anything as administrator (elevated), you will get a UAC prompt for approval first.

    This will not bypass it.

    To try and understand for a better solution, why did you want to bypass UAC when opening Registry Editor?
    Woah, thanks for such a quick response!
    Basically just to fulfill my personal preference, I hate having to constantly select yes when running things as an administrator but I don't want to disable UAC completely, I just simply want the option to disable it for specific applications such as Registry Editor and Command Prompt. I don't know any way to achieve this nor have I found any solutions for it, I guess it was hopeful thinking believing it'd be as simple as this registry edit. I'd also like the ability for cmd to open as administrator by default without the use of shortcuts and without the UAC prompts.

    Regards
    Wh0pper28
      My System SpecsSystem Spec


  4. Joined : Oct 2013
    Posts : 17,534
    64-bit Windows 10 Pro build 15014
       2015-11-17 #4

    Wh0pper28,

    In that case, you could use the method in the tutorial below to create an elevated shortcut that won't give you a UAC prompt.

    Elevated Program Shortcut without UAC Prompt - Create - Windows 7 Help Forums
      My System SpecsSystem Spec


  5. Joined : Nov 2015
    Posts : 13
    Windows 10
       2015-11-17 #5

    Brink said: View Post
    Wh0pper28,

    In that case, you could use the method in the tutorial below to create an elevated shortcut that won't give you a UAC prompt.

    Elevated Program Shortcut without UAC Prompt - Create - Windows 7 Help Forums
    Ideally I wanted to be able to do this without making a shortcut, but I suppose I'll have to compromise. I've tried this for both the Command Prompt and Registry Editor, when I run the tasks on demand from within the Scheduled Task UI, they both work fine, but when I double-click the desktop shortcuts for them neither of them seem to work, the cmd simply flashes on screen really quickly and then nothing after that. I really do appreciate the assistance, it's not often I come across a forum such as this where the majority of users go out of their way to be helpful.

    Regards
    Wh0pper28
      My System SpecsSystem Spec


  6. Joined : Oct 2013
    Posts : 17,534
    64-bit Windows 10 Pro build 15014
       2015-11-17 #6

    You're most welcome. Please let us know how it went if you try the elevated shortcut.
      My System SpecsSystem Spec


  7. Joined : Nov 2015
    Posts : 13
    Windows 10
       2015-11-17 #7

    Brink said: View Post
    You're most welcome. Please let us know how it went if you try the elevated shortcut.
    Yeah, as I mentioned in my previous post, the scheduled tasks work as expected within the Task Scheduler itself but the shortcuts for them don't seem to work, the cmd just flashes and neither one of the programs opens. Find attached my screenshots, maybe you will notice an error on my part.Click image for larger version. 

Name:	Command Prompt Shortcut.png 
Views:	416 
Size:	1.90 MB 
ID:	48895Click image for larger version. 

Name:	Elevated Command Prompt.png 
Views:	400 
Size:	106.2 KB 
ID:	48896Click image for larger version. 

Name:	Elevated Registry Editor.png 
Views:	543 
Size:	107.1 KB 
ID:	48897Click image for larger version. 

Name:	Registry Editor Shortcut.png 
Views:	288 
Size:	1.50 MB 
ID:	48898
      My System SpecsSystem Spec


  8. Joined : Oct 2013
    Posts : 17,534
    64-bit Windows 10 Pro build 15014
       2015-11-17 #8

    The elevated shortcut is not working since it's not pointing to the correct path. The tutorial is for having the task in the Task Scheduler Library folder in Task Scheduler instead.
      My System SpecsSystem Spec


  9. Joined : Nov 2015
    Posts : 13
    Windows 10
       2015-11-17 #9

    Brink said: View Post
    The elevated shortcut is not working since it's not pointing to the correct path. The tutorial is for having the task in the Task Scheduler Library folder in Task Scheduler instead.
    How would I rectify it to point to the path of my folder? I can't seem to find the path for it. Or is that not possible?

    Regards
    Wh0pper28
      My System SpecsSystem Spec


 
Page 1 of 3 123 LastLast


Similar Threads
Tutorial Category
Administrator account - Enable or Disable in Windows 10
How to Enable or Disable Built-in Elevated Administrator Account in Windows 10 This tutorial will show you how to enable or disable the hidden built-in elevated Administrator account in Windows 10. You must be signed in as an administrator...
Tutorials
Administrator Account Dumbed Down in Win10
Starting to find that the built-in Administrator account is a bit crippled - "This app can't open ... can't be opened using the Built-in Administrator account. Sign in with a different account and try again." (I always log in with the built-in...
User Accounts and Family Safety
administrator group
I forget; how do i make my user a member of the administrator group?
AntiVirus, Firewalls and System Security
10130 - Run as Administrator not working for Command Prompt
I pinned Command Prompt to the Taskbar then changed the properties to always Run as Administrator. Setting took but is not obeyed: 20287 When I click on the icon in the Taskbar I get: 20288 What I should get is this:
General Support
Solved Appointing System Administrator
I can't change my Windows Update settings. It says 'Some settings are managed by your system administrator' How do I become the System Administrator? My user account type is Administrator! My problem may be linked to the fact that I deleted...
Windows Updates and Activation
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:23.
Find Us
Twitter Facebook Google+



Windows 10 Forums