Run Command Prompt Window as Administrator by Right Click Computer in Vista
Lazy to type “CMD” or pressing any keyboard keys just to elevate the opened command prompt window with full administrator credentials and privileges mode? The following registry hack for Windows Vista will allow you to open an elevated command window by simply right click on Computer (formerly known as My Computer in Windows XP) icon at Start Menu or Desktop, and select Run Command Prompt as Administrator from the contextual menu.
To add and place a new menu item to right click context menu for Computer so that whenever you right click on the icon, a contextual menu item of Run Command Prompt as Administrator will be shown, and then you can straight away click on the entry to immediately open the elevated command prompt, copy and paste the following code to a text editor such as Notepad, and save it to a file with filename with .reg extension. Double click on the file or right click on registry file and then choose “Merge”.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas]
@="Run Command Prompt as Administrator"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas\command]
@="cmd.exe"
You can also download the following registry registration file in zip package if you don’t like to create the file yourself. Simply extract the elevated-command-prompt.reg file from the archive.
Download elevated-command-prompt.zip from the forums.
Click “Continue” on the the User Account Control (UAC) Registry Editor elevation permission dialog prompt, and click “Yes” on Registry Editor prompt to confirm applying the values to the registry.

From now on, bring up Start Menu and right click on Computer, and then select “Run Command Prompt as Administrator” to open elevated command window. For easier access, you can show the Computer shortcut on Desktop by clicking on “Show on Desktop” on right click menu. You can also drag and drop the Computer shortcut to Quick Launch area.
Related Articles
- Open Elevated Command Prompt Window Here as Administrator at Current Folder Directly in Vista Windows Explorer
- How to Open Elevated Command Prompt with Administrator Privileges in Windows Vista
- Add Window Switcher (Flip 3D) Command to Vista Right Click Menu
- How to Fully Maximize Command Prompt Window in Vista
- Reveal and Access to Windows Vista Hidden Context-Sensitive (Right Click) Menu Item – Open Command Prompt Here & Copy as Path
- Create and Put an Elevated Command Prompt on Windows Vista Desktop or Start Menu
- Put Disk Cleanup Shortcut to Vista Computer Right Click Menu
- How to Disable or Enable Vista User Access Control in Command Prompt
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut
- Add Open Command Window Here to XP Folder with PowerToy










































January 8th, 2008 23:49
right click desktop. New Shortcut, type CMD, click ok, for a name type Elevated Command, click ok. now right click the shortcut and click properties, then advanced, then Run as Admin. there you have it. you can pin this shortcut to the start menu for ease of use
October 17th, 2007 22:54
I always use the vista search thingie and without waiting I use ctrl+shift enter and it will automatically be run with elevated permissions.
October 17th, 2007 22:42
[...] a right click contextual menu option of “Open Command Prompt as Administrator” to the Computer (My Computer) so that you can simply right click and click on the item to [...]