To run an app as administrator in Windows 11, right-click it in the Start menu, on the desktop, or in File Explorer, select Run as administrator, and then select Yes in the User Account Control prompt. From Start search, you can also highlight the app and press Ctrl + Shift + Enter.
These steps cover Windows 11 versions 24H2 through 26H2; the sudo command needs 24H2 or later. Windows 10 differences are noted near the end.
Running as administrator lets a program change system files and settings for that session. Some installers need it, such as when you install TurboTax on Windows 11 or install SQL Server on Windows 11.

Programs That Can Run as Admin
- A desktop program. Run as administrator works on programs (.exe files), their shortcuts, and scripts. Most Microsoft Store apps and all documents don’t offer it.
- An administrator account, or an administrator’s password. Windows calls this elevation. Microsoft explains in How User Account Control works that administrators see a consent prompt with a Yes button, while standard users see a prompt that asks for an administrator’s user name and password.
Run an App as Administrator From Start
- Select Start and type the app’s name, such as Command Prompt. The best match appears at the top of the results.
- Select Run as administrator on the right side of the search results. You can also right-click the result and choose it there.
- Select Yes when User Account Control asks for permission. The app opens with administrator rights.

Keyboard shortcut: type the app’s name in Start search, then press Ctrl + Shift + Enter.
One common reason to use it is to edit the hosts file in Windows 11, which only saves from an elevated editor.
From Pinned or All apps
- Pinned apps: right-click the app at the top of Start and select Run as administrator.
- All apps list: open the full app list in Start (select All if you see that button, or scroll down), right-click the app, point to More, and select Run as administrator.
Run a Pinned App as Administrator From the Taskbar
- Hold Ctrl + Shift and click the app’s taskbar icon.
- Select Yes in the prompt.
You can also press Windows key + Ctrl + Shift and a number key. The number matches the app’s position on the taskbar, counting from the left, so 1 is the first pinned app. Both shortcuts appear on Microsoft’s keyboard shortcuts in Windows page.
Or right-click the taskbar icon, right-click the app’s name in the menu that opens, and select Run as administrator.
Run a Program as Administrator From File Explorer or the Desktop
- Right-click the program or its shortcut.
- Select Run as administrator. In Windows 11 it usually appears at the top of the menu. If you don’t see it, select Show more options to open the full menu.

- Select Yes in the prompt.
To find a program’s file from Start, right-click the app, point to More, and select Open file location.
Run as Administrator From the Run Box or Task Manager
Run box
- Press Windows key + R.
- Type the program name, such as cmd or regedit. (More on regedit in how to open Registry Editor in Windows 11.)
- Press Ctrl + Shift + Enter instead of Enter, or hold Ctrl + Shift while you select OK.
- Select Yes in the prompt.
Task Manager
- Press Ctrl + Shift + Esc to open Task Manager.
- Select Run new task at the top of the window.
- Type the program name, or select Browse to find it.
- Check Create this task with administrative privileges.

- Select OK.
The Task Manager method is useful when the Start menu or taskbar isn’t responding. If the checkbox is missing, you’re signed in with a standard account.
Open Terminal as Administrator
Right-click Start and select Terminal (Admin), or press Windows key + X and then A. Select Yes, and Terminal opens PowerShell with administrator rights. To get a Command Prompt tab, select the down arrow in the tab bar. There are also other ways to run Command Prompt as admin on Windows 11.
From a regular PowerShell window, you can also start one program elevated with this command, then approve the prompt:
Start-Process notepad -Verb RunAs
Use sudo to Run One Command as Administrator
On Windows 11 version 24H2 and later, you can run a single command with admin rights from a normal Terminal window, the same way Linux and Mac users do.
- Open Settings > System > Advanced.
- Turn on Enable sudo.

- In Terminal, type sudo before a command and approve the prompt. For example:
sudo notepad C:\Windows\System32\drivers\etc\hosts
Microsoft’s sudo for Windows page describes three ways sudo can run a command:
| Setting | What happens |
|---|---|
| In a new window (default) | The command opens in a separate elevated window. |
| Input closed | The command runs in your current window but can’t take typed input. |
| Inline | The command runs in your current window and accepts input. |
Inline is the most convenient and the most risky, so keep the default unless you understand the tradeoff. To stop using sudo, turn Enable sudo off again.
Always Run One Program as Administrator
Use this only for a program you trust that fails every time without admin rights. Don’t apply it to apps in general, because anything running as administrator can change system files.
For a shortcut
- Right-click the program’s shortcut and select Properties.
- On the Shortcut tab, select Advanced.
- Check Run as administrator, then select OK and OK again.

This changes only that shortcut. Other shortcuts to the same program still open normally.
For the program file itself
- Right-click the program’s .exe file and select Properties.
- Open the Compatibility tab.
- Check Run this program as an administrator, then select OK.

Windows still shows the User Account Control prompt each time. To undo either change, open the same tab and clear the checkbox.
The same Shortcut tab is where you can change the program or file a shortcut opens.
How to Tell an App Is Running as Administrator
- Command Prompt, PowerShell, and many tools show Administrator: at the start of the window title.
- In Task Manager, open Details, right-click a column heading, choose Select columns, and check Elevated. Elevated apps show Yes in that column.
- A shield icon on a button or setting means that action needs administrator approval.
If Run as Administrator Doesn’t Work
- Check your account type. Open Settings > Accounts > Your info. It says Administrator under your name if you are one.

- Make sure you select Yes in the User Account Control prompt. If no prompt appears, the program may be failing before it starts.
- If the option is missing or greyed out, the item may be a Microsoft Store app or a document, which can’t be elevated. Right-click the program’s .exe file instead of a file it opens.
- Restart the PC, then try again.
- If you still get Access denied after elevating, the file or folder may be protected by its permissions, or your organization may block it. On a work or school PC, ask your IT department instead of working around the policy.
- If Windows Security blocks the app, check its Protection history and make sure you trust the publisher and download source. Do not turn off protection or add an exclusion to make Run as administrator work. Ask the app publisher or your IT administrator about the detection.
- Right-click Start, select Terminal (Admin), and run sfc /scannow to repair damaged system files.
Windows 10
Windows 10 uses the same Run as administrator right-click command, the same Ctrl + Shift shortcuts, and the same shortcut and Compatibility settings described above. Two things look different: in Task Manager, select More details if needed, then File > Run new task. Windows 10 also has no sudo command.
Run as Administrator Questions
Why is Run as administrator missing?
Documents and most Microsoft Store apps can’t run as administrator. The option only appears for desktop programs, their shortcuts, and scripts. In File Explorer, also check Show more options.
What if I don’t know the administrator password?
If you use a standard account, Windows asks for an administrator’s password. Ask the person who manages the PC, or sign in with an administrator account. On your own PC, you can give yourself administrator rights in Windows 11 if you need them.
Do I need to run everything as administrator?
No. Most apps work normally without it. Microsoft’s guidance is that even administrators run everyday apps with standard rights and approve elevation only when a task needs it.
Is it safe to run programs as administrator?
It’s safe for programs you trust that need it, such as installers and system tools. Read the prompt before you select Yes: a yellow prompt means the program is unsigned or its publisher isn’t verified. Avoid elevating programs from unknown sites, because admin rights let them change anything on the PC.
Related tasks include opening Task Manager in Windows 11 and changing the administrator account’s email address.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.