Elevated command prompt

Updated: 11/06/2021 by Computer Hope
Elevated command prompt

By default, when opening the Command Prompt in Windows, you don't have full rights, and not all commands work. This restricted mode was created to help protect Windows users from running commands that may compromise their computer or programs. Consequently, the elevated command line, elevated command prompt, or elevated mode was introduced with Windows Vista to allow users to execute commands that require administrative privileges.

How do I open an elevated command prompt?

Windows 10

  1. Press the Windows key and type Command Prompt (A).
  2. In the search results on the left, use the arrow keys to highlight the Command Prompt program (B).
  3. On the right side of the window, click Run as administrator (C).

Accessing an elevated Command Prompt.

  1. Click the Yes button on the prompt.
Tip

You can also right-click the Command Prompt program in the search results and select Run as administrator in the pop-up menu.

Windows Vista, 7, and 8

  1. Press the Windows key.
  2. In the search box, type cmd and press Ctrl+Shift+Enter. If done correctly, the User Account Control window below opens.
  3. Click Yes to run the Windows Command Prompt as Administrator.

Elevated command prompt window

How to close elevated command mode

Once at the command prompt, you can use the exit command to exit from the elevated command mode.

Tip

You can also click the X at the top-right corner of the command prompt window to close the elevated command mode.

What happens if I do not run in elevated command mode?

Some commands and programs require an elevated mode to run correctly and generate an error if the person executing the command does not have proper rights. For example, if you're trying to run the SFC command from the Windows command line and not running in an elevated command mode, you get the following error.

You must be an administrator running a console session in order to use the sfc utility.

Command line, Operating system terms