Starting Command Prompt as an administrator means opening it with elevated privileges, so commands that modify system-wide settings can run. Without elevation, Windows blocks many administrative commands with an 'Access is denied' error. You need a Windows PC and an account that belongs to the Administrators group; if you are signed in as a standard user, you will be prompted for an administrator password.
What You'll Need
- A computer running Windows 10 or Windows 11 (the steps are nearly identical).
- An account that is a member of the Administrators group, or the password for such an account.
- No extra software; Command Prompt is built into Windows.
Step-by-Step
- Open the Start menu. Click the Start button or press the Windows key.
- Type
cmdorCommand Prompt. The search results will show the Command Prompt app. - Right-click the Command Prompt result. A context menu appears.
- Choose Run as administrator. If User Account Control (UAC) prompts you, click Yes (or enter an administrator password).
- Confirm elevation. The window title should read Administrator: Command Prompt. You can also type
whoami /groupsand look for the Mandatory Label\High Mandatory Level entry, which indicates elevated rights.
Alternative methods:
- Power User menu: Press
Win+X, then choose Command Prompt (Admin) or Terminal (Admin) depending on your Windows version. - Run dialog: Press
Win+R, typecmd, then pressCtrl+Shift+Enterinstead of Enter. - Task Manager: Open Task Manager, click File > Run new task, type
cmd, and tick Create this task with administrative privileges. - From File Explorer: Navigate to
C:\Windows\System32, right-clickcmd.exe, and choose Run as administrator.
Common Mistakes
- Assuming a normal window is elevated. Always check the title bar for the word Administrator.
- Clicking No on the UAC prompt. The window opens without elevation and administrative commands fail.
- Using a standard user account without an admin password. You cannot elevate; ask an administrator to sign in or provide credentials.
- Confusing Command Prompt with PowerShell. Both can be elevated, but they are different shells; the steps are similar but the title bar wording differs.
- Leaving an elevated window open unnecessarily. Close it when done to reduce the risk of accidental changes.
Tips
- Pin Command Prompt to the taskbar, then right-click the pinned icon and choose Run as administrator for faster access.
- Use
Ctrl+Shift+Enterfrom the Start menu search to launch elevated directly. - If you frequently need elevation, create a shortcut with the Run as administrator option enabled in its properties.
- Remember that an elevated prompt can change system files and settings; double-check commands before pressing Enter.
- In Windows 11, the default terminal may be Windows Terminal; the same right-click and Run as administrator option applies.
Troubleshooting
- UAC prompt does not appear: Your account may not be an administrator, or UAC may be disabled by policy. Check with
net user %username%to see group membership. - 'Access is denied' after opening: The window is not elevated. Close it and repeat the steps, making sure to choose Run as administrator.
- Command Prompt missing from search: Type
cmd.exein the Run dialog (Win+R) and pressCtrl+Shift+Enter. - Elevated window closes immediately: A startup script or policy may be terminating it; try opening from
C:\Windows\System32\cmd.exedirectly. - Wrong shell opens: If Windows Terminal opens instead of Command Prompt, use the dropdown arrow in Terminal and select Command Prompt, or change the default terminal in Settings.
Frequently Asked Questions
Do I need to restart my computer after opening an elevated prompt?
No. Elevation applies only to that window; closing it ends the elevated session.
Can I run an elevated Command Prompt without a password?
Only if your account is already an administrator and UAC is set to allow it; otherwise Windows prompts for consent or credentials.
Is an elevated Command Prompt the same as safe mode?
No. Safe mode is a diagnostic startup mode; an elevated prompt is simply a command window with administrator rights.
Why does the title bar say 'Administrator: Command Prompt'?
That prefix confirms the window is running with elevated privileges.
Can I elevate an already open Command Prompt window?
No. You must close it and open a new one with Run as administrator.
Does opening an elevated prompt change my system?
No, merely opening it changes nothing; only the commands you run can make changes.