Windows Guide · 2026

How to Run Command Prompt as Administrator in Windows 10 & Windows 11

A complete step-by-step guide to opening an elevated Command Prompt for system repair, network commands, disk tools, boot configuration, and advanced troubleshooting.

⊞ Windows 10 ⊞ Windows 11 🛡 Administrator Rights 💻 CMD 🕐 6 min read

What Is an Administrator Command Prompt in Windows?

An administrator Command Prompt, also called an elevated Command Prompt, is a CMD window launched with administrative privileges. It can modify protected system files, change network settings, manage disks, repair Windows components, edit boot configuration, and run commands that a standard user session cannot execute.

When Command Prompt is opened normally, it runs with the rights of your current user account. Even if your account is an administrator account, Windows usually starts apps with standard permissions until you approve elevation through User Account Control (UAC). That approval is what makes the CMD session elevated.

⚠️
Important An elevated Command Prompt can change critical Windows settings. Run only commands you understand or commands from a trusted source. A wrong disk, boot, or permission command can make Windows unstable or cause data loss.

When Do You Need to Run CMD as Administrator?

You may need administrator privileges when using commands such as:

  1. System repair: sfc /scannow, DISM /Online /Cleanup-Image /RestoreHealth.
  2. Disk diagnostics: chkdsk, diskpart, manage-bde.
  3. Network reset: netsh winsock reset, ipconfig /flushdns.
  4. Boot repair: bootrec, bcdedit, bcdboot.
  5. Service control: sc, net start, net stop.
  6. User and group management: net user, net localgroup.
Method 01 Windows Search The easiest and most universal method for most users. ⭐ Recommended
Method 02 Start Context Menu Fast access through the Win+X power-user menu. ⚡ Fast
Method 03 Run Dialog Launch CMD with Ctrl+Shift+Enter from the Run box. ⌨ Keyboard
Method 04 Windows Terminal Best option on modern Windows 11 systems. 🖥 Modern
Method 05 Task Manager Useful when Explorer or the Start menu is not working. 🔧 Repair
Method 06 Recovery Mode For boot repair and offline troubleshooting. 🛠 Advanced

Open Command Prompt as Admin from the Start Menu Context Menu

Windows includes a power-user menu that opens with the Windows + X shortcut. Depending on your Windows version and settings, this menu may show Terminal, Windows PowerShell, or Command Prompt.

  1. Press Windows + X or right-click the Start button.
  2. Select Terminal (Admin), Windows PowerShell (Admin), or Command Prompt (Admin).
  3. Approve the UAC prompt by clicking Yes.
  4. If Windows Terminal opens instead of classic CMD, click the arrow next to the tab and choose Command Prompt.

On newer Windows 11 builds, the Win+X menu usually opens Terminal (Admin). This is normal. You can still run CMD commands inside a Command Prompt tab.

Run CMD as Administrator Using the Run Dialog

The Run dialog is a quick keyboard-based method. The key detail is to use Ctrl + Shift + Enter, not just Enter.

  1. Press Windows + R to open the Run dialog.
  2. Type cmd.
  3. Press Ctrl + Shift + Enter.
  4. Click Yes in the User Account Control prompt.
Run dialog command
cmd
⚠️
Common mistake Pressing only Enter opens a normal Command Prompt. To open it with administrator rights from Run, use Ctrl + Shift + Enter.

Open an Elevated Command Prompt in Windows Terminal

Windows Terminal is the default console host on many Windows 11 installations. It can run PowerShell, Command Prompt, Azure Cloud Shell, and other profiles in tabs.

  1. Right-click the Start button.
  2. Select Terminal (Admin).
  3. Approve the UAC prompt.
  4. Click the small arrow near the tab bar.
  5. Select Command Prompt.

You now have a Command Prompt tab running with administrator privileges.

Make Command Prompt the Default Windows Terminal Profile

If you often use CMD instead of PowerShell, you can set it as the default profile:

  1. Open Windows Terminal.
  2. Click the arrow next to the tabs and choose Settings.
  3. Open Startup.
  4. Set Default profile to Command Prompt.
  5. Click Save.

Launch Command Prompt as Administrator from Task Manager

Task Manager is useful when the Start menu, Search, or desktop is not responding. It can create a new elevated task directly.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. In Windows 10, click FileRun new task. In Windows 11, click Run new task at the top of the window.
  3. Type cmd.
  4. Enable Create this task with administrative privileges.
  5. Click OK.
Task Manager new task
cmd

This method is especially helpful when you need to restart Explorer, repair system files, or run a command while the shell is partially frozen.

Run Command Prompt as Administrator from File Explorer or System32

You can start CMD directly from its executable file, cmd.exe. This is useful if search indexing is broken or shortcuts are missing.

  1. Open File Explorer.
  2. Go to the following folder:
CMD executable location
C:\Windows\System32
  1. Find cmd.exe.
  2. Right-click cmd.exe.
  3. Select Run as administrator.
  4. Approve the UAC prompt.
ℹ️
Note On 64-bit Windows, C:\Windows\System32\cmd.exe is the standard Command Prompt executable. The folder name may look confusing, but System32 contains 64-bit system files on 64-bit Windows.

Create a Desktop Shortcut to Always Run Command Prompt as Administrator

If you frequently use elevated CMD, create a dedicated shortcut and configure it to always request administrator rights.

  1. Right-click an empty area of the desktop.
  2. Select NewShortcut.
  3. In the location field, enter:
Shortcut target
C:\Windows\System32\cmd.exe
  1. Click Next.
  2. Name the shortcut, for example Admin Command Prompt.
  3. Click Finish.
  4. Right-click the new shortcut and open Properties.
  5. On the Shortcut tab, click Advanced.
  6. Enable Run as administrator.
  7. Click OK, then Apply.

Every time you launch this shortcut, Windows will show a UAC prompt and then open an elevated Command Prompt.

Open Command Prompt as Administrator from Windows Recovery Environment

If Windows does not boot normally, you can open Command Prompt from the Windows Recovery Environment. This mode is often used for boot repair, offline file operations, disk checks, and BCD recovery.

Open CMD from Advanced Startup

  1. Hold Shift and click Restart from the Start menu or sign-in screen.
  2. Choose Troubleshoot.
  3. Open Advanced options.
  4. Select Command Prompt.
  5. Choose your user account and enter the password if requested.

Open CMD from Windows Installation Media

  1. Boot from a Windows 10 or Windows 11 USB installation drive.
  2. On the setup screen, click Next.
  3. Select Repair your computer.
  4. Go to TroubleshootAdvanced optionsCommand Prompt.
⚠️
Drive letters may change In Recovery Environment, Windows may not be on drive C:. Use diskpart, list volume, or dir to identify the correct Windows partition before running repair commands.

How to Check If Command Prompt Is Running as Administrator

The easiest sign is the window title. An elevated window usually displays:

Elevated CMD title
Administrator: Command Prompt

You can also run a command that requires elevated rights. For example:

Admin check command
net session

If Command Prompt is elevated, the command will not return the typical “Access is denied” message. If it is not elevated, Windows will usually report that administrator permissions are required.

Common Problems When Opening Command Prompt as Administrator

“Run as administrator” Is Missing

If the option is missing, try another method such as Task Manager, File Explorer, or Windows Terminal. Also make sure you are right-clicking the actual Command Prompt app or cmd.exe, not a text file or search suggestion.

User Account Control Does Not Appear

If UAC is disabled, Windows may not show the approval dialog. This is not recommended for everyday use. UAC helps prevent unauthorized elevation and should generally remain enabled.

“Access Is Denied” Even in Command Prompt

Check that the title bar says Administrator: Command Prompt. Some commands also require ownership, special permissions, Safe Mode, Recovery Environment, or a specific Windows edition.

The Account Is Not an Administrator

A standard user cannot approve elevation without administrator credentials. Sign in with an administrator account or ask the device owner or IT administrator to grant temporary access.

Command Prompt Is Blocked by Policy

On corporate, school, or managed PCs, Command Prompt may be restricted by Group Policy or endpoint security software. In that case, use approved administrative tools or contact the organization’s IT department.

Useful Windows Commands That Often Require Administrator Rights

Here are common commands users run from an elevated Command Prompt:

Command Purpose Typical Use Case
sfc /scannow Scans and repairs protected Windows system files. Broken system components, crashes, missing files.
DISM /Online /Cleanup-Image /RestoreHealth Repairs the Windows component store. Windows Update errors, SFC repair failures.
chkdsk C: /f Checks the disk and schedules repairs. File system errors, disk warnings, unexpected shutdowns.
ipconfig /flushdns Clears the DNS resolver cache. Website loading problems, DNS changes.
netsh winsock reset Resets the Winsock catalog. Network connection problems after VPN, proxy, or malware cleanup.
bcdedit Views or changes boot configuration data. Boot menu repair, Safe Mode configuration, dual-boot settings.
💡
Best practice For repair commands, run DISM /Online /Cleanup-Image /RestoreHealth first, then run sfc /scannow. This sequence helps ensure that SFC uses a healthy component store.

Security Tips Before Using Administrator Command Prompt

  1. Read the command before pressing Enter. Do not paste long commands blindly.
  2. Avoid unknown scripts. Batch files and one-line commands can delete files, change permissions, or disable security features.
  3. Check drive letters carefully. Commands such as format, diskpart, and bcdboot can affect the wrong disk if used carelessly.
  4. Create a restore point before major changes. This is useful before editing boot settings, services, drivers, or registry-related configurations.
  5. Close elevated CMD when finished. Leaving admin consoles open increases the risk of accidental changes.

FAQ: Running Command Prompt as Administrator in Windows

What is the fastest way to open Command Prompt as administrator?

Press Windows, type cmd, then press Ctrl + Shift + Enter. Approve the UAC prompt to open an elevated Command Prompt.

Can I open CMD as administrator without a password?

Only if you are already signed in as an administrator and UAC only requires confirmation. If you are using a standard account, Windows will require administrator credentials.

Why does Windows 11 show Terminal instead of Command Prompt?

Windows 11 often uses Windows Terminal as the default console interface. You can open Terminal (Admin) and then choose a Command Prompt tab from the tab menu.

Is PowerShell the same as Command Prompt?

No. PowerShell and Command Prompt are different shells. Many basic commands work in both, but some CMD commands, batch syntax, and PowerShell cmdlets behave differently.

How do I know CMD is elevated?

Look at the title bar. It should say Administrator: Command Prompt. You can also run net session; a non-elevated session usually returns an access-denied message.

Can I make Command Prompt always run as administrator?

Yes. Create a shortcut to C:\Windows\System32\cmd.exe, open its properties, click Advanced, and enable Run as administrator.

Conclusion: Best Way to Open Administrator Command Prompt

For most users, the best method is Windows Search: type cmd, right-click Command Prompt, and choose Run as administrator. For keyboard users, Windows + R, cmd, and Ctrl + Shift + Enter is even faster.

If Windows is not working correctly, use Task Manager to create an elevated CMD task, or open Command Prompt from Windows Recovery Environment for offline repair. Always verify that the title bar says Administrator: Command Prompt before running commands that require system-level access.