Add or Remove Run as administrator Context Menu in Windows 10  

Page 3 of 3 FirstFirst 123

  1. Posts : 7
    Windows 10 Enterprise
       #20

    I'm new here, but not new to registry editing. I think you've done a great job with this site. I have managed to make a number of changes to my system with ease and without delving into the registry.

    I have used a number of your registry hacks to remove various things from my context menu today. However, a new 'Run as administrator' seems to have appeared from somewhere:

    Add or Remove Run as administrator Context Menu in Windows 10-image-2.png

    This appears to be on everything except directories and executable files and it is why I have ended up on this page. When I click it, it doesn't seem to do anything. Instead it displays the following error message:

    Add or Remove Run as administrator Context Menu in Windows 10-image-1.png

    Executable files still have 'Run as administrator', but it has the user account control icon and works perfectly.

    Any ideas why this has appeared and how I might get rid of it? The hacks on this page do not seem to work.
      My Computer


  2. Posts : 70,923
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #21

    Hello @dking2011, and welcome to Ten Forums.

    Hmm, agreed something is wrong. The "Run as administrator" context menu should only be showing for executable files, and not for all files.

    Go ahead and export the two registry keys below that are commonly used for all file types as .reg files, and upload them here. I'll be happy to take a look at them to see if the culprit may be there. If so, I'll post back a .reg file that will remove them for you.

    HKEY_CLASSES_ROOT\*

    HKEY_CLASSES_ROOT\AllFilesystemObjects
      My Computers


  3. Posts : 7
    Windows 10 Enterprise
       #22

    Hi Brink, thank you for looking into this for me. It's pretty much the only issue I have right now.

    Key 1.reg
    Key 2.reg
      My Computer


  4. Posts : 70,923
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #23

    dking2011 said:
    Hi Brink, thank you for looking into this for me. It's pretty much the only issue I have right now.
    Found it in Key 1.reg.

    Downloading and merging the .reg file below will remove this stray "Run as administrator" context menu for you.

    Remove_Run_as_Administrator_for_dking2011.reg

    (Contents of .reg file for reference)

    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOT\*\shell\RunAs]
      My Computers


  5. Posts : 7
    Windows 10 Enterprise
       #24

    Seems perfect, thank you very much Brink.
      My Computer


  6. Posts : 70,923
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #25

    dking2011 said:
    Seems perfect, thank you very much Brink.
    You're most welcome.
      My Computers


  7. Posts : 4
    Windows 10
       #26

    How to hide 'Run as administrator' yet unhide it when pressing Shift + right-click on an executable file?
    Just like the 'Copy as a path' behavior...
      My Computer


  8. Posts : 70,923
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #27

    Paradoxical said:
    How to hide 'Run as administrator' yet unhide it when pressing Shift + right-click on an executable file?
    Just like the 'Copy as a path' behavior...
    Hello,

    I've added a new step 3 that should do the trick for this.
      My Computers


  9. Posts : 4
    Windows 10
       #28

    Hello,

    Thanks a lot for this one!
    Great addition!

      My Computer


  10. Posts : 70,923
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #29

    Paradoxical said:
    Hello,

    Thanks a lot for this one!
    Great addition!

    You're most welcome.

      My Computers


 

Tutorial Categories

Add or Remove Run as administrator Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


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

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




Windows 10 Forums