Run as Administrator - Add or Remove from Context Menu in Windows 7

Page 1 of 2 12 LastLast
    Run as Administrator - Add or Remove from Context Menu in Windows 7

    Run as Administrator - Add or Remove from Context Menu in Windows 7

    How to Add or Remove "Run as Administrator" from Context Menu in Windows 7 and Windows 8
    Published by
    Designer Media Ltd


    How to Add or Remove "Run as Administrator" from Context Menu in Windows 7 and Windows 8

       Information
    This will show you how to either remove or restore Run as administrator from the context menu of the default BAT, CMD, CPL, EXE, and MSC application files for all users in Windows 7 and Windows 8.

    You must be logged in as an administrator to be able to do the steps in this tutorial.


    EXAMPLE: "Run as administrator" in Context Menu of Application Files
    Run as Administrator - Add or Remove from Context Menu in Windows 7-example.jpg

    Run as Administrator - Add or Remove from Context Menu in Windows 7-windows8.jpg

    Run as Administrator - Add or Remove from Context Menu in Windows 7-windows_8.1_update.jpg
    Here's How:
    1. Do step 2 or 3 below for what you would like to do.

    2. To Restore "Run as administrator" to the Context Menu
    NOTE: This is the default setting.
    A) Click/tap on the Download button below to download the file below, and go to step 4 below.
    Restore_Run_as_administrator.reg
    3. To Remove "Run as administrator" from the Context Menu
    A) Click/tap on the Download button below to download the file below, and go to step 4 below.
    Remove_Run_as_administrator.reg
    4. Save the .reg file to your desktop.

    5. Double click/tap on the .reg file to merge it.

    6. If prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve merging.

    7. When finished, you can delete the .reg file if you like.
    That's it,
    Shawn








  1. Posts : 4
    Windows 7 Ultimate x32
       #1

    Shaun this tut is great. I am not a beginner but I do not know how to determine the hex number after "@=hex(2)" in the file Restore_Run_as_administrator.reg
    I would like to add the extensions JPG, DOC, DOCX, RAR & ZIP, how do I determine the hex numbers for these?
    I noticed these lines were different for EXE, is this the only case or are there others that are similar
      My Computer


  2. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello execcese, and welcome to Seven Forums.

    Unfortunately, adding "Run as administrator" to those file types' context menu would be pointless since they are not application type files and would not work.
      My Computer


  3. Posts : 4
    Windows 7 Ultimate x32
       #3

    Thanks for your reply Brink. Sorry I just did not have that knowledge. I'll just have to "Switch User" (Win7) to Administrator
    For those who have not got the option here is how I do it in Win7.
    Now, just select Administrator to log in as Administrator.
    Last edited by Brink; 24 Apr 2013 at 09:24. Reason: added tutorial link for more info
      My Computer


  4. Posts : 4
    Windows 7 Ultimate x32
       #4

    With regards to my previous reply you may have to use the file Properties then Security tab to enable permissions for the Administrator.
    With regards to my original query. When I double click on a JPG file it opens in Irfan View because that is what I have set "Open with" to in Properties. Are you saying adding "Run as administrator" to the context menu cannot be done or it will not work?
      My Computer


  5. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    execcese,

    "Run as administrator" can only be used on executable application files. A JPG is an image file and not an application type file.

    For what you want, you could use OPTION FIVE in the tutorial below to set the .exe file of Irfan View to always Run this program as an administrator. This way when you open the JPG file, it will open with an elevated (run as administrator) Irfan View.
      My Computer


  6. Posts : 4
    Windows 7 Ultimate x32
       #6

    Many thanks Brink for this useful information.
      My Computer


  7. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    You're most welcome execcese. :)
      My Computer


  8. Posts : 1
    32 bit windows 7
       #8

    hey thnks .. the file "restore run as adm .." is excellent ..!!
      My Computer


  9. Posts : 2
    IN
       #9

    I realize this post is quite old, but wanted to 'fix' the erroneous assumption that this only works for certain types. It's not actually 'executing' the file you're trying to 'open'. It's executing the program used to view/use/edit the file as an admin. So yes it can work for ANY file type. I was looking to see if someone had made a program that can do this instead of having to manually go through and add the necessary reg entries, and stumbled on this post. Just wanted to clear that up.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:25.
Find Us