Open Command Prompt with Administrator Privileges Anywhere

by Eric Geier [Published on 30 Jan. 2012 / Last Updated on 30 Jan. 2012]

Make a Open Command Window Here with admin privileges option.

You can open a new Command Prompt window directly to a folder location by right-clicking the folder in Windows while holding the Shift key and then selecting Open Command Window Here. But this opens it to user-level privileges. However, you can add a shortcut to the right-click context menu that opens it with administrator privileges.

Open Notepad, insert the following text, and save as AddToOpenAsAdmin.reg:

Windows Registry Editor Version 5.00
@="Open Command Window Here as Administrator"
@="cmd.exe /s /k pushd \"%V\""

Then to apply, execute the AddToOpenAsAdmin.reg file. Now you’ll see an admin option when right-clicking a folder while holding down Shift.

The Author — Eric Geier

Eric Geier (Dayton, Ohio) is a Freelance  Tech Writer and Author specializing in computer networking. He's also the Founder and Owner of NoWiresSecurity, which provides a hosted cloud-based RADIUS service to help businesses easily secure their Wi-Fi networks with the Enterprise (802.1X) mode of WPA/WPA2 security. He’s also the Founder and Owner of On Spot Techs, which provides on-site computer and technology services.

Latest Contributions

Featured Links