How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista

Method 1 of 2:

Install

  1. How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 1
    Open Notepad by going to Start → All Programs → Accessories → Notepad.
  2. Copy codes given below and paste them in Notepad.
[version] signature="$CHICAGO$" [CmdHereAsAdminInstall] CopyFiles = CmdHereAsAdmin.Files.Inf AddReg = CmdHereAsAdmin.AddReg [DefaultInstall] CopyFiles = CmdHereAsAdmin.Files.Inf AddReg = CmdHereAsAdmin.AddReg [DefaultUnInstall] DelFiles = CmdHereAsAdmin.Files.Inf DelReg = CmdHereAsAdmin.DelReg [SourceDisksNames] 55="CMD Prompt Here as Administrator","",1 [SourceDisksFiles] CmdHereAsAdmin.INF=55 [DestinationDirs] CmdHereAsAdmin.Files.Inf = 17 [CmdHereAsAdmin.Files.Inf] CmdHereAsAdmin.INF [CmdHereAsAdmin.AddReg] HKLM,%UDHERE%,DisplayName,,"%CmdHereAsAdminName%" HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%CmdHereAsAdmin.inf" HKCR,DirectoryShellrunas,,,"%CmdHereAsAdminAccel%" HKCR,DirectoryShellrunascommand,,,"%11%cmd.exe /k cd /d ""%1""" HKCR,DriveShellrunas,,,"%CmdHereAsAdminAccel%" HKCR,DriveShellrunascommand,,,"%11%cmd.exe /k cd /d ""%1""" [CmdHereAsAdmin.DelReg] HKLM,%UDHERE% HKCR,DirectoryShellrunas HKCR,DriveShellrunas [Strings] CmdHereAsAdminName="CMD Prompt Here as Administrator PowerToy (Uninstall only)" CmdHereAsAdminAccel="CMD here as Admin" UDHERE="SoftwareMicrosoftWindowsCurrentVersionUninstallCmdHereAsAdmin" 
How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 2
  1. How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 3
    In Notepad, go to File → Save As... and save the file with name CmdHereAsAdmin.inf. Be sure to change the Save as Type: from Text Documents to All Files.
  2. How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 4
    Go to the location where you just saved the "CmdHereAsAdmin.inf" file. Right click on the file and click on "Install" from context menu.
  3. How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 5
    To try it, right-click any folder in Windows Explorer and you will see a new menu item called "CMD here as Admin". Click on that option and Command Prompt will appear.
Method 2 of 2:

Uninstall

  1. How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 6
    Go to Start → Control Panel → Add or Remove Programs.
  2. How to Add an 'Open Command Prompt Here As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista Picture 7
    Click on the Remove for CMD Prompt Here as Administrator PowerToy (Uninstall only) entry.
3.3 ★ | 3 Vote

May be interested

  • How to Increase Internet Speed in Windows 7Photo of How to Increase Internet Speed in Windows 7
    this wikihow teaches you how to troubleshoot slow internet speeds and page loads in windows 7. slow internet speeds can be caused by all sorts of things, so there's no one magic fix for your pc. you'll learn how to check for malware...
  • How to Preview a Window Before You Open ItPhoto of How to Preview a Window Before You Open It
    do you wish to be able to preview windows on your computer screen without actually having to switch to them? features of windows enable you to do this. to find out how to use these features, follow these instructions. hover over the icon...
  • How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows VistaPhoto of How to Add an 'Open With Notepad As Administrator' Shortcut to the Context Menu in Windows 7 and Windows Vista
    in windows vista and windows 7, when you double-click a text file which is located in a protected system folder (like the 'program files' folder) or one of its subfolders, you'll notice that you can view its contents, but you will not be...
  • How to Restore Windows 7 to Its Normal StatePhoto of How to Restore Windows 7 to Its Normal State
    whether it's a virus you can't tackle or a glitchy update, a slow computer or one that just won't start properly, there are a number of reasons you may need to reset your windows system. there are several methods you can try to get your...
  • How to Change Windows 7 Into Windows VistaPhoto of How to Change Windows 7 Into Windows Vista
    don't like the new windows 7 interface? follow these easy steps and you'll make it look like windows vista! go to google images and search for windows vista wallpaper
  • How to Permanently Pin a Program to the Windows 7 TaskbarPhoto of How to Permanently Pin a Program to the Windows 7 Taskbar
    have you been constantly running a program, but always find it gawky to keep clicking it through the start menu, pinning the item to the taskbar has now come to your rescue. this article will tell you how you will be able to do this. turn...