Home » Tutorials » Tips & Tricks » Add Run as Administrator Windows 7 or Vista

Add Run as Administrator Windows 7 or Vista

Run as Administrator

Run as Administrator: Have you ever tried to unzip a file in Windows 7 or Vista to the System Files directory? You can get errors rejected by all kinds of permission, and usually fail. And how is it that we open the zipfile as an administrator? How do you open any file as an administrator or  Run as Administrator?

There is a simple tweak in the registry that will allow us to define the action for a file type to Run as Administrator. Unfortunately, you’re going to have to manually make the change but we’re going to talk you through it.

Note: The method explained here in this article is a courtesy of jd2066.

Run as Administrator

Manual Registry Tweak: Run as Administrator

  1. Open Regedit through the start menu search or run box,
  2. Then browse down to the following key, substituting “.zip” for the file extension that you are looking for. (Note that the find dialog helps here)



Now you have to take note of the Data value for the “Default” item. This tells you which application is registered or associate to handle or execute this file type, and also where we need to go in the registry next.

For this example “.ZIP”, since the data field in this example says “WinRAR.ZIP” we’ll need to browse down to the following registry key. (again, the find dialog helps here)


What we need to do is copy the shell\open\command section to shell\runas\command. The easiest way to do that is to right-click on “command” and then choose Export.


Now open up the exported registry file in Notepad or text editor and change “Open” to “Runas” where indicated below:


Double-click on the file to enter the information into the registry. Now you’ll see that the “runas” section is identical to the “open” section:


And now you can right-click on a file and open it as administrator:


In this example we used WinRAR, but this should work for almost any Filetype or Application. You’ll just have to change where you look in the Registry Editor.

Thanks to Howtogeek

About engrsajidrehman

I am an Electronics Engineer by profession and currently is a Service Engineer in European Based Textile Machinery Manufacturing Company. Beside all this I'm a Web Designer, Graphics Designer, Content writer. I love to explore places and new things. You can contact him on Google, Linkedin, and subscribe my YouTube Channel for cool stuff Thanks

Check Also

Add Encrypt Decrypt Options to Windows 7 / Vista

Add Encrypt Decrypt Options to Windows 7 / Vista

Encrypt Decrypt: If you are using the built-in file encryption in Windows 7 or Vista, ...