Advertisement

How to Open Command Prompt as Administrator in Windows 11

You can use multiple methods to open Command Prompt as Administrator in Windows 11. This can be useful when you need to allow some console tool to finish its work with elevated privileges.

Advertisеment

In Windows 11, Microsoft offers Windows Terminal and PowerShell as modern replacements for the classic command prompt. Its shortcut has been moved from the Start menu to the Windows Tools folder, making it harder to launch it for a newcomer.

Windows 11 Command Prompt As Administrator

However, if you really need it to launch it elevated, you can easily do it. Obviously, to open a new command prompt as Administrator, you must be signed in to a user account with Administrator privileges. Otherwise, you will have to enter the Administrator password on a UAC prompt.

Windows 11: Open Command Prompt as Administrator

There are several methods to open Command Prompt with Administrator privileges, including classic methods and new options specific to Windows 11. To name some, you can use the Run dialog, Task Manager, File Explorer, Windows Search, and several other methods. Let's review all of them.

The Run dialog

  1. Press Win + R to open the Run box, then type cmd.
  2. Now, press the Ctrl + Shift + Enter keys to launch the command prompt elevated.Windows 11 Open Command Prompt From Run
  3. If prompted, click Yes in the UAC.Click Yes In UAC

Done! The same way you can open the admin command prompt from the Task Manager.

It is important to note that if you have changed the console application to Windows Terminal, then cmd.exe will always open to the Windows Terminal tab, and not in its own window.

Open Elevated Command Prompt from Task Manager

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Click File > Run new task. If you don't see the menu, click on More details.

Task Manager Run New Task

  1. Enter cmd in the Create new task text box.
  2. Enable the "Create this task with administrative privileges" checkbox.Open Elevated Command Prompt From Task Manager
  3. Also, there is a hidden way to open it from task manager. Click the File menu, press and hold the Ctrl + Shift keys, and then click on Run new task. This will instantly open the elevated command prompt.Second Method To Open Command Prompt From Task Manager

That is how to run Windows 11 Command Prompt as Administrator with the cmd.exe command.

Using Windows Terminal

To open the command prompt elevated inside the Windows Terminal, press Win + X or right-click the Start menu button.

Then, select Windows Terminal (Admin) from the menu.

Open Windows Terminal As Admin

Finally, once open a new instance of Windows Terminal as Admin, select the command prompt profile from the arrow-down menu.Select Command Prompt in the Windows Terminal menu

By default, it opens to PowerShell.

Open Command Prompt as Administrator from Windows Tools

Unlike Windows 10, where the Command Prompt was directly available in the Start menu, Windows 11 no longer shows it in "All apps". The latter keeps it hidden in the new "Windows Tools" folder. You can use the shortcut in there to open an elevated console.

To open Command Prompt as Administrator in Windows 11, do the following.

  1. Click the Start button and then click "All Apps".Click All Apps in the Start menu
  2. Scroll down and find the "Windows Tools" folder. Click it.Click the Windows Tools icon
  3. Finally, right-click the Command Prompt shortcut and select Run as Administrator.Run Elevated Command Prompt From Windows Tools

Another quick and easy way to run the Command Prompt as Administrator is to use Windows Search.

Open Elevated Command Prompt from Windows Search

  1. Click the search icon on the taskbar or use Win + S buttons, or start typing right in the Start menu.
    Windows Search
  2. Enter cmd. Windows will show the app in the search results.
  3. Click Run as Administrator on the right to open a new elevated command prompt. Alternatively, you can press the Ctrl + Shift + Enter keys on the keyboard.Launch Elevated Command Prompt From Windows Search

Open Command Prompt as Administrator from the Taskbar

If you already have a Command Prompt window open, you can press and hold the Ctrl and Shift keys on the keyboard, and click its icon in the taskbar. This will instantly open a new Command Prompt instance running as Administrator.

Windows 11 Open Command Prompt As Administrator From Taskbar

If you frequently use Command Prompt in Windows 11, you can pin it to the taskbar to access the app with one click. Right-click the running app icon on the taskbar and click "Pin to taskbar."Pin Cmd To Taskbar

After that, you can use the pinned icon to launch Command Prompt as Admin (elevated). Press and hold the Ctrl and Shift keys simultaneously, and click on the pinned cmd.exe icon in the taskbar.

Using File Explorer

The command prompt in Windows 11 is still an executable file, cmd.exe. Thus allows you to run it directly from File Explorer or any other file manager.

  1. Open File Explorer (Win + E).
  2. Navigate to the C:\Windows\system32 folder.
  3. Locate the cmd.exe file, right-click it and select Run as Administrator.Open Command Prompt As Administrator From File Explorer

This will instantly launch it elevated.

A shortcut on the desktop is one more way to open Command Prompt as Administrator.

Always Open Command Prompt as Administrator in Windows 11

  1. Right-click anywhere on the desktop or inside a folder and select New > Shortcut.Create New Shortcut
  2. In the Create shortcut dialog, enter cmd.exe in the "Type the location..." box, and click Next.Create New Command Prompt Shortcut
  3. Name your shortcut as "Command Prompt (Admin)" and click Finish.Name Your Shortcut
  4. Now, right-click the shortcut you have created and select Properties.Select Properties From The Menu
  5. On the Shortcut tab, click the Advanced button.
  6. In the next window, enable the "Run as Administrator" option.Always Run Command Prompt As Administrator In Windows 11
  7. Click OK to save the changes.

That is it. Now you can open Command Prompt as Admin in Windows 11 using the desktop shortcut.

Tip: If you want to pin this elevated shortcut to the taskbar, simply right-click your shortcut and select Show more options, then click Pin to taskbar.Pin Elevated Cmd Shortcut To Taskbar

Always Run Command Prompt as Administrator with Windows Terminal

Make sure you have the latest version of Windows Terminal. You need release 1.13 or newer. To check your current Windows Terminal version, launch the app and enter wt -v. Update Windows Terminal to a more recent version if required.

To always run Command Prompt as Administrator using Windows Terminal, do the following.

  1. Click the button with an arrow-down icon on the tab strip and select Settings. Alternatively, press Ctrl + , (comma).The Settings item in terminal's menu
  2. Click Command Prompt on the left panel. Note: Command Prompt is just an example. You can set any other profile to run with elevated privileges when you launch Terminal.
  3. Find the "Run this profile as Administrator" option and toggle it on.Always Run Command Prompt Elevated In Windows Terminal
  4. Click Save to apply changes.

Now you can set Command Prompt as the default Windows Terminal profile. That will ensure Terminal launches as Command Prompt.

Set Command Prompt as the default Windows Terminal profile

  1. Press Ctrl + , (comma) to go to Windows Terminal Settings.
  2. Click Startup.
  3. Find the Default profile option and change it to Command Prompt (or any other profile you want to run with elevated privileges on launch).Select the default profile in Terminal
  4. Click Save to apply the changes.

One more option

You can edit Windows Terminal settings within the app or its JSON config file. The latter is a more complicated feat.

  1. Open Windows Terminal and press Ctrl + , (comma) to open Settings.
  2. Click Open JSON file.Open JSON file
  3. Find Command Prompt in profiles list.
  4. Add "elevate": true, (don't forget to add comma).Make Command Prompt Run Elevated in JSON file
  5. Save the changes and close Notepad or whatever app you use to edit the file.

And that is how you make Windows Terminal always run Command Prompt as Administrator. Now, regardless of how you launch Terminal (elevated or without Administrative privileges), Command Prompt will run as Administrator. This will be indicated by a small shield icon in the upper left corner of the Terminal window.

The shield icon for the elevated profile

Note that when doing this, Windows will ask you to confirm the launch with User Account Control (UAC).

Add Command Prompt as Administrator to the context menu

Pinning a shortcut to the taskbar is not the only quick way to open an elevated command prompt. You can add Command Prompt to the context menu.

To add Command Prompt as Administrator to the context menu in Windows 11, do the following.

  1. Download the REG files using this link.
  2. Double-click the file Add Open Command Prompt Here As Administrator.reg.Add Elevated Command Prompt Context Menu
  3. Confirm the UAC prompt.
  4. Now, right-click any folder and select Show more options > Open Command Prompt here as administrator.Command Prompt As Administrator Context Menu

The undo file is included in the archive. Double-click on the Remove Open Command Prompt here as administrator.reg to delete the command from the context menu.

You can save your time using Winaero Tweaker. The app allows you to add the elevated PowerShell item to the context menu with a couple of clicks.

Add the elevated Command Prompt context menu with Winaero Tweaker

  1. Download Winaero Tweaker and launch it.
  2. Open the Context Menu section in the left panel of the window.
  3. Click Add Command Prompt as Administrator.
  4. Place a checkmark next to the "Add Command Prompt to the context menu" option.Winaero Tweaker Option
  5. Click Apply changes.
  6. Now open any folder and right-click anywhere. Select Show More options. and see the new item you just added.

Now you know all ways to open Command Prompt as Administrator in Windows 11. Any of those methods will work the same, so you use the most convenient one to you.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.