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
- Open Notepad by going to Start → All Programs → Accessories → Notepad.
- 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"

- 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.
- Go to the location where you just saved the "CmdHereAsAdmin.inf" file. Right click on the file and click on "Install" from context menu.
- 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
- Go to Start → Control Panel → Add or Remove Programs.
- Click on the Remove for CMD Prompt Here as Administrator PowerToy (Uninstall only) entry.
3.3 ★ | 3 Vote
You should read it
- 7 common mistakes when writing website articles
- Some new features of Access 2010
- Invite Assassin's Creed Chronicles game: China costs 265,000 VND, is free
- How to create virtual Home keys on Android phones
- Panasonic has a laptop that can withstand pressure up to 100 kg
- Fsutil command sparse in Windows
- Share Windows in Mac OS X
- How to use Televzr to watch videos from your computer on your phone
May be interested
- How to Make Command Prompt Appear at Schoolthis 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)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 10once 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 designcontext 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 Windowsthis 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 Windowstipsmake 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 CMDdo 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 Windowstrick 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 Promptthis 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 11context 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.