Gizmos Needs You

Gizmo's Freeware is Recruiting

 We are looking for people with skills or interest in the following areas:
 -  Mobile Platform App Reviews for Android and iOS
 -  Windows, Mac and Linux software reviews       Interested? Click here

                  

 

Quick Ways to Open the Windows Vista/7 Command Line with Administrator (Elevated) Privileges

Many of the applications of the command line are involved with administrative tasks. In Windows XP systems, that generally presents nothing new. In Windows Vista and Windows 7, however, User Account Control (UAC) will require that you elevate the command line to run as administrator even when you are logged into an administrator account. I described one way to do this in a previous tip. If you need to use the command line frequently with administrator privileges, you might want a quicker method. Here are two ways to save time.

Windows Vista/7 keyboard shortcut for running command line as administrator

1.    Open the Start menu
2.     Enter “cmd” (without quotes) in the box labeled "Start search" (Vista) or "Search programs and files" (Windows 7)
3.    Then press the keyboard combination Ctrl+Shift+ Enter. (Hold down all three keys.)
4.    Answer “Yes” when the UAC dialogue comes up, You can also use the keyboard combination Alt+C to confirm.

Create a shortcut for a command line prompt with elevated privileges

If you are like me and use the command line a lot, consider creating a shortcut that will directly open a command prompt possessing administrative privileges.

1.    Right-click an empty spot on the Desktop
2.    In the context menu, select “New”
3.    Select “Shortcut”
4.    In the box labeled “Type the location of the item”, enter “cmd.exe” (without quotes)
5.    Press “Next”, give the shortcut a name and choose “Finish”
6.    Right-click the new shortcut icon
7.    Choose "Properties" from the context menu
8.    Click the button “Advanced”
9.    Put a check by “Run as administrator”
10.    Click “OK”

Now you have a shortcut that will open the command prompt with administrative privileges when double-clicked. This shortcut can be pinned to the Start menu or (Windows 7) the Taskbar or left on the Desktop. Note that you will still get the UAC message when you open the command prompt.

Get your own favorite tip published!  Know a neat tech tip or trick?  Then why not have it published here and receive full credit?  Click here to tell us your tip.


This tips section is maintained by Vic Laurie. Vic runs a Windows blog called The PC Informant and also operates a computer education website.

Click here for more items like this. Better still, get Tech Tips delivered via your RSS feeder or alternatively, have the RSS feed sent as email direct to your in-box.

Share this
3.5
Average: 3.5 (16 votes)
Your rating: None

Comments

by tek (not verified) on 22. December 2011 - 4:56  (85669)

Ok, I have tried all of the above but still I do not see an solid answer...like do this to repair file. I too have had to wipe drive and reinstall win 7. Then I can can only load half of the updates. So I do a scannow In admin mode and yes it does tell me that there are problems. Especially in what looks like the dll files. Please just give us the answer to either removing these files or fixing them so I can use this computer with out problems. It really shouldnt be that hard. Please help....answer...Thx so much

by v.laurie on 22. December 2011 - 14:15  (85725)

This type of problem should be directed to the forum. If you log in there and post your problem, there will be knowledgeable people who will help you.

by Microsoft Chat (not verified) on 25. November 2011 - 10:25  (83862)

With the User Account Control enabled by default in Windows Vista , you'll need to use an elevated Command Prompt whenever you need to do some administrative tasks from Command Prompt. Click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. It's the easiest method to Open the Windows Vista Command Line with Administrator Elevated privileges..