Curious Minds

Clear answers to science and history questions

How to Get to Admin Command Prompt

· 7 min read · Science

To get to an admin command prompt, open the Start menu, type cmd (or Command Prompt), right-click the "Command Prompt" result and choose Run as administrator, then confirm the User Account Control prompt. The window that opens has the title "Administrator: Command Prompt" and can run commands that change system settings, which a normal window cannot. The alternative routes are the Win+X menu (Windows Terminal (Admin) or Command Prompt (Admin)), Task Manager's "Run new task" box with "Create this task with administrative privileges" ticked, or a recovery environment when Windows will not start.

You do not need to install anything, but you do need an account that is a member of the local Administrators group. A standard user account will be asked for an administrator's password instead of simply confirming, and if nobody with administrator rights is available, the elevation will fail. Nothing in this process is destructive by itself; the risk comes from what you type afterwards, because an elevated prompt can modify protected files, services and registry keys without asking again.

What You'll Need

  • A Windows 10 or Windows 11 PC (the steps are nearly identical; Windows 11 usually opens Windows Terminal instead of the classic console).
  • An account in the local Administrators group, or the password of one.
  • Physical access to the machine, since the User Account Control prompt appears on the local screen.
  • Optional: a Windows installation or recovery USB, only if you are troubleshooting a PC that will not boot.

Step-by-Step

  1. Open the Start menu search. Press the Windows key or click Start, then type cmd. On Windows 11 you can also type Command Prompt; the search results appear within a second or two.
  2. Right-click the correct result. The result labelled "Command Prompt" (or "Command Prompt App") is the one you want. Right-clicking it opens a context menu; a plain left-click would launch it without elevation, which is the most common reason people end up in a normal window.
  3. Choose "Run as administrator". If the option is greyed out, your account is not an administrator and you will need different credentials.
  4. Approve the User Account Control prompt. A dialog asks whether 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 instead be asked to type an administrator's username and password.
  5. Verify the window title. The title bar should read "Administrator: Command Prompt" (or "Administrator: Windows PowerShell" if that is your default terminal). The working directory is usually C:\Windows\System32. If the word Administrator is missing, close it and repeat from step 1.
  6. Confirm elevation from inside the window (optional but useful). Type whoami /groups and press Enter. Look for a line containing "Mandatory Label\High Mandatory Level"; that indicates the session is elevated. Typing net session is a quicker check: it succeeds in an elevated window and returns "Access is denied" in a normal one.
  7. Run your command, then close the window. Type exit or click the X when finished. Leaving an elevated prompt open is unnecessary exposure, especially on a shared machine.

If the Start menu search is unavailable, use the Win+X menu instead: press Windows+X (or right-click the Start button) and pick Terminal (Admin) on Windows 11 or Command Prompt (Admin) on Windows 10. On Windows 11 the terminal may open with PowerShell as the default shell; you can switch to Command Prompt from the dropdown arrow in the tab bar, or simply type cmd and press Enter inside the elevated terminal, which starts a command prompt that inherits the same elevation.

A third route works on any Windows version: press Ctrl+Shift+Esc to open Task Manager, click Run new task (File menu on older builds), type cmd, tick Create this task with administrative privileges and click OK. This is handy when the Start menu or search is broken, which is exactly the situation in which people often need an elevated prompt in the first place.

Common Mistakes

Left-clicking instead of right-clicking. The single most frequent error. A normal prompt looks almost identical but silently fails on commands such as sfc /scannow, netsh changes or anything writing to protected folders.

Assuming the window is elevated because the account is an administrator. Windows runs administrator accounts with a filtered token by default, so being an admin does not make every window elevated. The title bar is the reliable indicator.

Typing commands before checking the working directory. An elevated prompt often starts in C:\Windows\System32. If you run a script or tool by name, Windows may look there first. Use cd /d C:\path\to\folder to move deliberately.

Pasting commands from unfamiliar sources. Elevation removes the safety net. Read what a command does before pressing Enter, and be wary of instructions that disable security features or delete folders wholesale.

Confusing PowerShell and Command Prompt. Most classic commands work in both, but syntax differs for scripting. If a guide says "command prompt", use cmd; if it says PowerShell, use that, so cmdlets and quoting behave as expected.

Tips

Pin the elevated shortcut if you use it often: search for Command Prompt, right-click the result, choose Pin to taskbar, then right-click the pinned icon, right-click "Command Prompt" in the list and open Properties, where you can tick Run as administrator under Advanced. From then on the pinned icon always elevates.

Use Ctrl+Shift+Enter instead of Enter when a search result is highlighted; that shortcut launches the selected item elevated. It works in the Start menu search and in File Explorer's address bar.

Keep a habit of closing elevated windows when the job is done, and avoid running everyday tools such as browsers or media players as administrator. Elevation is for the specific task, not for the whole session.

Troubleshooting

"Run as administrator" is missing or greyed out. Your account is not in the Administrators group, or group policy has removed the option. Sign in with an administrator account, or ask one to add you via Settings > Accounts > Other users.

User Account Control does not appear. If UAC is set to never notify, elevation happens silently; check the title bar to confirm. If nothing happens at all, the prompt may be appearing behind other windows, so minimise everything.

The prompt opens and immediately closes. This usually means a startup script or a broken autorun entry. Launch it from Task Manager's "Run new task" with the administrative box ticked, which bypasses the Start menu path.

"This app has been blocked by your organization." AppLocker or similar policy is restricting the console. Only an administrator who manages that policy can change it; there is no user-side workaround.

Windows will not start at all. Boot from a Windows installation USB, choose Repair your computer, then Troubleshoot > Advanced options > Command Prompt. That prompt runs outside the installed system and is elevated by design, which makes it the standard tool for repairing boot problems.

Frequently Asked Questions

How can I tell whether my command prompt is elevated?

Check the title bar for the word "Administrator", or run net session: it succeeds when elevated and reports access denied when not.

Do I need an administrator account to open an elevated prompt?

You need administrator credentials, but not necessarily your own. A standard user can elevate by entering an administrator's username and password at the UAC prompt.

Is an elevated command prompt the same as safe mode?

No. Safe mode is a limited boot configuration; an elevated prompt is simply a console with full permissions. They are independent, though you can open an elevated prompt while in safe mode.

Why does Windows 11 open Terminal instead of Command Prompt?

Windows 11 makes Windows Terminal the default console host. The elevation is the same; you can switch the shell to Command Prompt inside the terminal or change the default in Terminal's settings.

Can I break Windows by using an admin command prompt?

Yes, if you run the wrong command. The prompt itself is harmless, but it can delete files, alter services and change registry settings without further confirmation, so only run commands you understand.

Does an elevated prompt stay elevated after I close and reopen it?

No. Each new window starts unelevated unless you launch it through one of the administrator routes described above.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions