How to Open Elevated or Admin Command Prompt in Windows?

Command Prompt is one of the most used tools in Windows. For tasks requiring administrator privileges, we need to start Command Prompt as administrator (“elevated”). This article describes different ways to open an elevated or administrator Command Prompt window.

How to Open Elevated or Admin Command Prompt

From the Win-X menu in Windows 11/10 and 8.1

  • Press the Win + X key, or right-click the Start button.
  • Click Command Prompt (Admin)

Note: Recent versions of Windows 10 replace Command Prompt with PowerShell in the Win + X menu. To get Command Prompt back in the menu, see the article Get back “Open command window here” context menu option in Windows 10

Using Ctrl + Shift + Enter in Windows 10 and 11

  1. Right-click Start, and click Run.
  2. Type cmd.exe in the Run dialog
  3. Press Ctrl + Shift and Enter.

This launches a Command Prompt window as an administrator.

RELATED: Start Programs Elevated (as Administrator) from Run Dialog in Windows 10 [Ctrl + Shift]

Using Start Search

  1. Click Start, type cmd.exe
  2. When the search results are shown, right-click the cmd.exe entry and choose Run as administrator.
    Alternately, select the cmd.exe in the search results using the UP/DOWN arrow and press Ctrl + Shift + Enter on the keyboard. Ctrl + Shift + Enter runs the program as administrator.

Using Task Manager – New task

  1. Right-click on the taskbar and click Task Manager. Or, press Ctrl + Shift and Esc
  2. In Task Manager, click the File menu and click Run new task
  3. Type cmd.exe in the text box.
  4. Enable Create this task with administrative privileges
    task manager -run command prompt elevated - create new task
  5. Click OK.

The Task Manager method offers an advantage. In Windows 10, as Task Manager runs as administrator by default, it doesn’t show you the UAC prompt when you launch a program using it from an administrator account.

Run as administrator using Shortcut Properties

Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. You can even pin the Command Prompt shortcut to the taskbar for easy reach.

Or you can create a new desktop shortcut to cmd.exe. Right-click on the shortcut and choose Run as administrator. To run the shortcut as an administrator by default:

  1. Right-click the Command Prompt shortcut you created on the Desktop
  2. Click Properties
  3. In the Shortcut tab, click Advanced.
  4. Enable the checkbox for Run as administrator
  5. Click OK and OK.

Now, every time when you double-click the shortcut Command Prompt window will open elevated.

If you’re a frequent user of the Command Prompt, you can Pin it to the Start menu or Taskbar.

Run as Administrator via the folder and desktop right-click menu

To add the Open Command Window Here (Administrator) option to the right-click menu for folders and the Desktop, use the following .reg file:

Windows Registry Editor Version 5.00

@="Open Command Window Here (Administrator)"

@="cmd.exe /s /k pushd \"%V\""

@="Open Command Window Here (Administrator)"

@="cmd.exe /s /k pushd \"%V\""

To add the entry to This PC (Computer) context menu, use the following REG file:

Windows Registry Editor Version 5.00

@="Open Command Prompt (Administrator)"


Note that the .reg files above replace the runas command in the registry if one was added manually earlier. For example, if you’ve added something like “Take Ownership” to the right-click menu for folders, it will be replaced by Command Prompt (Administrator).

How to Use .reg Files

Make a .reg file out of the above contents, and double-click the .reg file and apply the settings to the registry.

You can now open an elevated Command Prompt from the context menu of a folder, This PC or on the Desktop. It adds an Open Command Prompt here (Administrator) option in the context menu for folders and This PC (Computer) and the Desktop. Here are the screenshots:


open elevated command prompt desktop

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Elevated Command Prompt
Regular Command Prompt

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

4 thoughts on “How to Open Elevated or Admin Command Prompt in Windows?”

  1. thanks alot. it worked. the last two commands are not needed there.
    i mean, if we delete the registry entries in regedit, we dont need to enter those commands
    btw. thanks


Leave a Comment