How to Open CMD as Administrator on Windows 11

Mudin Saiful

Terminal window with a shield illustration for a guide on opening CMD as administrator on Windows 11

Hi everyone, in this guide I will show you how to open CMD as administrator on Windows 11. Command Prompt, or CMD, is the built-in command line window in Windows that you use to run commands, repair the system, and manage your network. Some commands only work when CMD is opened with administrator rights, for example sfc, dism, chkdsk, and netsh. If you open CMD normally, those commands are rejected with an access denied message.

Telling a normal CMD apart from an administrator CMD is actually easy. When it runs as administrator, the window title starts with the word Administrator and the starting folder is C:\Windows\System32. In this tutorial I show the three methods people use most, from the Start menu, to the Windows plus X menu, to creating a shortcut that always opens elevated. Every step was done live on Windows 11 until CMD really ran with full rights.

Before we start, one thing to know is that running CMD as administrator needs an account with administrator rights. If you use a standard account, Windows will ask for an administrator password through the User Account Control window. So make sure you are signed in with the right account for a smooth process.

Open CMD as Administrator from the Start Menu

This first method is the fastest and the most common because you do not need to remember any file location. We simply use the Start menu search box.

Type cmd in the Start menu search

Typing cmd in the Windows 11 Start menu search box and choosing Run as administrator

Press the Windows key on the keyboard or click the Start icon, then type cmd. The top result shows Command Prompt. On the right panel, look at the Actions section, where you will find Run as administrator (number 1). Click it to launch CMD with full rights. A faster alternative is to type cmd and then press Ctrl plus Shift plus Enter on the keyboard, which does the same thing.

Allow it through User Account Control

User Account Control window asking permission to run Command Prompt as administrator

After that, the User Account Control window appears and asks whether you allow this app to make changes. This window is normal and acts as a Windows safeguard. Make sure the app name is Windows Command Processor with the publisher Microsoft Windows, then click Yes (number 1). If you use a standard account, Windows will ask for an administrator password at this step.

The administrator CMD is ready

Command Prompt opened as administrator with the word Administrator in the window title

The Command Prompt window opens. Notice the title now reads Administrator: Command Prompt (number 1), and the starting location is C:\Windows\System32. These two signs confirm that CMD is running as administrator and is ready to run any command without being rejected.

Make sure CMD really is administrator

The whoami command showing High Mandatory Level as proof that CMD runs as administrator

To avoid mistakes, you can check the privilege level with a single command.

whoami /groups | findstr /i High

You can see the line Mandatory Label\High Mandatory Level (number 1). This line means the process is running at a high integrity level, which is administrator. If you see Medium Mandatory Level instead, CMD is still open as a normal user.

Open CMD as Administrator from the Windows plus X Menu

The second method uses a special menu called the Power User menu. It contains shortcuts to various system tools, including a terminal with administrator rights.

Open the Windows plus X menu

The Windows X menu showing the Terminal Admin option on Windows 11

Press Windows plus X together, or right click the Start icon. The menu pops up from the bottom left corner. Look for Terminal (Admin) (number 1) and click it. On older Windows 11 builds this option is called Windows PowerShell (Admin) and works the same way. After clicking, the User Account Control window appears again, so click Yes as before.

Switch to Command Prompt inside Terminal

Windows Terminal running as administrator then typing cmd to switch to Command Prompt

By default, Terminal opens with a PowerShell tab, and the title already reads Administrator (number 1). Since we want CMD, type the command cmd and press Enter (number 2). The view switches to Command Prompt, which keeps the administrator rights inherited from Terminal. So you can run CMD commands right away.

Note: Windows Terminal is an app that hosts several shells at once, namely Command Prompt, PowerShell, and others, in one tabbed window. Opening Terminal as administrator automatically makes every tab inside it run with administrator rights.

Create a CMD Shortcut That Always Opens as Administrator

This third method is handy if you use the administrator CMD often. Instead of repeating the steps above every time, we make one desktop shortcut that always opens elevated with a single click.

Create a new shortcut to cmd.exe

Entering cmd.exe as the location while creating a Command Prompt shortcut on the desktop

Right click an empty spot on the desktop, choose New, then Shortcut. In the location box, type cmd.exe (number 1), then click Next. Windows automatically recognizes that this file lives in the System32 folder.

Name the shortcut

Naming the new Command Prompt shortcut CMD Admin

Next you are asked to name the shortcut. The name is up to you, but to keep it recognizable I named it CMD Admin (number 1). When done, click Finish. A new shortcut icon appears on the desktop.

Open Properties and go to Advanced

The Properties window of the CMD Admin shortcut with the Advanced button

Right click the new shortcut, then choose Properties. On the Shortcut tab, the Target field already contains C:\Windows\System32\cmd.exe. Click the Advanced button at the bottom (number 1) to open the extra settings.

Tick Run as administrator

Ticking the Run as administrator option in the shortcut Advanced Properties

In the Advanced Properties window, tick the Run as administrator option (number 1), then click OK. Back in the Properties window, click OK again to save. From now on, every time this shortcut opens, CMD will launch as administrator after you approve UAC, without needing to right click Run as administrator again.

My experience: In my experience, this third method saves the most time if your daily work often touches system commands. Once the shortcut is created, its icon gets a small shield badge that marks it as always requesting administrator rights.

Common Problems and How to Fix Them

Run as administrator does not appear or cannot be clicked

This usually happens because you are signed in with a standard account instead of an administrator. A standard account can still run the administrator CMD, but Windows will ask for an administrator password in the User Account Control window. Ask the administrator account owner for the password, or switch to an account that has administrator rights.

The Yes button in UAC is not active

If the Yes button is greyed out and cannot be clicked, the computer may have no usable administrator account, or a group policy restricts it. Make sure at least one administrator account is active. On office or school computers, this right is often locked by the network admin.

Terminal opens PowerShell instead of CMD

This is normal. Terminal opens PowerShell as its default shell. Just like in the second method, simply type cmd and press Enter to switch to Command Prompt. The administrator rights carry over, so there is no need to reopen anything.

The shortcut does not show the shield badge

If the shortcut icon does not show the shield badge after you tick Run as administrator, press F5 on the desktop to refresh the view. If it still does not appear, open Properties again and make sure the Run as administrator tick was actually saved.

That is all, now you have three ways to open CMD as administrator on Windows 11, so just pick the one you find most comfortable. You will often need the administrator CMD when running system repair commands, for example when following the guide on repairing Windows 11 with SFC and DISM, where every command must run with administrator rights. Besides system repairs, CMD can also be used to shut down a laptop or PC automatically with the shutdown command. If you run into an error while following the steps above, write the error message in the comments.

Leave a Comment