Open the command line with administrator rights. How to open a command prompt as administrator in the desired folder. Opening Command Prompt as Administrator from Start Menu

To begin with, as a general information, I will explain how to open command prompt as administrator... It's simple: search for cmd in "Start" → open the context menu → click on "Run as administrator". Pictures below.

In Windows 8, the command line is also searched, and the instruction takes into account touch screens.

Opening a command prompt in the desired folder

We open the command line to execute any command. When a program or script is outside a known location (they are listed in the PATH variable), you have to enter the full path to it. Running the command line in the desired folder saves time on entering the path.

The easiest way to launch the command line in the current folder is to go to the address bar of the explorer, enter cmd and press Enter!

For mouse enthusiasts, there are context menus.

Context menus in Windows 7, 8 / 8.1, and 10 prior to version 1703

In these operating systems, it is enough to click on the folder or inside it with the right mouse button while holding down the Shift key, so that the "Open command window" item appears in the context menu.

As you can see in the picture above, the command line immediately opens in the desired folder.

Context menus in Windows 10 1703 and newer

In version 1703, Microsoft decided to promote PowerShell and brought this console instead of CMD to the context menu. You can open PowerShell and type cmd... You can add a separate item for the command line with a registry tweak - download.

Opening a command prompt with administrator rights in the desired folder

The Command Line is an administrative tool, and many of the tasks it performs require full administrator rights. If UAC is disabled (although it's not that scary at all), Command Prompt is immediately launched with full rights.

But for those who are accustomed to controlling the behavior of the system, the above method is often useless, since they open a command line with the rights of an ordinary user.

Windows 8 and Windows 10 prior to version 1703

Starting with Windows 8, launching the console as an administrator is built into Explorer, and the task can be launched with a keyboard shortcut. This eliminates the need to use the context menu, although the method described below will work too.

In Windows 10 1703, Microsoft removed the command prompt from the File menu, leaving only PowerShell. Again, you can open PowerShell and type cmd.

Windows 7 and newer

This method works on all supported Microsoft operating systems. I have prepared a set of files with which you can instantly create in the context menu of a folder, folder background (including desktop) and disk the item "Open command window as administrator" with the user account control icon.

Moreover, when calling the context menu, you do not need to hold down the Shift key to see this item. It is very easy to add such an item to the menu.

  1. Download and unzip this archive anywhere.
  2. Right click on the file ElevateCommand.inf, select command Install and agree to install.
  3. Do the same with the file CmdHereAsAdmin.inf.

Done! If you want to remove this item, open Start - Search - The installing and deleting of programms and uninstall both PowerToy programs.

These files are from the Elevation PowerToys, in which I already mentioned in the story about UAC. I just selected the files I needed, translated it into Russian, added an icon to the menu and modified the display of the menu item.

Menu item setting

If you want to change the item name and / or icon, drag the file into Notepad CmdHereAsAdmin.inf and edit the last two lines.

You can make it so that to display the "Open command window as administrator" item, you have to hold down the Shift key when calling the context menu, as is done with a standard command line call. For this in the section "Uncomment" the commands that follow my comments by removing the semicolon ( ; ) at the beginning of the line.

After making the changes, just install the file again CmdHereAsAdmin.inf.

Running Command Prompt as administrator on Windows in elevated mode is not a difficult task. Some useful commands require execution with these privileges. If you open them normally, then, most likely, you will see an error message.

It is advisable to have administrative access to Windows or know the admin password. When you try to invoke cmd as a limited user, then a UAC window will open. Here you must enter the administrator password in the form, if entered correctly, you will launch a command line with administrator capabilities.

How do I know which mode the console is open in? Look at the name of the window, if it says "Administrator", then you have done everything correctly and you can safely start writing commands.

There are many ways to launch the console as an administrator, and they are almost identical in different versions of Windows. All methods can be used equally.

Open a command prompt with administrator privileges on Windows 7

Check out the process and find a convenient way to start cmd. For example, consider the fast path:

1. Click start.

2. In the search put the inscription "command line".

3. Wait for the list to build. Place the mouse cursor on the very first object and right-click.

4. A menu will pop up, in it select the line "run as administrator".

5. If User Account Control is enabled, click yes.

Note: enter the admin password if you see the input field, and then click "yes".

Run cmd on Windows 8 with administrator rights

1. Press the start button.

2. Move to the right until it stops.

3. Click on the magnifying glass icon.

4. In the form, enter cmd.

5. Right-click on the "command line" object.

6. In the menu, click Run as administrator, as in the screenshot.

7. In the User Account Control window, click "yes".

Like all modern operating systems, XP also has this function. Follow the steps on the links and recommendations above.

As you can see, not many actions need to be done to run the command line as administrator. With these rights, you will run any prescribed command in cmd. For example, this way you will have the opportunity to easily and quickly and not only.

Hello my curious readers!

Today, in our article, we will talk about the command line (cmd.exe) in Windows 10. The command line allows you to perform a variety of tasks that are not always possible to perform through the graphical interface. And when working in cmd, elevated rights can often be required. Now we will find out 8 ways how to open cmd with administrator rights in Windows 10... This does not mean that these methods will not work on other versions of Windows. I personally tested all the methods described below to open cmd with administrator privileges on Windows 10 and they are completely working. If you have Windows 7 or 8, then check them on your system.

So let's go!

1. Launching cmd from the Start context menu

Click on Start with the right mouse button or press the Win + X combination, and the keys are faster, I guarantee this;) A context menu will appear, in which we select the item Command Line (Admin)... Done!

2. Through the task manager

If you have the Task Manager running, you can open cmd directly from it. To do this, go to the menu File -> Start a new task.

Enter cmd and check the box just below Create a task with administrator rights... And then OK.

3. Through the task manager (tricky way)

The third method is very similar to the second, but a little faster and less well-known.

The beginning is the same, that is, in the Task Manager, select File -\u003e Start a new task, but when you click on this item, hold down the key Ctrl... In this case, cmd is immediately launched in administrator mode, without further ado.

4. Launch cmd from Windows 10 search

Press the Win + S combination or aim with the left mouse button at the magnifying glass icon to the right of the Start button. In the search field, you can enter either in English ‘ cmd‘Or in Russian enter the first 5-6 letters of the name’ Command line‘. Then right-click on the search result, select Run as administrator.

5. Run cmd from the All Applications menu

Open Start, click on All Applications and find the System Tools - Windows item. Usually it is hidden at the very bottom, so scroll with the mouse wheel to the very end.

So, we found the Utilities group, opened the list of programs inside and found the Command Line. Right-click on it, then Advanced, then Run as administrator.

6. Run from the system directory Windows \\ System32

You can run the command line directly from its system32 home folder. To do this, go to Explorer / My Computer, find the C drive, look for windows folder, go there, find the System32 folder, go deeper and deeper into the rabbit hole, go into it. In the System32 folder we are looking for the file cmd.exe... We select it. And then there are two options.

The fastest and easiest: right-click on cmd.exe and select the one we already know Run as administrator.

Another option takes a little more time. When you select a file, the words Application Tools appear at the top. Click there with the left mouse button, another menu pops out from below, click on Run as administrator.

7. Run cmd from any folder in Explorer

This option for opening the command line is available from any folder in Windows 10 Explorer. Go to the location you need, go to the File menu -\u003e Open command line -\u003e Open command prompt as administrator.

8. Create an admin shortcut for cmd.exe

For quick access to the admin command line, do the following.

On the desktop, in an empty space, right-click, select New -\u003e Shortcut.

Enter cmd or cmd.exe, both will work. Further.

Name the shortcut so that it is immediately clear, for example, cmd.exe (admin). Done.

The shortcut has been created, but not configured yet. Go to its properties (right-click on the shortcut and select Properties). Click the Advanced button ...

... and tick the Run as administrator box. We save the whole thing and now we can always run the cmd command line with administrator rights by simply running the shortcut.

But you can speed up the launch even more;)

Right-click on the shortcut and select Pin to taskbar. Or Pin to home screen as an option.

I described here exactly the options that allow you to run the command line with admin privileges. There are still ways to launch, but they are as an ordinary user, which does not fit into the topic of this article. For example, via Win + R or hold Shift while right-clicking on the application.

As you can see, the same action in Windows can be performed different ways... Depending on the current specific situation, I can choose the most appropriate option for launching cmd.

Were all these methods familiar to you? Or some of them were new?) Tell us in the comments.

To perform administrative tasks, it is sometimes required to run the command line as administrator. Unlike previous versions, Windows 10 has many more ways to do this. How to run command prompt as windows 10 administrator?

6 ways to open CMD with Windows administrator rights

Let's consider all the options:

  1. Run cmd as administrator with the Win + X keyboard shortcut;
  2. Calling the command line through Windows 10 search;
  3. Opening a windows 10 command line shortcut with administrator rights;
  4. Executing the command line through System-Windows;
  5. Calling the Windows 10 command line through the "Task Manager";
  6. Opening cmd from explorer.

Run cmd as administrator with the Win + X keyboard shortcut

Press the key combination Win + X, select "Command line (administrator)".

Calling the command line through Windows 10 search

To call the command line, move the mouse over the search button, enter "CMD", press the right mouse button - "Run as administrator".

Opening a windows 10 command line shortcut with administrator rights

On the desktop, create a shortcut according to the methods described in the article about the usual launch of the command line in Windows 10. Next, press the right mouse button and select "Run as administrator".

Executing the command line via System-Windows

To execute the command line, open the Start menu - Windows Service - Command Line, then right-click "Advanced" - "Run as administrator".

Calling the Windows 10 command line through the "Task Manager"

To call the command line in the "Task Manager" open the "File" tab, the "Start a new task" item, in the window that opens, enter "CMD", check the "Create task with administrator rights" checkbox and press the "Ok" button.

Opening cmd from Windows Explorer

The advantage of this method is that the path in the opened "cmd" window will correspond to the path to the folder. Opening the command line from the Explorer menu: "File" - "Open command line" - "Open command line as Administrator".

Epilogue on how to open Cmd

As you can see, there are more ways to open the command line in Windows 10, and it is difficult to highlight or choose definitely some convenient option. Each method is somewhat interesting, so it's up to you, dear users. Do not forget to write a comment on the post and like it if the material was useful to you!

In Windows 8, as in previous versions of Windows, a number of system administration and management tasks are performed through the command line interface ( cmd.exe). However, as in previous versions of Windows, a number of these tasks require administrator rights to be performed. In this article, we will talk about how open command prompt with ... Due to the fact that Microsoft has slightly altered the interface of this operating system, this procedure will be slightly different from the one we are used to in Windows 7 (there is no menu Start). The problem is that when you right-click on a program shortcut on the Metro start screen, the “ Runasadministrator”Does not appear.

In Windows 8, there are several ways to launch the command prompt using administrator rights:

  1. From the start screen
  2. From the Explorer menu
  3. Using the task manager
  4. Using the Win + X menu

Let's describe each of these ways to open the command line with admin rights in Win8 in more detail.

Opening the command line from the Metro UI

In the "Search" line of the Windows 8 Metro UI, you need to type cmd" (or "command prompt ”) , as a result, the found application will be displayed in the left pane. Then you need to right-click on the shortcut that appears and a line with additional launch options will appear at the bottom of the screen. Please select "Run as administrator"

All the same can be done by highlighting the found application and pressing the combination on the keyboard Ctrl + Shift + Enter.

Running command line from explorer

Open a Windows Explorer window by pressing the keyboard shortcut Win +E... In the left window select the item My computer, and on the right is a disk C: \\... Then from the top menu select File-\u003eOpencommandprompt -\u003eOpencommandpromptasadministrator (Open command prompt as administrator).

Launch Command Prompt from Task Manager

Open Windows 8 Task Manager by pressing the keyboard shortcut Ctrl + Shift + Esc. Then you need to create a new task by selecting the menu item "File -\u003e Run New Task" ("File -\u003e New Task (Run)"), type in the window that appears cmd, check the box « Run the task with Administrator privileges "(" Create this task with administrative privileges. ") And click OK.

Launch from the Win + X shortcut menu

You can also open an elevated command prompt window from the Quick Launch menu by pressing Win +X... In the menu that appears, select the "Command Prompt (Admin)" item.

Here are some ways to run the command prompt with administrator rights in Windows 8 we managed to find. Suggest your options in the comments 🙂.