Windows Elevated Command Prompt: How to Open It
In this article
You open an elevated Command Prompt in Windows by launching it with administrator rights: press the Start button, type cmd, right-click Command Prompt in the results, and choose Run as administrator. Approve the User Account Control (UAC) prompt and the window title will read Administrator: Command Prompt. That is the only reliable sign you have elevation. Everything else in this guide covers the other launch routes, how to confirm elevation, and what to do when the prompt does not appear or commands still fail.
What You'll Need
- A Windows 10 or Windows 11 PC (the steps are nearly identical on both; labels can differ slightly by version, device and region).
- An account that is a member of the local Administrators group. A standard user account will see the UAC prompt ask for an administrator's password instead of a simple Yes/No.
- Permission to approve the UAC prompt. If someone else manages the PC, you need their credentials or their approval.
- No extra software. Command Prompt is built into Windows.
Step-by-Step
- Save your work first. Elevated commands can change system settings, services and files. Close anything you would not want interrupted.
- Open the Start menu. Click the Start button or press the Windows key.
- Type
cmd. The search results appear as you type. You do not need to press Enter yet. - Right-click Command Prompt in the results list (it may be grouped under Windows System on some builds). A context menu opens.
- Choose Run as administrator. If you only see Open, you are looking at the wrong entry or the account lacks admin rights.
- Approve the UAC prompt. Select Yes. On a standard account, enter an administrator's username and password instead.
- Confirm the title bar. It should read Administrator: Command Prompt. If it just says Command Prompt, the window is not elevated — close it and repeat from step 2.
- Run a quick check. Type
whoami /groupsand press Enter. Look for a line containing Mandatory Label\High Mandatory Level or the built-in Administrators group marked as enabled. This is a safer confirmation than trusting the title alone. - Run your command. Type it and press Enter. Read the output before closing the window; some commands print errors that scroll past quickly.
- Close the window when finished. Elevated windows stay elevated until closed. Closing it returns you to a normal, non-elevated session.
Alternative launch routes. These all work and reach the same elevated prompt:
- Power User menu: press
Windows + X(or right-click Start) and choose Terminal (Admin) on Windows 11 or Windows PowerShell (Admin) on Windows 10. Either opens an elevated console; typecmdinside it if you specifically need Command Prompt. - Run dialog: press
Windows + R, typecmd, then pressCtrl + Shift + Enterinstead of Enter. This shortcut requests elevation directly. - Task Manager: open Task Manager, choose Run new task from the File menu, type
cmd, and tick Create this task with administrative privileges. - File Explorer: navigate to
C:\Windows\System32, right-clickcmd.exeand choose Run as administrator. This is useful when Start search is misbehaving.
Common Mistakes
- Assuming a normal window is elevated. The title bar is the giveaway. A window opened by double-clicking or by pressing Enter in search is not elevated.
- Ignoring the UAC prompt. Clicking No or dismissing the dialog leaves you with a standard prompt and no error message explaining why.
- Using a standard account and expecting the Yes button. Standard users must supply administrator credentials; that is by design, not a fault.
- Typing commands into the wrong console. PowerShell and Command Prompt accept different syntax. If a command fails with a parsing error, check which shell you are in.
- Leaving elevated windows open. An elevated prompt is a security risk if left unattended. Close it when the job is done.
- Running everything elevated out of habit. Only elevate when a command genuinely needs it. Routine file work does not.
Tips
- Pin an elevated shortcut: right-click
cmd.exe, choose Pin to taskbar, then right-click the pinned icon and open its properties to set it to run as administrator. The exact properties wording varies by Windows version. - Use
cd /dto change drives and directories in one step, for examplecd /d D:\Projects. - Copy output by right-clicking inside the window and choosing Mark, or enable Use Ctrl+Shift+C/V as Copy/Paste in the window's properties.
- Keep a note of the exact command you ran and its output. That makes troubleshooting far quicker if something changes.
- If a command changes a service or registry value, note the original setting first so you can restore it.
Troubleshooting
The Run as administrator option is missing. Your account is probably a standard user. Sign in with an administrator account or ask the PC's administrator to grant you rights. Do not try to work around UAC.
UAC asks for a password you do not have. You need an administrator to approve the elevation. There is no legitimate bypass; leave it to them.
The window opens and closes instantly. This often happens when a command is passed as a startup argument. Open the prompt normally first, then type the command.
Commands still say Access is denied. Re-check the title bar. If it is elevated and access is still denied, the file or registry key may be protected by a different mechanism; stop and confirm what you are changing before proceeding.
Start search cannot find Command Prompt. Use Windows + R with Ctrl + Shift + Enter, or launch cmd.exe from C:\Windows\System32.
The prompt behaves oddly after a change. Restart the PC and test again before making further changes. If a system setting was altered, restore the original value you noted earlier.
Frequently Asked Questions
Is an elevated Command Prompt the same as an administrator account?
No. Elevation gives that one window administrator rights for the session. Your account's underlying permissions are unchanged.
Can I open an elevated prompt without UAC?
Not through normal means, and you should not try to disable UAC to get there. UAC is a core security control.
Does Windows 11 still include Command Prompt?
Yes. It ships alongside Windows Terminal and PowerShell. You can open it from Start search or from within Windows Terminal.
Why does the title bar not say Administrator?
Because the window was launched without elevation. Close it and use Run as administrator.
Is it safe to leave an elevated prompt open?
It is best not to. Anyone with access to the unlocked PC could run privileged commands. Close it when you are finished.
Can I run a single command elevated without opening a window?
You can start an elevated prompt and run the command inside it. Avoid scheduling or scripting elevation in ways that bypass UAC prompts.