How to start an Elevated Command Prompt in Windows 7 and Vista

  • April 12, 2010
  • Read 387,422 times
 

A Command Prompt allows you to run programs, manipulate Windows settings, and access files by typing in commands that you wish to execute. To start a Command Prompt you simply need to type cmd.exe in the search field in the Start menu or click on Start, then Accessories, and then click on the Command Prompt icon. A window will appear, called the Command Prompt, that will open in your user profile folder and wait for you to issue commands. An example of this Command Prompt can be seen below:

 

Default Command Prompt Window
Default Command Prompt Window

 

The problem with the standard Command Prompt is that any commands you run in it operate as if you do not have Administrative privileges. So you won't be able to run any commands or access any files that require these privileges.

It is for this reason, that we need to be able to open what is called an Elevated Command Prompt, which is a Command Prompt that allows you to access files and programs as an Administrator of the machine. There are three methods that can be used to open an Elevated Command Prompt and I have outlined them both below.

 

Method 1: Run As Administrator from shortcut

The first method is to launch the Command Prompt as an Administrator. This can be achieved by clicking on the Start menu, then selecting All Programs, and then Accessories. You will now see a shortcut labeled Command Prompt. Right-click on it and select Run as administrator as shown below.

 

Run as administrator
Run as administrator

 

When you select Run as administrator a User Account Control prompt will appear asking if you would like to allow the Command Prompt to be able to make changes on your computer.

 

ser Account Control Prompt
User Account Control Prompt


Click on the Yes button and you will now be at the Elevated Command Prompt as shown below.

 

Elevated Command Prompt
Elevated Command Prompt


Please note that the Elevated Command Prompt starts in the Windows System32, for example C:\Windows\System32\, folder rather than the User Profile. In this Elevated Command Prompt you can now launch programs or access files that require Administrative privileges.

 

 

Method 2: Use Ctrl+Shift+Enter to launch Cmd.exe

It is also possible to launch cmd.exe from the Start Menu search field by using the Ctrl+Shift+Enter keyboard combination. To use this method, click on the Start menu and in the search field enter cmd as shown in the image below.

 

cmd.exe in the Start Menu search field
cmd.exe in the Start Menu search field

Once you type cmd, press the Ctrl+Shift+Enter keyboard combination and cmd.exe will be launched as if you selected Run as Administrator. You will then see a User Account Control prompt asking if you would like to allow the Command Prompt to be able to make changes on your computer. Click on the Yes button and you will now be at the Elevated Command Prompt.

 

Method 3: Create an Elevated Command Prompt Shortcut

If you find that you use the Elevated Command Prompt often and would like an easier way to launch it, you can make a short cut to it on your desktop or pinned to your Taskbar. To do this you can click on the Start menu, then selecting All Programs, and then Accessories. You will now see a shortcut labeled Command Prompt. Right-click on it and either drag it to your desktop and copy it there, select Pin to Start Menu, or select Pin to Taskbar (Windows 7 only). Once the Command Prompt shortcut is where you want it, right-click on it and select Properties.

In the properties screen, make sure you are on the Shortcut tab and click on the Advanced button. You will now be at a screen similar to the one below.

 

As shortcut's advanced properties screen
As shortcut's advanced properties screen


At this screen put a checkmark in the box labeled Run as administrator, as shown above, and then click the OK button. Then click OK one more time to exit the shortcut's properties. Now whenever you double-click on this shortcut it will automatically run the Command Prompt with elevated privileges.

For more information on the Command Prompt and its available commands you can view our Introduction to the Windows Command Prompt tutorial. As always, if you have any questions regarding this procedure please ask us in our Windows 7 forum.

Users who read this also read:

  • How to enable and disable the Windows Administrator account Image
    How to enable and disable the Windows Administrator account

    The built-in Administrator account is disabled by default in Windows 8, Windows 7, and Windows Vista. It is disabled to enhance security as this is a common account targeted by hacking scripts and hackers when they try and access your computer without your permissions. In my opinion, you should leave the Administrator account disabled, but as there have been many requests for this information, I ...

  • How to rename the built-in Administrator account in Windows Image
    How to rename the built-in Administrator account in Windows

    The built-in Administrator account is one of the most targeted account names by malicious programs and hackers that are attempting to access your computer without your permission. It is therefore a wise security precaution to rename the Administrator account to another less common name so that it can no longer be targeted. By default, the Administrator account in Windows Vista, Windows 7, and ...

  • Introduction to the Windows Command Prompt Image
    Introduction to the Windows Command Prompt

    Before Windows was created, the most common operating system that ran on IBM PC compatibles was DOS. DOS stands for Disk Operating System and was what you would use if you had started your computer much like you do today with Windows. The difference was that DOS was not a graphical operating system but rather purely textual. That meant in order to run programs or manipulate the operating system ...

  • How to enable GodMode in Windows Image
    How to enable GodMode in Windows

    Windows 8, Windows 7, Server 2008, and flavors of Windows Vista provide an unpublished ability to create a control panel called GodMode that alllows you to have easy access to almost all administrative tasks that you would like to use in Windows. This new window is called GodMode because it puts all aspects of the management of Windows at your fingertips in one location. This allows you to quickly ...

  • How to open an Elevated Command Prompt in Windows 8 Image
    How to open an Elevated Command Prompt in Windows 8

    A Windows Command Prompt is a screen where you type in commands that you would like to execute. The command prompt is very useful if you want to use batch files, basic scripting, or to perform various administrative tasks. The normal command prompt has one shortcoming and that is that you cannot directly launch programs that require administrative privileges in order to work properly. This is ...

 

Comments:

blog comments powered by Disqus
search tutorials

Login