Accounts Run as administrator in Windows 11

  • Staff
UAC_banner.png

Windows runs desktops apps and application files (ex: .bat, .cmd, .exe, .msc, and .msi file types) in user mode by default without elevated administrator rights unless it prompts you with UAC to run elevated (highest privileges).

Windows has standard user and administrator types of user accounts.

Standard User - Standard user accounts are good for everyday usage, and can be a local account or Microsoft account. Standard user accounts can use most apps and change system settings that do not affect other users. If any action that requires elevated rights is attempted while signed in as a standard user, Windows will display a UAC prompt for the password of an administrator for approval. If UAC is set to "Never notify", then a standard user will automatically be denied the elevated action.

Administrator - Administrator accounts have complete access to the PC and can make any desired changes. Administrators can be a local account or Microsoft account. If any action that requires elevated rights is attempted while signed in as an administrator, Windows will display a UAC prompt for the administrator to confirm (Yes or No) using full administrator rights.

When you use Run as administrator on a desktop app or application file, you are allowing it to run with full administrator access to everything on the computer. This means you are giving it special permissions to access restricted parts of the computer that would otherwise be off-limits. This could be a potential security risk if not a trusted app or application file, but sometimes "Run as administrator" is necessary for a trusted app or application file to run properly if it requires elevated rights for full access.

This tutorial will show you different ways to have a desktop app or application file Run as administrator with elevated rights in Windows 11.


Run as administrator is only available in the context menu of desktop apps, and not available for Microsoft Store PWA apps.



Contents






OPTION ONE

Run as Administrator using Keyboard Shortcut


1 Select a desktop app or application file 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.





OPTION TWO

Run as Administrator using Context Menu


1 Right click or press and hold on a desktop app or application file, and click/tap on Run as administrator. (see screenshot below)

Run_as_administrator_context_menu.png






OPTION THREE

Run as Administrator in Run


1 Open Run (Win+R).

2 Browse and select or type the app file name (ex: "cmd") you want to "Run as administrator" in the Run dialog. (see screenshot below)

3 Either press the CTRL + Shift + Enter keys OR press CTRL + Shift and click/tap on OK.

Run_as_Administrator_run.png






OPTION FOUR

Run as Administrator in Start Menu


1 Open the Start menu :win:. (see screenshot below)

2 Right click or press and hold on a pinned desktop app or application file, and click/tap on Run as administrator.

Run_as_administrator_Start_menu.jpg






OPTION FIVE

Run as Administrator in All Apps


1 Open the Start menu :win:, and click/tap on All apps. (see screenshot below)

Run_as_administrator_All_apps-1.jpg

2 Right click or press and hold on a desktop app (ex: "Windows Terminal"), click/tap on More, and click/tap on Run as administrator. (see screenshot below)

Run_as_administrator_All_apps-2.jpg





OPTION SIX

Run as Administrator from Taskbar


1 Right click or press and hold on an open or pinned desktop app or application file icon on the taskbar. (see screenshot below)

2 Right click or press and hold on the desktop app or application file in the jump list menu.

3 Click/tap on Run as administrator.

Run_as_administrator_taskbar.png






OPTION SEVEN

Run as Administrator in Search


1 Open Search (Win+S). (see screenshots below)

2 Type the app file name (ex: "cmd" or "Windows Terrminal") you want to "Run as administrator" into the search box at the top.

3 When the app shows under Best match, click/tap on Run as administrator in its right pane.

Sometimes you may need to click/tap on the Expand arrow first in the right pane, then click/tap on Run as administrator.


Run_as_administrator_Search-1.jpg

Run_as_administrator_Search-2.jpg
Run_as_administrator_Search-3.jpg






OPTION EIGHT

Run as Administrator in Task Manager


1 Open Task Manager (Ctrl+Shift+Esc).

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

Run_as_administrator_Task_Manager-1.png

2 Browse and select or type the app file name (ex: "cmd") you want to "Run as administrator" in the "Create new task" dialog. (see screenshot below step 3)

3 Check the Create this task with administrative privileges box, and click/tap on OK. (see screenshot below)

Run_as_administrator_Task_Manager-2.png






OPTION NINE

Always Run as Administrator in Shortcut Advanced Properties


1 Right click or press and hold on a shortcut of a desktop app or application file you want to always "Run as administrator", and click/tap on Properties in the context menu. (see screenshot below)

Properties.png

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

Run_as_Administrator_shortcut_properties-1.png

3 Check or uncheck (default) Run as administrator for what you want, and click/tap on OK. (see screenshot below)

Run_as_Administrator_shortcut_properties-2.png

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

Run_as_Administrator_shortcut_properties-3.png





OPTION TEN

Always Run as Administrator in Compatibility Properties


1 Right click or press and hold on a desktop app or application file you want to always "Run as administrator", and click/tap on Properties in the context menu. (see screenshot below)

Properties.png

2 Do step 3 (current user) or step 4 (all users) below for which user you want to run this program as an administrator for.

3 To Run as administrator for Current User

A) Click/tap on the Compatibility tab, check or uncheck (default) Run this program as an administrator for what you want, and click/tap on OK. (see screenshot below)​

Run_as_Administrator_compatibility_properties-1.png

4 To Run as administrator for All Users

A) Click/tap on the Compatibility tab, and click/tap on Change settings for all users. (see screenshot below)​

Run_as_Administrator_compatibility_properties-2.png

B) Check or uncheck (default) Run this program as an administrator for what you want, and click/tap on OK. (see screenshot below)​

If you check Run this program as an administrator for all users, it will check and gray out Run this program as an administrator for current user in step 3.


Run_as_Administrator_compatibility_properties-1.png

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

Run_as_Administrator_shortcut_properties-3.png





OPTION ELEVEN

Always Run as Administrator in Registry Editor


This option sets the same setting from Option Ten, but manually in Registry Editor.


1 Open Registry Editor (regedit.exe).

2 Navigate to the key location below you want to use in the left pane of Registry Editor. (see screenshot below)

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.


(Current user only)​
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

OR​

(All users)​
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

Run_as_administrator_regedit-1.png

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

4 Type in the full path of the app's exe file (ex: "C:\Program Files\GIMP 2\bin\gimp-2.10.exe") you want to always run as administrator, press Enter, and double click/tap on the full path in the right pane to modify it. (see screenshot below step 2)

Deleting this string value (ex: "C:\Program Files\GIMP 2\bin\gimp-2.10.exe") will undo this to not have it always run as administrator.


5 Copy and paste ~ RUNASADMIN into the Value data field, and click/tap on OK. (see screenshot below)

Run_as_administrator_regedit-2.png

6 You can now close Registry Editor if you like.





OPTION TWELVE

Always Run as Administrator with Task Scheduler


1 For how, see: How to Create Elevated App Shortcut without UAC Prompt in Windows


That's it,
Shawn Brink


 

Attachments

  • UAC.png
    UAC.png
    13.6 KB · Views: 10
  • Run_as_Administrator_compatibility_properties-3.png
    Run_as_Administrator_compatibility_properties-3.png
    13.6 KB · Views: 13
  • Run_as_Administrator_compatibility_properties-4.png
    Run_as_Administrator_compatibility_properties-4.png
    14.1 KB · Views: 9
Last edited:

Bug locker

Member
Local time
7:17 AM
Posts
34
Location
Athens
Sometimes , i need to run registry editor or "regcool" utility with highest privileges. I use "powerrun" app for this. :) (y)
 

My Computer

System One

  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17g-100nv
    CPU
    Intel 6200U
    Memory
    16GB
    Graphics Card(s)
    NVIDIA 940M
    Screen Resolution
    1600x900
    Hard Drives
    WD 3D NAND 500GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton 360

Samin_81

Member
Local time
1:17 PM
Posts
6
wow, very useful tips. Thanks Admin.
 

My Computer

System One

  • Operating System
    Windows 11 PRO v.21H2 (OS BUILD 22000.282)
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUSTeK Computer INC.
    CPU
    Intel Core 2 Duo E4600 @ 2.40GHZ Conroe
    Motherboard
    ASUSTeK Computer INC. P5GC-MX/GBL (LGA 775)
    Memory
    4GB DDR2 (667mhz)
    Graphics Card(s)
    ASUS EAH4670 series 512MB
    Sound Card
    ATI High Definition Audio Device
    Monitor(s) Displays
    DELL E170S
    Screen Resolution
    1028x1024 75hz
    Hard Drives
    465GB Hitachi HGST HTS545050A7E680 ATA Device (SATA )
    465GB Seagate ST3500312CS ATA Device (SATA )
    PSU
    450Watt
    Case
    Custom
    Cooling
    DeepCool Mini
    Keyboard
    Crown USB
    Mouse
    Crown UB
    Internet Speed
    150mbps
    Browser
    Edge, FireFox
    Antivirus
    Microsoft Windows Defender
Top Bottom