Opening Command Prompt as administrator gives you elevated privileges, allowing you to run commands that modify system settings, manage services, or troubleshoot issues that a standard user account cannot. Without elevation, many commands fail with "Access Denied" errors. This guide walks you through the reliable methods on Windows 10 and 11, plus what to do when things go wrong.
What You'll Need
- A Windows 10 or Windows 11 computer.
- An account that is a member of the Administrators group. Standard user accounts cannot elevate without an administrator's password.
- If you're on a managed or work device, you may need permission from your IT department to run elevated commands.
Step-by-Step
- Open the Start menu. Click the Start button or press the Windows key on your keyboard.
- Type
cmdorCommand Prompt. The search results will show the Command Prompt app. - Right-click the Command Prompt result. A context menu appears.
- Select Run as administrator. If you don't see this option, you may be using a standard account or the app is pinned in a way that hides it—try the alternative methods below.
- Confirm the User Account Control (UAC) prompt. Click Yes to allow the app to make changes. If you're prompted for an administrator password, enter it.
- Verify elevation. The Command Prompt window title bar should read "Administrator: Command Prompt". You can also run
whoami /groups | find "S-1-16-12288"to confirm high integrity level, but the title bar is usually enough.
Alternative methods: Press Ctrl+Shift+Enter after typing cmd in the Start menu search to launch elevated directly. Or right-click the Start button, choose Windows Terminal (Admin) or Command Prompt (Admin) from the power user menu. You can also open Task Manager, click File > Run new task, type cmd, and tick Create this task with administrative privileges.
Common Mistakes
- Assuming any Command Prompt window is elevated. Always check the title bar—if it doesn't say "Administrator", commands that need elevation will fail.
- Using a standard user account. If your account isn't an administrator, you'll be asked for credentials you may not have. Contact your IT admin.
- Clicking "No" on the UAC prompt. This cancels elevation; the window opens as a standard user instead.
- Running commands from the wrong directory. Elevation doesn't change the working directory. Use
cdto navigate to the correct folder before running scripts. - Leaving elevated windows open unnecessarily. Close them when done to reduce security risk.
Tips
- Pin Command Prompt to your taskbar for quick access, but remember you still need to right-click and choose Run as administrator each time.
- Use Windows Terminal if available—it supports multiple tabs and profiles, and you can set a profile to always run as administrator.
- For frequent elevated sessions, create a desktop shortcut with the Run as administrator option enabled in its properties.
- Be cautious with commands you find online; elevated Command Prompt can make irreversible changes. Double-check syntax before pressing Enter.
- If you need to run a single elevated command, consider using
powershell Start-Process cmd -Verb RunAsfrom a normal prompt, but this still triggers UAC.
Troubleshooting
- "Run as administrator" is missing or greyed out. Your account may not be an administrator, or Group Policy may restrict elevation. Try logging in with an admin account or contact your IT department.
- UAC prompt doesn't appear. Check that User Account Control is enabled in Control Panel > User Accounts > Change User Account Control settings. If disabled, elevation may happen silently—but this reduces security.
- Command Prompt opens and closes immediately. This can happen if a startup script exits. Try opening via the Start menu search instead of a shortcut, or run
cmd /kto keep the window open. - "Access is denied" even after elevation. Some commands require the TrustedInstaller or SYSTEM privileges. You may need to use
takeownandicaclsto change ownership, or use a tool like PsExec. - Windows Terminal doesn't show "Run as administrator". Right-click the Windows Terminal icon in the taskbar and choose Run as administrator, or set the profile to always elevate in Settings.
Frequently Asked Questions
How do I know if Command Prompt is running as administrator?
The window title bar will show "Administrator: Command Prompt" (or "Administrator: Windows Terminal"). You can also run net session—if it returns "Access is denied", you're not elevated.
Can I open Command Prompt as administrator without a mouse?
Yes. Press the Windows key, type cmd, then press Ctrl+Shift+Enter. Confirm the UAC prompt with the arrow keys and Enter.
Why does UAC ask for a password instead of just Yes/No?
If you're signed in with a standard account, UAC requires an administrator's password. With an admin account, you typically only need to click Yes.
Is it safe to always run Command Prompt as administrator?
No. Elevated sessions bypass some security protections. Only elevate when necessary, and close the window when finished.
What's the difference between Command Prompt and PowerShell as administrator?
Both can be elevated. PowerShell offers more advanced scripting and cmdlets, while Command Prompt is the classic shell. The elevation process is the same: right-click and choose Run as administrator.
Can I make a shortcut that always opens Command Prompt as administrator?
Yes. Right-click an existing Command Prompt shortcut, choose Properties, click Advanced, and tick Run as administrator. Then click OK. Each launch will still trigger a UAC prompt.