Elevated command prompt

Updated: 05/16/2020 by Computer Hope
Elevated command prompt

The elevated command line, elevated command prompt or elevated mode is a mode introduced with Windows Vista that allows the user to execute commands with administrative privileges. By default, when opening the Windows command line in Windows, you will not have full rights and not all commands work. This mode was created to help protect Windows users or programs being run on their computer from running commands that may compromise the computer. To perform some commands, you must run an elevated version of the command prompt.

How do I open the elevated command prompt?

  1. Click Start.
  2. In the search box, type cmd.
  3. Right-click cmd.exe and select Run as Administrator. If done properly, the User Account Control window below opens.
  4. Click Yes to run the Windows Command Prompt as Administrator.

OR

  1. Click Start.
  2. In the search box, type cmd and press Ctrl+Shift+Enter. If done properly, 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.

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

Some commands and programs require an elevated mode to run properly and generate an error if they do not have the proper rights. For example, if you're trying to run the SFC command from the Windows command line and you're not running in an elevated command mode, you'd 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