How to run command line cmd.exe (as an administrator)

Loading

The command line is a common program that bears the name:

Animal repellent with a loudspeaker and control unit

cmd.exe

Its location can be written as follows:

%windir%\system32\cmd.exe

The %Windir% code determines the path to Windows, typically C:\Windows.
So we can usually click through to it in the Explorer:

However, since the command line is used very often, it is of course not necessary to search for this file every time.
In any system, there are much faster ways to get to it as quickly as possible.

{Googleads Left}

Command line … as an administrator

With the arrival of Windows Vista, the concept “as an administrator”, i.e. UAC (User Account Control, Slovak-management of user accounts), also came.
UAC is a security element first listed in the Microsoft Windows Vista operating system.
It increases Windows security by limiting app permissions to the user level until the administrator confirms an increase in application rights (rights elevation).
Even if the user account has administrator privileges, the applications under it run automatically do not have them until the time of requesting an increase in rights and confirmation of this request by the user.
If we work with the command line and want to perform e.g. system changes, it is necessary to run the command line with increased authority, i.e. “as an administrator”.
If we forget, the executed command ends with an error and a message about access denied.
Administrator authority, but it is not always necessary, for example, if we only work with user files, we determine (do not change) IP address settings in the system or perform ping to another computer.

Windows XP

Although Windows XP is already a thing of the past, we will stop at this system for a short time.
Since XP does not use UAC, it is not necessary to deal with the startup with administrator authority, i.e. assuming that you have this authorization as a user.
Through the offer Start We choose the option Launch And as the program name we enter cmd:

Windows 7/ Vista

In Windows 7, the “Run” window has been incorporated directly into the menu Start, or This window is used for searching and running programs or documents on a computer.
So the procedure is quite simple and similar to Windows XP: we press the button Start And we can start writing immediately cmd.
The found items are then displayed in the Start menu bar, i.e. the command line, which is displayed as a black icon with text and the name of the executable cmd file.

Advertisements

It is not necessary to click or select in the “Programs” list on the icon/text CMD, we simply write cmd And we press the key ENTER.

If we want to run the command line as an administrator, we can either right-click in the “Programs” list, call up the context menu and then select “Run as administrator”, or press the key combination Ctrl + Shift + Enter.
In both cases, we will be prompted to confirm the increased authority before the command line is launched.

Windows 8.1

With Windows 8.1, we have two options, the first is through tiles (Start).
So we display the tiles (press Start) and immediately after displaying the tiles, we start writing the name cmd.
As soon as we start typing, the search window will appear, and after a while after writing cmd, the list of found programs will also contain a command line.
We can then start it, or through the right mouse button we call up the context menu and choose Run as administrator.

The second, much faster method is through the context menu of the Start button.
So we move the mouse over the button Start And we press the right mouse button.
Displays from a wide range of options, including Command line and Command line (as an administrator).

Windows 10

Windows 10 returns the menu concept Start, as we know it from Windows 7, with the fact that it combines it with tiles introduced in Windows 8 / 8.1.
The command line launch option is basically a combination of both options described for Windows 7 and Windows 8.1.
We will either display the menu Start, or We select the search icon.
Both options are equivalent, because if we display the Start menu and start typing anything, we automatically switch to the search.
So we start writing cmd or we can also start writing the command line (the second option shows the second option, when characters that have already been written are bold).
As soon as we have the command line displayed on the first search line, we can start it with the key ENTER, or Again, we can use the context menu via the right mouse button and choose the option to start as administrator.
The second option is the same as for Windows 8.1. through the context menu of the Start button.

Source: mrpear.net

Advertisements
AliExpress

Leave a Reply

Your email address will not be published. Required fields are marked *