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 Make Command Prompt Appear at SchoolHow to Make Command Prompt Appear at School
    this wikihow teaches you how to access command prompt on a windows 10 school computer. although you may be able to open command prompt if only the file path to command prompt is blocked, there is no way to bypass an administrator lock on...
  • Open folder in Command Prompt (CMD)Open folder in Command Prompt (CMD)
    do you need to access a certain folder from the command prompt or windows command prompt? although it looks classic, this program is really easy to use if you know some basic commands. today's tipsmake will show you how to use the 'cd' command to open a folder in windows command prompt. besides, you will also learn great tips to immediately open the command prompt in any folder on windows file explorer.
  • How to add / remove 'Open in Windows Terminal' context menu in Windows 10How to add / remove 'Open in Windows Terminal' context menu in Windows 10
    once you have windows terminal installed, it will add the open in windows terminal entry to the right-click menu of folders in file explorer. if you are not satisfied with this option, here's how to remove it from the context menu.
  • The context menu of Windows 11 will have a new eye-catching designThe context menu of Windows 11 will have a new eye-catching design
    context menus are an important component of the windows user experience. this menu appears when you right-click on the desktop or applications, drives, or folders.
  • How to Open the Command Prompt in WindowsHow to Open the Command Prompt in Windows
    this wikihow teaches you how to open the command prompt program in windows. there are several ways to do this, from simply searching in the start menu to using a run command. keep in mind that some computers, such as school computers, will...
  • How to Open a Command Line Program on WindowsHow to Open a Command Line Program on Windows
    tipsmake today will show you how to open the command prompt command line window on windows pc. you can open command prompt from the start menu or any folder in file explorer. besides, the windows run feature is also an option.
  • How to Open Folders in CMDHow to Open Folders in CMD
    do you need to access something from the command prompt or the windows command prompt? although it looks classic, this program is really easy to use if you know some basic commands. today's tipsmake will show you how to use the 'cd' command to open a folder in windows command prompt. besides, you will also know more great tips to instantly open command prompt in any folder on windows file explorer.
  • How to open CMD with Administrator rights on WindowsHow to open CMD with Administrator rights on Windows
    trick to run cmd command with administrator rights (administrator rights) on windows 7/8/8.1 and windows 10. create shortcut to always run cmd (command prompt) with administrative rights
  • How to Execute a Program in Command PromptHow to Execute a Program in Command Prompt
    this article shows you how to open a program on a windows computer using the command prompt application. although you can only open programs that are installed in folders created by windows (such as desktop), you are still allowed to add the program's folder to the command prompt list to open the program with the command prompt.
  • This small application helps bring the context menu interface of Windows 10 to Windows 11This small application helps bring the context menu interface of Windows 10 to Windows 11
    context menus are an important component of the windows user experience. this menu appears when you right-click on the desktop or applications, drives, or folders.