How To Open an Elevated Command Prompt

Open Command Prompt as an Administrator in Windows 10, 8, 7, & Vista

Screenshot of an elevated Command Prompt window in Windows 10
Elevated Command Prompt (Windows 10).

Some commands available in Windows require that you run them from an elevated Command Prompt. Basically, this means running the Command Prompt program (cmd.exe) with administrator level privileges.

You'll know if you need to run a particular command from within an elevated Command Prompt because it'll clearly tell you that in an error message after running the command.

For example, when you try to execute the sfc command from a normal Command Prompt window, you'll get the "You must be an administrator running a console session in order to use the sfc utility" message.

Try the chkdsk command and you'll get an "Access Denied as you do not have sufficient privileges. You have to invoke this utility running in elevated mode." error.

Other commands give other messages, but regardless of how the message is phrased, or what Command Prompt command we're talking about, the solution is simple: open an elevated Command Prompt and execute the command again.

Time Required: Opening an elevated Command Prompt will take most of you under a minute from start to finish.

Note: The specific steps involved in opening an elevated Command Prompt differ somewhat depending on your operating system. The first tutorial works for Windows 10 and Windows 8, and the second for Windows 7 and Windows Vista. See What Version of Windows Do I Have? if you're not sure.

How To Open an Elevated Command Prompt in Windows 10 or Windows 8

The following process only works for Windows 10 and Windows 8 which is unfortunate, because it's super-simple and works for elevating other programs as well, not just Command Prompt.

  1. Open Task Manager. The quickest way, assuming you're using a keyboard, is via CTRL+SHIFT+ESC but there are several other methods outlined in that link.
  2. Once Task Manager is open, tap or click the File menu option, followed by Run new task.

    Note: Don't see the File menu? You may first have to click or tap on the More details arrow at the bottom of the Task Manager window to show a more advanced view of the program, including the File menu.
  1. In the Create New Task window you see now, type the following in the Open text field:


    ...but don't do anything else just yet!
  2. Check the Create this task with administrative privileges. box.

    Note: Don't see this box? That means that your Windows account is a standard account, not an administrator account. Your account must have administrator privileges to be able to open an elevated Command Prompt this way. Follow the Windows 7/Vista method below, or try the tip just below these instructions.
  3. Now click or press on OK. Follow any User Account Control requirements that might appear next.
  4. An elevated Command Prompt window will now appear, allowing unrestricted access to executing commands.

    Feel free to close Task Manager. It does not need to remain open to use Command Prompt.

Tip: If you're using a keyboard with Windows 10 or Windows 8, you can open an elevated Command Prompt quickly from the Power User Menu. Just press the WINDOWS and X keys together and then click on Command Prompt (Admin). Click Yes on any User Account Control messages that might appear.

How To Open an Elevated Command Prompt in Windows 7 or Vista

  1. Locate the Command Prompt shortcut, usually in the Accessories folder in the Start Menu.

    Tip: If you're having trouble finding it, see my How to Open Command Prompt tutorial (the non-elevated kind). Just don't actually start it - there's an intermediate step you need to take...
  1. Once you find it, right-click on it to bring up its pop-up menu of options.
  2. From the pop-up menu, choose Run as administrator. Accept any User Account Control messages or warnings.
  3. An elevated Command Prompt window should appear, allowing access to commands that require administrative level privileges.

More About Elevated Command Prompts

Don't let all the discussion above convince you that you should, or need to, run Command Prompt as an administrator for most commands. For almost all Command Prompt commands, no matter what version of Windows, it's perfectly okay to execute them from a standard Command Prompt window.

To be able to open an elevated Command Prompt window, either a) your Windows user account must already have administrator privileges, or b) you must know the password to another account on the computer that has administrator privileges. Most home computer user's accounts are setup as administrator accounts so this isn't usually a concern.

There's a very easy way to tell if the Command Prompt window you've opened is elevated or not: it's elevated if the window title says Administrator: Command Prompt; it's not elevated if the window title says Command Prompt only.

An elevated Command Prompt window opens to C:\Windows\system32. A non-elevated Command Prompt window instead opens to C:\Users\[username].

If you plan on frequently using an elevated Command Prompt then you should consider creating a new shortcut to Command Prompt that automatically starts the program with administrator level access. See How To Create an Elevated Command Prompt Shortcut if you need help.

No command in Windows XP requires an elevated Command Prompt. Restricted access to certain commands was first introduced in Windows Vista.

More From Us