Running cmd as administrator: some simple ways

The command line (cmd), as you know, is a very powerful tool that not only allows you to use some undocumented features of the operating system, but also fix many errors if Windows crashes or does not even load. However, to perform some actions, the console must be run exclusively with administrator rights. How to run cmd with administrator privileges will be discussed later. For familiarization, several methods are proposed, each of which is in its own way convenient for various situations.

CMD: run as administrator by the classic method

Most Windows users are accustomed to launching the command console using the well-known method, which consists in first invoking the Run menu (Win + R) and then entering the desired cmd abbreviation in its field. But this is a normal start, and not with administrator rights, although in some Windows assemblies in the Run console just below the command entry field you can observe the start point with administrator rights.

Starting the command console from the Start menu

In principle, in different systems, you can use the start menu. To do this, in the "Start" menu you need to select standard programs, and open the command line through RMB, selecting the desired start type.

Run cmd from the start menu

On Windows 10, running cmd as an administrator is even easier. As a rule, in "clean" systems immediately after installation, in the PCM menu on the "Start" button, you can find two cmd launch lines: normal and with administrator rights, which should be used.

Using the Task Manager

No less common, albeit longer time-consuming method, cmd is launched as administrator from the standard "Task Manager", which is called either by three-finger combinations, or from the "Run" console by the taskmgr command.

Running cmd from Task Manager

In the dispatcher window, through the file menu, you must specify the creation of a new task, enter cmd in the execution field and mark the creation item with administrator rights.

Running cmd through a search engine (Windows 10)

The tenth version of the Windows operating system is, in a sense, unique in that it has simplified access to some system tools, although it also could have done without unforeseen difficulties.

Nevertheless, it is in this modification of Windows that cmd can also be launched through a search engine. To do this, use RMB on the "Start" button, select a search, enter "Command Line" in the field (naturally, without quotation marks), and on the displayed result, again, through RMB, select the start on behalf of the administrator.

Start from the "Explorer"

But these were methods that, by and large, duplicate one another. Now let's see what can be done using the standard "Explorer". First you need to open the "File" menu.

Running cmd from Explorer

It will immediately contain a console launch line with a transition to an additional menu, in which, as in the case of the Windows 10 Start section, there will be both a normal start and a start with administrator rights.

Directly calling the console from the system catalog

If anyone does not know, the Run menu is initially designed to run executable files that are located in the System32 system directory.

Running cmd from the System32 folder

Thus, running cmd as administrator can be done through RMB on the desired cmd.exe file just from this folder (it is located in the Windows root directory). Paradoxically, on 64-bit systems, almost all components of the System32 folder are duplicated in the SysWOW64 directory. In other words, the exact same file responsible for starting the command line can be found here, and the launch actions will be completely identical.

Being in the system folder and highlighting the desired file, you can use the tools for working with applications. After clicking on the “Management” link, an additional panel will open, in which there will be a start button with admin rights.

Access acceleration

With the main ways, the start of the command line figured out. Now let's see how to simplify our task and speed up its launch. Here you will need to enter the System32 system folder, and through RMB on the cmd.exe file, select the shortcut for “Desktop” (you can immediately choose to create a shortcut directly on the “Desktop”, specifying the file to be used as an object).

Now, through RMB, on the created shortcut, you need to select the properties of the object, on the shortcut tab, click the "Advanced" button and tick the line for permanent launch as administrator. If desired, the shortcut from the "Desktop" can be moved to the quick launch panel or through the PCM to use the pin in the taskbar. This technique is the best solution if the user with the command console has to work very often.

Instead of a total

That, in fact, is all that concerns the launch of the command line with administrator rights. Of course, only the simplest and most commonly used methods have been described here. We did not consider cases when in some menus instead of the command line there is a link to Windows PowerShell. In fact, this tool is very similar to the command console, but more complex for the average user and having several more features.

Source: https://habr.com/ru/post/K714/


All Articles