Remove "Run as administrator" from the context menu for certain files?

Page 1 of 3 123 LastLast

  1. Posts : 247
    Microsoft Windows 10 Pro 64 bits
       #1

    Remove "Run as administrator" from the context menu for certain files?


    I searched a lot before posting, even found this tutorial right here. But if I got it right it removes that command for all file types.

    I want to remove it just for certain file types, like images, videos, and documents. Is it possible?

    TIA.

    Windows 10 Pro 22H2 9045.2846
    Windows Feature Experience Pack 120.2212.4190.0
      My Computer


  2. Posts : 4,807
    Windows 11 Pro 64 Bit 22H2
       #2

    What are you trying to do, what is your objective?
    If the user who is signed in is a Standard User, and does not have the Administrator Users Password, they would not be able to run the app or command as Admin.
      My Computer


  3. Posts : 247
    Microsoft Windows 10 Pro 64 bits
    Thread Starter
       #3

    spunk said:
    What are you trying to do, what is your objective?
    If the user who is signed in is a Standard User, and does not have the Administrator Users Password, they would not be able to run the app or command as Admin.
    I want to remove the Run as administrator option mainly for image files, because I use the XnView Shell Extension to preview images on the context menu, which I do a lot of times on a daily basis as part of my work. And since Windows hasn't fixed that lack of auto scrolling when hovering the mouse pointer on these tiny menu arrows, it's very annoying when I need to use certain commands that get beyond reach, so I have to click on these arrows to see and use them.

    Remove "Run as administrator" from the context menu for certain files?-contxtmn.png

    In a nutshell, I want the context menu as minimal as possible.

    I know I can use Context Menu Tuner, Easy Context Menu, ShellExView and a few others to edit context menus. But I couldn't find the option I want in any of these.

    Oh, BTW, I am the only user — and administrator — of the computer.
      My Computer


  4. Posts : 9,792
    Mac OS Catalina
       #4

    Run as admin can only be blocked with admin uswr password if the user is a Standard user.
      My Computer


  5. Posts : 2,926
    Windows 10 Pro for the Bro
       #5

    That's a bit weird.

    On my computer, the only "Run as administrator" applies to exe files, and links to exe files.
    Not documents at all. Not jpgs, not mp3s, etc...

    Remove "Run as administrator" from the context menu for certain files?-image.png
      My Computer


  6. Posts : 9,792
    Mac OS Catalina
       #6

    You are correct.
      My Computer


  7. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    I'm with pepanee & bro67.
    I have not added or altered Run as Admin in my context menu so it only offers Run as Admin for executable files such as .exe, .bat, ...


    All the best,
    Denis
      My Computer


  8. Posts : 247
    Microsoft Windows 10 Pro 64 bits
    Thread Starter
       #8

    pepanee said:
    That's a bit weird.

    On my computer, the only "Run as administrator" applies to exe files, and links to exe files.
    Not documents at all. Not jpgs, not mp3s, etc...
    Yes, indeed! At first I thought of asking why that option is available for non-executables. But the day before yesterday I got this WU update (KB5025221) which I thought could be the culprit. Sometimes such updates bring issues like that. So I focused on how to "clean the mess" in a more superficial way.
      My Computer


  9. Posts : 16,974
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #9

    Paultx said:
    Yes, indeed! At first I thought of asking why that option is available for non-executables.
    Did you add Run as Admin to your context menu?
    Pepanee, bro67 & I have been referring to unaltered context menus. In unaltered context menus, Run as Admin only appears for executables.


    All the best,
    Denis
      My Computer


  10. Posts : 43,027
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #10

    Curiously, I see Run as admin for e.g. jpg, png, pdf - and no idea why or how...

    Changing their association doesn't seem to affect that FWIW.
      My Computers


 

  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 07:13.
Find Us




Windows 10 Forums