Как воспользоваться командной строкой с повышенными привилегиями windows 10

A lot of the fixes and tweaks featured on the web will require you to open a Command Prompt window as an administrator. This can be confusing for non-technical persons because a lot of articles don’t mention the actual steps of opening an elevated Command Prompt.

Most of the time, opening a Command Prompt window as a regular user is more than enough. But there are some situations where you’ll need administrative privileges – you will be required to perform certain actions in an elevated Command Prompt window.

What is an elevated command prompt?

The elevated Command Prompt mode was introduced with Windows Vista and has been an integral part of this OS up until Windows 11. In an attempt o protect the user from those potentially harmful commands, Microsoft restricted the functionality of some commands to the elevated mode only. This means that some commands will only work as long as you run them from an elevated Command Prompt.

Note: You can easily distinguish between a normal Command Prompt window and an elevated one by looking at the starting point. The Elevated Command Prompt starts in the System32 folder while the normal Command Prompt window starts in the User Profile folder.

As with most Windows-related things, you can open an elevated Command Prompt in several different ways. While most of the methods featured in this article can be replicated on the older Windows versions, keep in mind that this article was tailored specifically for Windows 10 and Windows 11.

Here’s a list of different methods that can be used to open an elevated Command Prompt on the latest operating systems released by Microsoft.

Note: Keep in mind that not all methods will work on both Windows 10 or Windows 11. Pay attention to the label under each method to see if it’s compatible with your Windows version.

Open an elevated Command Prompt via the Start menu

Works on Windows 10 & Windows 11.

This is the standard approach that most people use on every Windows version. It’s arguably the longest route but can be considered the most simple method since all the steps are done through the user interface.

Here’s a quick guide to opening an elevated Command Prompt via the Start menu:

  1. Click the Start menu in the bottom left corner. You can also press the Windows key for the same result.
  2. With the start menu opened, type “cmd” to automatically use the search function. Wait until the search results are generated, then right-click on Command Prompt and choose Run as Administrator.

    Note: You can also use the Ctrl + Shift + Enter keyboard combination if you want o to avoid right-clicking.

This is the classic approach. If you’re looking for a quicker way, move to the other methods below.

Open an Elevated Command Prompt via the Power User Menu

Only works on Windows 10. 

If you’re on Windows 10, you can open an Elevated Command Prompt directly from the Power User Menu.

Note: Keep in mind that the Command Prompt (Admin) sub-menu is no longer available on Windows 11.

To access the Power User Menu, right-click on the Start icon or press Windows key + X. Then, simply click on Command Prompt (Admin) to open an Elevated Command Prompt. You will then be asked to confirm the administrative permissions via a User Account Control (UAC) window – hit Yes at the prompt to open the Elevated Command Prompt.

Update: Update Keep in mind that if you have updated your Windows 10 version with the Creators Update, you will see Windows Powershell (Admin) instead of Command Prompt (Admin). This change was implemented by Microsoft in order to tempt more users to migrate to Powershell. On Windows 11, the equivalent is Windows Terminal (Admin).

Note: If you want the old behavior back on Windows 10, you can follow this article (here) to replace the Windows Powershell (Admin) with Command Prompt.

But you can also click on Windows Powershell (Admin) and then type “cmd” inside the Elevated Powershell window to switch to an Elevated Command Prompt window.

Use the Run box to open an Elevated Command Prompt

Works on Windows 10 & Windows 11.

Another way to go around opening an Elevated Command Prompt window is to make use of the run box. Normally, opening Command Prompt from the Run box will not have administrative privileges, but we have a workaround for this.

To open an Elevated Command Prompt window via the Run box, press Windows key + R to bring up the Run menu. Then, type ” cmd ” but instead of pressing Enter directly, press Ctrl + Shift + Enter to open it with administrative privileges. You’ll then be prompted by a UAC (User Account Control) window in which you’ll have to hit Yes.

Create an elevated Command Prompt shortcut 

Works on Windows 10 & Windows 11. 

If you find yourself running Command Prompt command that requires administrative privileges, it makes sense to create a dedicated shortcut for an Elevated Command Prompt. This is arguably the most efficient way of opening an Elevated Command Prompt window, but it requires some time setting it up.

Here’s a quick guide to creating a shortcut for an Elevated Command Prompt:

  1. Right-click anywhere on a free space (on the desktop or in a folder) and choose New >  Shortcut.

    Note: Right-clicking on Windows 11 will bring up the newer, slimmer context menu. Click on Show More Options to make the old menu visible.

    Show More Options on Windows 11
  2. In the box directly under “Type the location of the item” type ” CMD ” and hit the Next button.

  3. At the next button, grant the newly created shortcut a name and hit the Finish button to finish the process.

  4. Next, right-click on the newly created shortcut and choose Properties. Then, go to the Shortcut tab, and click the Advanced button.

  5. In the Advanced Properties window, check the box next to Run as administrator and hit OK. Finally, click on Apply to save the changes.

Open a CMD Prompt using the Quick Link Menu

Only works on Windows 11. 

  1. Press Windows key + X key to open up the Quick Link menu on Windows 11.
  2. From the list of available options, click on Windows Terminal (Admin).
    Accessing the Windows Terminal app on Windows 11

    Note: This is the newer terminal app available with Windows 11. It allows you to input both CMD and Powershell commands.

That’s it. Your Elevated Command Prompt window is configured and ready to be used. But keep in mind that even if you set it to run with administrative privileges, you’ll still be prompted by the UAC window.

Run CMD Commands from the Terminal App via Search

Only works on Windows 11. 

  1. Press Windows key + S key to open up the Windows Search functionality on Windows 11.
  2. In the search box that just appeared, type Windows Terminal.
  3. Next, right-click on Windows Terminal from the list of results and click on Run as Administrator from the context menu.

    Run the Windows Terminal app with admin access
  4. Run the CMD commands inside the newly opened Windows Terminal app.

Run CMD commands in Windows Terminal opened via Task Manager

Only works on Windows 11. 

  1. Press Ctrl + Shift + Esc to open up Task Manager.
  2. Once you’re inside the Task Manager, click on More details if the simple interface just opened.
    Expanding the Task Bar interface

    Note: If you are already on the regular interface, skip this step altogether.

  3. next, click on File from the ribbon menu at the top, then click on Run New Task.

    Running a new task
  4. Inside the Create new task box that just appeared, type ‘wt’ and then check the box associated with Create this task with administrative privileges before clicking Ok.
    Creating a new task
  5. Once you’re inside the Windows Terminal interface, you can input your CMD commands.

Run CMD commands in Windows Terminal opened via Run box

Only works on Windows 11.

  1. Press Windows key + R to open up a Run dialog box.
  2. Inside the newly appeared Run box, type ‘wt’ and press Ctrl + Shift + Enter to open up a Windows Terminal app with admin privileges.

    Open up a Windows Terminal app
  3. Inside the elevated Windows Terminal, type the CMD commands as you would usually do.

open command prompt as administrator

Sometimes we need to open Command Prompt as an administrator to get certain information about the computer or change some settings. This page shows you four simple and quick ways to open Command Prompt as an administrator in Windows 10.

  • Way 1: Using the Search box
  • Way 2: Using the Win+X menu
  • Way 3: Using the Run dialog box
  • Way 4: Using Task Manager

Way 1: Using the search box

1. Click in the “Type here to search” box next to the Start (Windows) icon or press Win + S to bring up the search box.

2. Type cmd (or command prompt) in the search box.

3. The Command Prompt shortcut will appear in the search results. Right-click it and select Run as administrator. Or, you can directly click Run as administrator on the right panel.

4. If a User Account Control dialog pops up, click Yes to allow the Command Prompt to run as administrator.

Way 2: Using Win+X menu

Right-click the Windows icon on the left of the taskbar or press Windows key + X to bring up the Win+X menu (also called Power Users Menu). Then simply select Command Prompt (Admin) from the Win+X menu.

Tips: Starting with Windows 10 Creators Update, the Win+X menu does not contain Command Prompt by default, and instead is replaced by Windows PowerShell. If you want Command Prompt back to the Win+X menu, just go to Settings to replace Windows PowerShell with Command Prompt.

Way 3: Using Run dialog box

1. Press Win + R to quickly bring up the Run dialog box.

2. Type cmd in the box, and then press Ctrl + Shift + Enter on your keyboard. This will run Command Prompt as administrator.

Way 4: Using Task Manager

The former three are the easiest and fastest way to open Command Prompt as an administrator in Windows 10. Next, I will introduce another less common but useful method – using Task Manager.

1. Right-click the taskbar and select Task Manager to open Task Manager.

2. On Task Manager, click File > Run new task.

3. In the “Create new task” dialog that opens, type cmd in the box, check “Create this task with administrative privileges“, and then press Enter. This will run Command Prompt as administrator.

Using the instructions here you will have the ability to open Command Prompt as administrator in Windows 10 from Start, Search, Run, taskmgr, PowerShell, and more. This application allows running commands that help you fix multiple issues, change settings, and access different files. When you stuck in anything on Windows 10 the first tool you remember is CMD. Administrative authority makes you capable to run a task in elevated mode.

We already discussed How to Launch Elevated Command Prompt on Windows 10 but now some additional ways are available for the same. So here we have come with a collection of all methods to open cmd with admin rights.

How to Open Command Prompt as Administrator in Windows 10

Here are 12 Ways to Open Command Prompt as Administrator in Windows 10 –

1] Quickest and easiest way to run cmd as admin

Step-1: Click on the Start icon.

Step-2: Type cmd.

Step-3: Press ctrl+shift+enter on keyboard.

Step-4: Once User Account Control (UAC) dialog appears, select Yes.

2] Open command prompt as administrator from Run dialog

  1. Press Win+R and let the Run dialog box appear.
  2. Write down either cmd or cmd.exe in the empty text field onward to Open.
  3. Press ctrl, shift, and enter simultaneously.
  1. Click Yes when a UAC dialog prompts to seek permission.

3] Take the help of Windows search bar

  1. Press Windows and S keys.
  2. Type “cmd”
  3. Click – Run as administrator.
  1. A UAC will prompt up for authentication; choose Yes.

4] Open Command Prompt as Administrator in Windows 10 Via Win+X menu

In the recent versions of Windows 10, you notice rather Windows PowerShell (Admin) in the Power user menu (Win+X). But for launching easily, you can replace it with Command Prompt (Admin) via a small tweak in Settings. This will help you to open cmd with administrative privilege in only 2 clicks. Here’s how –

  1. Open Windows Settings  (by pressing Win and I).
  2. Select Personalization.
  1. Select Taskbar from the left-pane and then shift to the right.
  2. Toggle on the option – “Replace Command Prompt with Windows PowerShell in the menu when I right-click the Start button or press Windows Key+X”.
  1. From now onward, whenever you will open the Power user menu, you will view Command Prompt (Admin) in the list.
  2. Simply press Win+X and choose the same.

5] Open command prompt as administrator by means of Task Manager

Important – Before proceeding forward, make sure that you have signed in as administrator.

  1. Right-click on the Taskbar and select Task Manager or directly press “Ctrl+Alt+Esc”.
  2. From the menu bar, click on File option.
  3. Press and hold the Ctrl key and at the same time click Run new task.
  1. It will right away open cmd as admin.

6] Again using Task Manager

  1. Open Task Manager using the method given in the previous way.
  2. Click on File from the uppermost menu bar and choose Run new task.
  3. Type either cmd.exe or cmd the provided space and check the box for “Create this task with administrative privileges”.
  4. Click – OK.

7] Through Start menu

  1. Press Windows key to bring up the Start menu
  2. Click on # from the top.
  1. Select W alphabet from the list.
  1. Click Windows System from here and to expand its options.
  2. Right-click on Command Prompt, move the cursor over “More”
  3. Then choose – “Run as administrator”.
  1. When you see a User Account Control popup, click the Yes to give consent.

8] Switch PowerShell to Command Prompt

  1. Press “Win+X” hotkey and select “Windows PowerShell (Admin)” from the Power user menu.
  1. When the User Account Control shows up in the display, click the Yes button to allow it.
  2. In the “Administrator: Windows PowerShell”, type cmd after PS C:\WINDOWS\system32> and hit the Enter key.
  1. This will immediately switch the PowerShell utility to Command prompt.

9] Open Command Prompt as Administrator in Windows 10 From System32 Directory

  1. Press – Win+E.
  2. Select This PC in Quick access and then Perform a double click on “(C:)” (we assume that this is your system drive).
  1. Double click –  Windows folder.
  1. From the next window, locate System32 and double-click on the same to enter it.
  1. Once this directory appears, find cmd.exe.
  2. Right click on the same and opt Run as administrator from the list.
  1. Finally, hit the Yes button once the UAC arrives.
  2. Alternatively, to get access to the location you may copy-paste “C:\Windows\System32” into the Run dialog box and hit Enter.

10] Via Run command

  1. Press Win+R.
  2. Paste C:\Windows\System32\cmd.exe in Run dialog
  3. Hit  – ‘ctrl+shift+enter’.
  1. Choose Yes when User account control prompt appears.

11] Create Desktop shortcut

  1. Right-click on the desktop.
  2. and move cursor on New and select Shortcut.
  1. A wizard entitled Create Shortcut will show up.
  2. Copy C:\Windows\System32\cmd.exe paste into the given area
  3. Click Next.
  1. Provide a name for this shortcut.
  2. Click on Finish.
  1. You will notice a new shortcut for the “CMD” on the desktop. Right-click on the same and select Properties.
  1. In the Shortcut tab, move down to the bottom and click the Advanced button.
  1. Mark – Run as administrator
  2. Hit the – OK.
  1. Finally, click on Apply and thereafter OK button to save the changes.
  1. In future, whenever you need to open command prompt as administrator, just double-click on the shortcut.

12] Assign a shortcut key to open cmd as admin

  1. Follow the previous method to create a shortcut key of Command Prompt and give it administrative authority.
  2. Right-click on the desktop shortcut and select – Properties.
  3. Go to Shortcut key area and click on the box located beside it.
  4. Now, press your preferred key from the keyboard. When you will type C and the system automatically generated a shortcut key Ctrl+Alt+C.
  5. Lastly, click on Apply and then OK to make the changes effective.
  1. To open cmd as admin, you just require hitting the shortcut key you just created.

Methods:
1] Quickest and easiest way to run cmd as admin
2] From Run dialog
3] Take the help of Windows search bar
4] Via Win+X menu
5] By means of Task Manager
6] Again using Task Manager
7] Through Start menu
8] Switch PowerShell to Command Prompt
9] From System32 Directory
10] Via Run command
11] Create Desktop shortcut
12] Assign a shortcut key

That’s all!!

The Command Prompt is a powerful tool in Windows that lets you run commands to manage files, troubleshoot problems, and control system settings. But some commands require administrator access to work properly. Opening the Command Prompt as an administrator—often called “elevated mode” gives you full control to perform advanced tasks on your computer.

In this guide, we will discuss quick and easy ways to open the Command Prompt with administrator rights on your Windows 10 and 11.

Method 1: Using Windows Search (Windows 10 & Windows 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open the Start Menu and Type «CMD»

Press the Windows Key or Click on the Start Menu and Type Command Prompt or CMD and proceed ahead.

command-prompt---start-menu

Open Command Prompt

Step 2: Select «Run as Administrator»

Right-click on «Command Prompt» and select «Run as administrator».

Run-CMD-as-an-Administrator-Using-Windows-Search

Run CMD as Admin

Method 2: Run Dialog Box (Win 10 & 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open Dialog Box or Press Win + R

First, press the Windows key + R to open the Run dialog. Now, type «CMD» or Command prompt

run-dialogue-box---cmd

Run Dialogue (Win + R)

Step 2: Hold down Ctrl + Shift to enter Admin Mode

Press Ctrl + Shift + Enter or click «OK» while holding Ctrl + Shift.

Run-CMD-as-an-Administrator-Using-the-Run-Dialog

Use Dialog Box

You might be asked to enter admin password. Provide the same & proceed with the Command Prompt administrator rights.

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open Power User Menu

Go to Start Button or press Win + X

Win + X

Step 2: Select Admin

Now, click on «Terminal (Admin)» from the menu.

Run-CMD-as-an-Administrator-via-the-Quick-Access-Menu

Use Terminal

Step 3: Hover and click to visit Command Prompt

Then, Click on the arrow from the menu and Select «Command Prompt«

Run-CMD-as-an-Administrator-via-the-Quick-Access-Menu-1

Select Command Prompt

By following this method, anyone can open command prompt using these 3 simple steps.

Note: This method is suitable forWindows 11

Step 1: Type Windows Tools in the search box

Click on the Start menu and type Windows Tools

Step 2: Click to Open as Administrator

Make a right click and select «Run as Administrator»

Open-Command-Prompt-As-Administrator-using-Windows-Tools

Windows Tools

Method 5: Using Task Manager (Win 10 & Win 11)

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open Task Manager and click to Run New Task

Click the Start Menu and type «Task Manager»

Step 2: Create a New Task to Run CMD with Administrative Rights

Create a new task in the File menu and select Run New Task. Check «Create this task with administrative privileges», and click OK.

Run-CMD-as-an-Administrator-Using-Task-Manager

Using Task Manager

Method 6: Use Control Panel (Windows 11)

Note: This method is suitable for Windows 11

Ypu can use Windows Control Panel to open Command Prompt with admin rights, here’s what you need to do:

Step 1: Press Win + R and type Control Panel

Now, on the Control Panel Search bar type «Windows Tools» and click on it.

Run-CMD-as-an-Administrator-Using-the-Control-Panel

Use Control Panel

Step 2: Click to Run as Administrator

Right-click on the Command Prompt and Click Run as administrator.

Open-Command-Prompt-As-Administrator-using-Windows-Tools

Run as Admin

Method 7: Windows File Explorer

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open File Explorer

Open File Explorer or press Win + E and type CMD

Step 2: Select «Run as Administrator»

Make a right-click and select «Run as admin»

Run-CMD-as-an-Administrator-Through-File-Explorer

Through File Explorer

Method 8: Using Desktop Shortcut

Note: This method is suitable for both Windows 10 and Windows 11

Step 1: Open File Explorer

Press Win + E and type Command Prompt or CMD

Step 2: Show more options > Create Shortcut

Press Win + D to get the desktop then right-click CMD then from the menu select «Properties» and then navigate to the «Shortcut» tab

Step 3: Create your custom shortcut

In the Shortcut key field, press a key combination of your choice.

Run-CMD-as-an-Administrator-Using-a-Desktop-Shortcut

Desktop Shortcut

Why Open Command Prompt as Administrator

The Command Prompt or CMD is a powerful tool for performing various system tasks. Running it as an administrator grants you admin access to:

  • Modify System Settings
  • Run Admin commands like sfc /scannow i.e. system scans
  • Manage User Accounts
  • Access and edit restricted files

Without administrator access, many essential commands will not work, so knowing how to open it with admin access is critical for users who manage system settings, developers, or anyone performing any troubleshooting related tasks.

Conclusion

Understanding how to open the Command Prompt as Administrator is essential for both casual users and power users. Whether you’re managing system configurations, running scans, or troubleshooting issues, knowing how to run CMD with elevated privileges will enhance your ability to manage your system effectively.

In my articles, you often see instructions to open the command prompt as admin. In Windows 10 also, you will need to use it from time to time, so I would like to share with you the various ways to open an elevated command prompt. Let’s explore them right now.

Before you start reading, I strongly recommend you to see my previous article, «Do you know all these ways to open an elevated command prompt in Windows?». It covers all the possible ways to open an elevated command prompt in previous versions of Windows. Many of the tricks from that article still work in Windows 10.

This way is very handy in Windows 10. Starting with Windows 8, Microsoft has implemented the Power Users menu, which contains many useful items like Control Panel, Network Connections and so on. Windows 10 also comes with such a menu. It contains the Command Prompt (Admin) item which is exactly what we need.

To access this menu in Windows 10, press Win + X shortcut keys together on the keyboard.

Tip: You can customize the Win+X menu with our freeware tool called Win+X Menu Editor. Check it out.

Update: This option has been removed in Windows 10 Creators Update. See the following article to learn about this change in detail: Windows 10 build 14986 replaces Command Prompt with PowerShell everywhere. To restore the command prompt in the Win +  X menu, see this tutorial: Add Command Prompt back to Win+X Menu in Windows 10 Creators Update.

In Windows 10, you can use the search box inside the Start menu. Type cmd there and press CTRL + SHIFT + ENTER to launch the command prompt elevated. This also works on the Start screen.

Launch an elevated command prompt instance from a non-elevated one

You can launch an elevated instance of the command prompt from a non-elevated one. You might wonder why you would need to do this. Let me show you with an example scenario.
Whenever you press the SHIFT key and hold it and then right click on a folder in Explorer, you get the usual «Open command window here» menu item.

Open Command Window Here

This is very handy, you just opened a command window at the path you wanted. Now what if you need an elevated command prompt at that path? Command Prompt does not provide any way to open an elevated command window at the same path.

Update: The context menu option has been removed in Windows 10 Creators Update. You can restore it as follows:

Add Command Prompt to Context Menu in Windows 10 Creators Update

To resolve this issue and improve usability, you can use a little application I coded called ELE. It is able to reopen an already opened command prompt as administrator and keeps the current path.

Usage of ELE:
Simply typing ele — opens a new console window as administrator in the current directory.
ele /x — opens a new console window in the current directory and closes the original console window. If ELE is started from a file manager, it just opens a new elevated console at the current path.

ele

Copy-paste ele.exe in any folder which is included in your system %PATH% environment variable, e.g. C:\Windows or C:\Windows\system32. That will make it accessible from any folder and you won’t need to type the full path to ele.exe every time you want to elevate the command prompt.

That’s it!

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!

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как на мак установить windows 10 второй системой
  • Bluetooth tweaker windows 10 4pda
  • Перезапуск службы времени windows 7
  • Windows mise a jour
  • C programdata microsoft windows devicemetadatastore