sodcalculator

10 Tech How-To

Run Command Prompt as Administrator in Windows 10

Guide 10-60749 · Updated · Step by step

To run Command Prompt as administrator in Windows 10, right-click the Start button and select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”, then click “Yes” on the UAC prompt. You can also search for “cmd” in the Start menu, right-click the result, and choose “Run as administrator”. This guide covers every built-in method, explains why admin rights matter, and helps you fix common issues.

Why Run Command Prompt as Administrator?

Many command-line tools only work with elevated (administrator) privileges. For example, sfc /scannow (System File Checker), diskpart, net user, and ipconfig /release require admin rights to modify system files, network settings, or user accounts. Without elevation, Windows returns “Access denied” or “Requested operation requires elevation.” Running as administrator gives the command prompt full access to protected system areas, which is necessary for troubleshooting, repairing system files, and managing users or drives.

Method 1: Start Menu Search (Easiest)

  1. Click the Start button or press the Windows key.
  2. Type cmd or command prompt.
  3. In the search results, right-click on “Command Prompt” and select Run as administrator.
  4. Click Yes on the User Account Control (UAC) prompt.

This works in every Windows 10 version. If you prefer, you can also press Ctrl+Shift+Enter after selecting the search result to launch it directly as administrator.

Method 2: Power User Menu (Quick Access)

Right-click the Start button (or press Windows+X) to open the Power User menu. Depending on your Windows 10 version, you’ll see either “Command Prompt (Admin)” or “Windows PowerShell (Admin)”. Both give you the same elevated command-line environment. Click it and confirm the UAC prompt.

Note: In newer Windows 10 builds, PowerShell replaces Command Prompt in this menu, but you can still type cmd inside PowerShell to switch to the classic prompt.

Method 3: Run Dialog Box

  1. Press Windows+R to open the Run dialog.
  2. Type cmd.
  3. Press Ctrl+Shift+Enter (not just Enter) to run as administrator.
  4. Confirm the UAC prompt.

This is the fastest method if you’re already comfortable with keyboard shortcuts. The Ctrl+Shift+Enter combination is the key—pressing Enter alone opens a non-elevated window.

Method 4: Task Manager

  1. Press Ctrl+Shift+Esc to open Task Manager.
  2. Click File > Run new task.
  3. Type cmd.
  4. Check the box “Create this task with administrative privileges”.
  5. Click OK and confirm UAC.

This method is useful when Explorer is frozen or you need to launch an elevated prompt from a non-standard location.

Method 5: Create a Desktop Shortcut

If you use the admin prompt frequently, create a shortcut that always runs elevated:

  1. Right-click your desktop and select New > Shortcut.
  2. Type cmd.exe as the location.
  3. Name it “Command Prompt (Admin)” and click Finish.
  4. Right-click the new shortcut, select Properties.
  5. Click Advanced, then check “Run as administrator”.
  6. Click OK twice.

Now double-clicking that shortcut will always trigger a UAC prompt and open an elevated prompt.

How to Check If You’re Elevated

In the Command Prompt window, type net session and press Enter. If you see a message like “Access is denied,” you are not running as administrator. If it returns a list of sessions (or just a blank line), you have admin rights. Another quick check: type whoami /groups and look for “Mandatory Label\High Mandatory Level” in the output—that indicates an elevated process.

Common Problems and Fixes

  • UAC prompt doesn’t appear: If you’re using a standard (non-admin) account, you’ll be asked for an administrator password. If you’re on an admin account and UAC is disabled, the prompt won’t show—but that’s a security risk and not recommended.
  • “Run as administrator” is grayed out: This happens if the command prompt executable is blocked by Group Policy. Check with your IT department or system administrator.
  • Command prompt opens and closes immediately: This is usually a sign of a corrupted system file. Try running sfc /scannow from an elevated prompt (if you can open one) or use the Windows Recovery Environment.
  • You see “Windows cannot find cmd.exe”: This can happen if the System32 folder is missing from the PATH. In the Run dialog, type C:\Windows\System32\cmd.exe instead.

Frequently Asked Questions

Is it safe to run Command Prompt as administrator?

Yes, but only if you know what commands you’re running. An elevated prompt can modify system files, change user permissions, and alter network settings. Accidental misuse can cause system instability—so always double-check commands before pressing Enter.

What’s the difference between Command Prompt and PowerShell?

Both are command-line shells. PowerShell is more powerful and uses cmdlets, but it can run all traditional cmd commands. For most admin tasks, either works. Windows 10’s Power User menu now shows PowerShell by default, but you can still access Command Prompt via the Start menu search.

Why do I get “Access denied” even as administrator?

Some commands require the “Administrator” account itself (not just an admin user) or need additional permissions like “SeDebugPrivilege”. Also, certain system files are protected by TrustedInstaller, so even an elevated prompt may be denied. In those cases, use takeown and icacls carefully.

Can I run an elevated prompt without the UAC prompt?

You can disable UAC for a specific shortcut by setting its compatibility mode, but that’s not recommended for security. Disabling UAC entirely reduces Windows’ security and can make your system more vulnerable to malware.

Does running as administrator affect the commands I can use?

Yes. Many commands that read system information work fine without elevation, but commands that write to protected areas (like sfc, chkdsk, diskpart, and netsh changes) require admin rights. Without elevation, they either fail or run in a limited read-only mode.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →