How To Run An App As Administrator
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
- Option Two: Run as Administrator from Context Menu
- Option Three: Run as Administrator in Run
- Option Four: Run as Administrator in Start Menu
- Option Five: Run as Administrator in All Apps
- Option Six: Run as Administrator from Taskbar
- Option Seven: Run as Administrator in Search
- Option Eight: Run as Administrator in Task Manager
- Option Nine: Always Run as Administrator in Shortcut Advanced Properties
- Option Ten: Always Run as Administrator in Compatibility Properties
- Option Eleven: Always Run as Administrator in Registry Editor
- Option Twelve: Always Run as Administrator with Task Scheduler
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)
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.
OPTION FOUR
Run as Administrator in Start Menu
1 Open the Start menu . (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.
OPTION FIVE
Run as Administrator in All Apps
1 Open the Start menu , and click/tap on All apps. (see screenshot below)
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)
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.
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.
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)
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)
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)
2 Click/tap on the Shortcut tab, and click/tap on the Advanced button. (see screenshot below)
3 Check or uncheck (default) Run as administrator for what you want, and click/tap on OK. (see screenshot below)
4 Click/tap on OK. (see screenshot below)
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)
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)
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)
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.
C) Click/tap on OK. (see screenshot below)
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
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)
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
How To Run An App As Administrator
Source: https://www.elevenforum.com/t/run-as-administrator-in-windows-11.2068/
Posted by: koehlertallean.blogspot.com
0 Response to "How To Run An App As Administrator"
Post a Comment