Run as administrator -> This file does not have a program associated..

Page 1 of 2 12 LastLast

  1. Posts : 29
    Windows10
       #1

    Run as administrator -> This file does not have a program associated..


    There seems to be a permanent "Run as administrator" entry in my right-click context menu. If I click on this for anything but an executable or shortcut to an executable, Windows 10 throws the below error, even if I do have a program associated with the file type.

    Run as administrator -> This file does not have a program associated..-untitled.png
      My Computer


  2. Posts : 5,452
    windows 10 Pro ver 21H2 build 19044.1348
       #2

    Not sure what you want......................
    Would you want to get rid of the Run As Admin ?
    If yes, use this tutorial :
    http://www.sevenforums.com/tutorials...ndows-7-a.html

    Step 3 To Remove "Run as administrator" from the Context Menu
      My Computer


  3. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #3

    Why would you want to open a non-exectable file with administrator rights ? That was never an option.
      My Computers


  4. Posts : 48
    Win 10
       #4

    Some software patches require the need to choose run-as-admin.
      My Computer


  5. Posts : 1,621
    Windows 10 Home
       #5

    This is a wild guess -- are you attempting to use explorer.exe to tree-climb, pick something, click on that something? If so, it's possible that your explorer.exe operations are corrupt. I can fix Windows 7 when this happens, however, I do not know how to fix Windows 8+ or 10, if it is indeed an explorer.exe corruption problem.
      My Computer


  6. Posts : 29
    Windows10
    Thread Starter
       #6

    There seems to be some confusion about this ... so, here are a couple screen-shots to help show what's happening.

    The first one shows me right-clicking on a TXT file. You'll notice the option for "Run as administrator". If I opt for this, it will generate the error from my original post.
    Run as administrator -> This file does not have a program associated..-untitled.png

    The second one shows me right-clicking on an EXE file. It also has "Run as administrator". If I opt for this, it will work as expected.
    Run as administrator -> This file does not have a program associated..-untitled2.png

    It's worth noting that this computer is an upgrade from Windows 7, and not a clean install.

    Windows 7 never had the option to "Run as administrator" for anything but executable files. I have no clue where this option is coming from in Win10.
      My Computer


  7. Posts : 68,894
    64-bit Windows 11 Pro for Workstations
       #7

    Hello Itwally, :)

    You shouldn't have "Run as administrator" on a non executable file like a .log file. This is why you are getting the error.

    It seems like you may have used something that added "Run as administrator" to the context menu of all files?

    If you like, downloading and merging the .reg file below should remove "Run as administrator" from the context menu of .log files. If you have any other file types this happens with afterwards, then please let me know what they are, and I'll modify the .reg file to include them as well.

    Remove_bad_Run_as_administrator.reg
      My Computers


  8. Posts : 29
    Windows10
    Thread Starter
       #8

    Brink said:
    Hello Itwally, :)

    You shouldn't have "Run as administrator" on a non executable file like a .log file. This is why you are getting the error.

    It seems like you may have used something that added "Run as administrator" to the context menu of all files?

    If you like, downloading and merging the .reg file below should remove "Run as administrator" from the context menu of .log files. If you have any other file types this happens with afterwards, then please let me know what they are, and I'll modify the .reg file to include them as well.

    Remove_bad_Run_as_administrator.reg
    Brink,

    Run as admin is available or all file types. I'm fairly certain it was not under Windows 7.

    I looked over your REG file, and allowed it to modify the registry. No dice. Wherever this context menu entry is coming from, it isn't HKCR\* or HKCR\.log

    Thanks
      My Computer


  9. Posts : 68,894
    64-bit Windows 11 Pro for Workstations
       #9

    In that case, use the Find and Find next feature in Registry Editor to search for runas to see what locations it's under. Post them here, and I'll be happy to take a look to see what shouldn't be there before deleting anything.
      My Computers


  10. Posts : 19,518
    W11+W11 Developer Insider + Linux
       #10

    I don't get Run as administrator for any but executable files.
      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 22:58.
Find Us




Windows 10 Forums