Windows R as Admin: Run Command Prompt Elevated
In this article
Pressing Windows+R opens the Run dialog, but it does not open an elevated (administrator) session by itself. To run a command as administrator from the Run dialog, you need to use a separate elevation step: open Run with Windows+R, type the command, and then press Ctrl+Shift+Enter instead of Enter. That keyboard combination tells Windows to launch the program with administrator rights, and you will see a User Account Control (UAC) prompt asking for permission. If you just press Enter, the command runs with your normal user privileges. The Ctrl+Shift+Enter trick works for many built-in tools such as cmd, powershell, regedit, and mmc, but it does not work for every program and it will not elevate a command that is already running. This guide explains the exact steps, the common pitfalls, and what to do when the prompt does not appear or the command still fails.
What You'll Need
- A Windows PC running Windows 10 or Windows 11 (the steps are nearly identical; menu labels can differ slightly by version, device, or region).
- An account that is a member of the local Administrators group. A standard user account cannot approve a UAC prompt without an administrator password.
- Knowledge of the exact command or program name you want to run (for example,
cmd,powershell,regedit, orservices.msc).
Step-by-Step
- Open the Run dialog. Press
Windows+Ron your keyboard. A small Run window appears in the lower-left corner of the screen. If nothing happens, make sure the Windows key is not disabled by your keyboard's game mode or a third-party utility, and try again. - Type the command you want to run. For a Command Prompt, type
cmd. For PowerShell, typepowershell. For the Registry Editor, typeregedit. For the Services console, typeservices.msc. You can also type a full path to an executable if it is not on the system PATH. - Press Ctrl+Shift+Enter instead of Enter. Hold down Ctrl and Shift, then press Enter. This is the elevation shortcut. Windows will attempt to launch the program with administrator rights.
- Approve the User Account Control prompt. A UAC dialog appears asking, "Do you want to allow this app to make changes to your device?" Click Yes. If you are signed in as a standard user, you will be asked for an administrator's password instead; enter it and click Yes.
- Confirm you are elevated. In Command Prompt, the window title bar usually starts with "Administrator:". In PowerShell, the title bar also shows "Administrator:". You can also run
whoami /groupsand look for the line that says "Mandatory Label\High Mandatory Level" or check that the Administrators group is enabled. If you do not see these signs, the session is not elevated. - Run your command. Once the elevated window is open, type the command you need and press Enter. For example,
sfc /scannowornet stop spooler. Close the window when you are done; elevated sessions stay open until you close them.
If Ctrl+Shift+Enter does not work for a particular program, the reliable fallback is to right-click the program's shortcut or executable and choose Run as administrator. For built-in tools, you can also open Start, type the tool's name, right-click the result, and choose Run as administrator. Another option is to open Task Manager, choose Run new task from the File menu (or the corresponding option in your version), type the command, and tick the Create this task with administrative privileges checkbox.
Common Mistakes
- Pressing Enter instead of Ctrl+Shift+Enter. This is the most common reason the command opens without administrator rights. The Run dialog does not have a separate "run as admin" checkbox, so the keyboard shortcut is the only way to elevate from there.
- Typing the command after the UAC prompt appears. The command must be in the Run box before you press Ctrl+Shift+Enter. If you press the shortcut on an empty box, nothing useful happens.
- Assuming every program supports elevation this way. Some installers and older programs ignore the elevation request or fail with an error. Use right-click > Run as administrator for those.
- Using a standard user account and expecting no password prompt. Standard users can trigger UAC but must supply administrator credentials. If you do not have them, ask your administrator; do not try to bypass the prompt.
- Leaving elevated windows open. An elevated Command Prompt or PowerShell window can change system settings. Close it when you are finished to reduce accidental changes.
Tips
- Use
Windows+Xand then pressAto open an elevated PowerShell or Terminal window quickly on many Windows 10 and Windows 11 systems. The exact menu item name varies by version. - Pin Command Prompt or PowerShell to the taskbar, then right-click the pinned icon and choose Run as administrator for a one-click elevated session.
- Check the title bar before running destructive commands. If it does not say "Administrator:", stop and reopen the window elevated.
- For commands that only need to read information, elevation is often unnecessary. Only elevate when the command must change system settings or access protected files.
- If you are unsure what a command does, look it up in Microsoft's official documentation before running it elevated. Elevated commands can change or delete system files.
Troubleshooting
If the Run dialog does not appear when you press Windows+R, try clicking the Start button and typing run to open it from search. If the keyboard shortcut is blocked by a third-party program, close that program or restart the PC. If Ctrl+Shift+Enter opens the program without a UAC prompt and the title bar does not show "Administrator:", your account may not be an administrator, or UAC may be configured to not prompt for administrators. In that case, sign in with an administrator account or ask your IT administrator to check the UAC settings. If the UAC prompt appears but you cannot approve it, you need administrator credentials; there is no legitimate way to skip that requirement. If the command itself fails after elevation, read the error message carefully. Common causes are a mistyped command, a service that is not installed, or a policy that blocks the action. Restart the PC and try again before changing any settings. If you are working on a company-managed device, some elevation requests are blocked by policy; contact your IT department rather than trying to work around it.
Frequently Asked Questions
Does Windows+R open an administrator prompt automatically?
No. Windows+R opens the Run dialog with your normal user rights. You must use Ctrl+Shift+Enter or another elevation method to run the command as administrator.
Why does Ctrl+Shift+Enter not always work?
Not every program supports being elevated this way, and some installers or older applications ignore the request. Use right-click > Run as administrator or Task Manager's Run new task option instead.
Can I run a command as administrator without a UAC prompt?
Only if UAC is configured not to prompt for administrators, which is a security risk and is often controlled by policy on managed devices. For standard users, administrator credentials are required.
How do I know if my Command Prompt is elevated?
The window title bar usually starts with "Administrator:". You can also run whoami /groups and check for the high mandatory level or enabled Administrators group.
Is it safe to leave an elevated window open?
It is safer to close it when you are done. An open elevated window allows commands to change system settings without another prompt.
What if I am on a standard user account?
You can still trigger UAC, but you must enter an administrator's password when prompted. If you do not have those credentials, ask your administrator for help.