How To Open Elevated Command Prompt (MS-DOS or PowerShell)?

The “elevated command line“, “elevated command prompt“, “elevated cmd” or “elevated mod” is used to describe a command-line interface which can be MS-DOS or PowerShell that has the Administrator privileges. The elevated command line can run Administrator commands easily. By default, the command line interface is opened with the currently active user privileges which is generally a regular user. But if the current user is an Administrator user or has Administrator privileges the started command-line interface will have elevated privileges. In this tutorial, we will learn how to open MS-DOS (cmd.exe) or PowerShell with elevated privileges.

Open Elevated MS-DOS (cmd.exe)

Some commands require Administrator privileges in order to run properly. The Administrator privilege can be provided by running these commands under the Administrator account or opening an elevated MS-DOS as Administrator. First, open the Start Menu and type “cmd” or “ms-dos” and you will see the Command Prompt. Right-click to the Command Prompt and then click on the “Run as administrator“.

Open Elevated MS-DOS (cmd.exe)

We will see the following screen which is asking if we want to open “Windows Command Processor“. We will click to the “Yes“.

The elevated MS-DOS command line interface is like below. The MS-DOS bar provides the “Administrator” text in order to express that the current MS-DOS command line interface has Administrator privileges.

MS-DOS Command Prompt with Administrator Privileges

Open Elevated PowerShell

The PowerShell is another command-line interface provided with recent Windows operating systems. PowerShell is very similar to MS-DOS and can be opened with elevated privileges as Administrator. First, open the Start Menu and type “powershell” which will list the “Windows PowerShell” like below. Right-click to the “Windows PowerShell” and click on the “Run as administrator” like below.

Open Windows PowerShell with Elevated Privileges

We will see the following confirmation where we will click to the “Yes” to open PowerShell.

The PowerShell with elevated privileges is like below which has the “Administrator” term in the bar.

PowerShell Command Prompt with Administrator Privileges

Close Elevated MS-DOS and PowerShell Command Line Interface

The elevated command-line interfaces MS-DOS and PowerShell can be closed easily by using the “exit” command like below.

exit

Leave a Comment