Administrator Command Prompt Windows 10: How to Open It
In this article
To open an administrator command prompt in Windows 10, right-click the Start button and choose Windows PowerShell (Admin) or Command Prompt (Admin), then confirm the User Account Control prompt. Alternatively, press Win + X, then press A; or type cmd in the Start menu search, right-click Command Prompt, and select Run as administrator. The window title will show Administrator: Command Prompt (or Administrator: Windows PowerShell) when elevation succeeds. This guide covers those methods, what to do when the option is missing or greyed out, and how to avoid the common mistakes that make people think they have admin rights when they do not.
What You'll Need
- A Windows 10 PC you are allowed to administer. If it is a work or school machine, your organisation may block elevation; you will need an IT administrator to grant rights or run the command for you.
- An account that is a member of the local Administrators group. A standard user account cannot elevate even if you know an administrator password, unless you can supply that administrator's credentials at the UAC prompt.
- Ability to approve the User Account Control (UAC) prompt. If you are signed in as a standard user, you will need the administrator's password or PIN at that prompt.
Step-by-Step
- Use the Power User menu (fastest). Right-click the Start button, or press Win + X. In the menu, look for Windows PowerShell (Admin) or Command Prompt (Admin). The exact label depends on your Windows 10 version and your default setting; on newer builds PowerShell replaces Command Prompt in this menu. Click it, then click Yes on the UAC prompt.
- Use the Start menu search. Click the Start button and type cmd. In the results, right-click Command Prompt and choose Run as administrator. If you see Windows PowerShell instead, right-click that and choose Run as administrator. Confirm the UAC prompt.
- Use the Run dialog. Press Win + R, type cmd, and press Ctrl + Shift + Enter instead of Enter. This keyboard combination requests elevation. Approve the UAC prompt.
- Use Task Manager. Press Ctrl + Shift + Esc to open Task Manager. Click File > Run new task, type cmd, tick Create this task with administrative privileges, and click OK.
- Verify you are elevated. Look at the window title bar. It should read Administrator: Command Prompt or Administrator: Windows PowerShell. You can also run whoami /groups and look for Mandatory Label\High Mandatory Level, which indicates elevated rights. If the title does not say Administrator, close the window and repeat one of the methods above.
- Switch between Command Prompt and PowerShell if needed. If the Win + X menu shows PowerShell but you want Command Prompt, open Settings > Personalization > Taskbar, turn off Replace Command Prompt with Windows PowerShell in the menu when I right-click the lower-left corner or press Windows key + X, then try the menu again. This setting label can differ slightly by Windows 10 version and region.
Common Mistakes
- Assuming a black window means admin. A normal Command Prompt looks almost identical. Always check the title bar for the word Administrator before running commands that change system settings.
- Using a standard account and expecting elevation to just work. UAC will ask for an administrator's credentials. If you do not have them, you cannot elevate.
- Typing commands into the wrong window. Commands typed into a non-elevated prompt may fail with access denied, or worse, appear to succeed while changing only your user profile. Confirm elevation first.
- Ignoring the UAC prompt. Clicking No or closing the prompt leaves you in a normal prompt. The title bar will not show Administrator.
- Running unknown commands from the internet. An elevated prompt can change or delete system files. Only run commands you understand, and create a restore point first if you are making broad changes.
- Confusing PowerShell and Command Prompt. Both can run many of the same commands, but syntax differs. If a guide says cmd, use Command Prompt; if it says PowerShell, use PowerShell.
Tips
- Pin the elevated shortcut: right-click the Start button, choose Windows PowerShell (Admin) or Command Prompt (Admin), and pin it to the taskbar for one-click access.
- Use Ctrl + Shift + Enter from the Start menu search or Run dialog to request elevation without right-clicking.
- If you frequently need admin commands, consider creating a separate administrator account rather than using your daily account as an administrator. This reduces the risk of accidental system changes.
- Before running a command that modifies system files or the registry, create a restore point: search for Create a restore point in the Start menu, open System Properties, and click Create.
- Keep Windows updated. Some elevation methods and menu labels change with feature updates, so a current build matches the steps above more closely.
Troubleshooting
- The “Run as administrator” option is missing or greyed out. Your account is probably a standard user, or group policy blocks elevation. Check your account type in Settings > Accounts > Your info (it shows Administrator or Standard). On a work or school PC, contact IT; do not try to bypass policy.
- UAC asks for a password you do not have. You need an administrator to enter credentials or to change your account type. A standard user cannot grant themselves admin rights.
- The window opens but closes immediately. This can happen if a command is set to run and exit, or if malware is interfering. Try opening the prompt without running a command first, and run a full antivirus scan.
- “Access is denied” when running a command. Confirm the title bar says Administrator. If it does and you still get access denied, the file or setting may be protected by TrustedInstaller or policy; do not force it without understanding the risk.
- Win + X does not open the menu. Try right-clicking the Start button instead. If neither works, restart Explorer or sign out and back in.
- You see PowerShell but need Command Prompt. Use the Taskbar setting described in Step 6, or simply type cmd inside the PowerShell window and press Enter to start a Command Prompt session.
Frequently Asked Questions
Is an administrator command prompt the same as running as an administrator?
Yes. “Administrator command prompt” means the Command Prompt window was opened with elevated rights through UAC. The title bar shows Administrator: to confirm it.
Can I open an administrator command prompt without a password?
If your account is already an administrator and UAC is set to the default, you may only need to click Yes. If you are a standard user, you need an administrator's password or PIN at the UAC prompt.
Why does my command prompt say “Administrator” but commands still fail?
Some commands require specific services, files, or policy permissions beyond elevation. Check the exact error message; “access denied” can come from file permissions or group policy, not just from lack of elevation.
Does Windows 10 Home have an administrator command prompt?
Yes. The methods above work on Windows 10 Home, Pro, Enterprise, and Education. Menu labels may differ slightly by version and region.
How do I close an administrator command prompt safely?
Type exit and press Enter, or click the window's close button. If a command is still running, wait for it to finish or press Ctrl + C to stop it before closing.
Can I make Command Prompt always open as administrator?
You can create a shortcut set to run as administrator, but Windows will still show a UAC prompt each time unless you change UAC settings, which is not recommended for security. Pinning an elevated shortcut is the safer compromise.