Add 'Run with priority' Context Menu in Windows 10  

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 71,591
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #10

    Paul Black said:
    [1] Sorry, was it the Add Run With Priority or the Add Take Ownership that removed the Run as Administrator?
    [2] Yes, I did use the Take Ownership context menu from the TenForums tutorial!
    Yes, the Add Take Ownership could have removed it depending on which version you used.

    Just to verify, did you download and use the current version of the "Take Ownership" context menu from the tutorial, and didn't use some older copy you had on the drive?

    It shouldn't remove "Run as administrator" for executable type files.
      My Computers


  2. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #11

    Brink said:
    Yes, the Add Take Ownership could have removed it depending on which version you used.

    Just to verify, did you download and use the current version of the "Take Ownership" context menu from the tutorial, and didn't use some older copy you had on the drive?

    It shouldn't remove "Run as administrator" for executable type files.
    OK thanks. I have downloaded the latest Add Run With Priority and Add Take Ownership. I will test them again tomorrow.

    So if it was the Take Ownership that removed the Run as Administrator, then that means that it was the Add Run With Priority that caused me to not being able to open anything and it giving me the message I posted above. Again, I will test it tomorrow and report back.

    Thanks for your time, it is appreciated.
      My Computer


  3. Posts : 71,591
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #12

    Paul Black said:
    OK thanks. I have downloaded the latest Add Run With Priority and Add Take Ownership. I will test them again tomorrow.

    So if it was the Take Ownership that removed the Run as Administrator, then that means that it was the Add Run With Priority that caused me to not being able to open anything and it giving me the message I posted above. Again, I will test it tomorrow and report back.

    Thanks for your time, it is appreciated.
    The current Take Ownership in our tutorial here will not remove "Run as administrator". It may be possible you used an old version or a version from another site that removed "Run as administrator".

    The message may have been caused by an issue with how you set or removed the default app for that file type.
      My Computers


  4. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #13

    Brink said:
    The current Take Ownership in our tutorial here will not remove "Run as administrator". It may be possible you used an old version or a version from another site that removed "Run as administrator".
    I now have the current Take Ownership from your tutorial and will run it tomorrow.
    Brink said:
    The message may have been caused by an issue with how you set or removed the default app for that file type.
    It was ALL programs etc, I had to right-click them and then select Open file location and then right-click them and select Run as Administrator.

    I will test both the Add Run With Priority and Add Take Ownership tomorrow and report back.

    Thanks again!
      My Computer


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

    Ok. I'll be here.
      My Computers


  6. Posts : 7,631
    Windows 10 Home 20H2
       #15

    Paul Black said:
    After I ran this REG file it caused the cmd Run as Administrator to disappear from the right-click Context Menu on the desktop!
    Why not simply use an elevated desktop shortcut? Create Elevated Shortcut without UAC prompt in Windows 10
      My Computer


  7. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #16

    Matthew Wai said:
    Why not simply use an elevated desktop shortcut? Create Elevated Shortcut without UAC prompt in Windows 10
    Thanks Matthew Wai.
      My Computer


  8. Posts : 18,034
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #17

    Hello @Brink,

    It turned out that I WAS using an old version. I used the NEW version and the problem went away!

    I also created a .reg file and the other problem went away . . .
    Code:
    Windows Registry Editor Version 5.00
    
    ; Title     : Add CMD Administrator To Context Menu.
    ; Created By: Paul Black
    ; Created On: 15-Mar-2020
    
    ; ======================================================
    
    ; Add Run As Administrator.
    
    [-HKEY_CLASSES_ROOT\batfile\shell\runas]
    
    [HKEY_CLASSES_ROOT\batfile\shell\runas]
    "MUIVerb"="CMD - Run As Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\batfile\shell\runas\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\
      64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,31,00,22,\
      00,20,00,25,00,2a,00,00,00
    
    ; ------------------------------------------------------
    
    [-HKEY_CLASSES_ROOT\cmdfile\shell\runas]
    
    [HKEY_CLASSES_ROOT\cmdfile\shell\runas]
    "MUIVerb"="CMD - Run As Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\cmdfile\shell\runas\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\
      64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,31,00,22,\
      00,20,00,25,00,2a,00,00,00
    
    ; ------------------------------------------------------
    
    [-HKEY_CLASSES_ROOT\cplfile\shell\runas]
    
    [HKEY_CLASSES_ROOT\cplfile\shell\runas]
    "MUIVerb"="CMD - Run As Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\cplfile\shell\runas\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
      6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,73,00,68,\
      00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,43,00,6f,00,\
      6e,00,74,00,72,00,6f,00,6c,00,5f,00,52,00,75,00,6e,00,44,00,4c,00,4c,00,41,\
      00,73,00,55,00,73,00,65,00,72,00,20,00,22,00,25,00,31,00,22,00,2c,00,25,00,\
      2a,00,00,00
    
    ; ------------------------------------------------------
    
    [-HKEY_CLASSES_ROOT\exefile\shell\runas]
    
    [HKEY_CLASSES_ROOT\exefile\shell\runas]
    "MUIVerb"="CMD - Run As Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @="\"%1\" %*"
    "IsolatedCommand"="\"%1\" %*"
    
    ; ------------------------------------------------------
    
    [-HKEY_CLASSES_ROOT\mscfile\shell\RunAs]
    
    [HKEY_CLASSES_ROOT\mscfile\shell\RunAs]
    "MUIVerb"="CMD - Run As Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\mscfile\shell\RunAs\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
      63,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,\
      00,00,00
    
    ; ------------------------------------------------------
    
    ; Add MSI.
    
    [HKEY_CLASSES_ROOT\Msi.Package\Shell\runas]
    "MUIVerb"="CMD - Run As Administrator"
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command]
    @=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
      00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\
      73,00,69,00,65,00,78,00,65,00,63,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,\
      00,69,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00
    
    ; ======================================================
    
    ; Add Open Here.
    
    [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdmin]
    @="CMD - Open Here As Administrator"
    "Extended"=-
    "Icon"="imageres.dll,-5324"
    
    [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdmin\command]
    @="cmd /c echo|set/p=\"%L\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
    
    ; ------------------------------------------------------
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAsAdmin]
    @="CMD - Open Here As Administrator"
    "Extended"=-
    "Icon"="imageres.dll,-5324"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHereAsAdmin\command]
    @="cmd /c echo|set/p=\"%V\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
    
    ; ------------------------------------------------------
    
    [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHereAsAdmin]
    @="CMD - Open Here As Administrator"
    "Extended"=-
    "Icon"="imageres.dll,-5324"
    
    [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHereAsAdmin\command]
    @="cmd /c echo|set/p=\"%L\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
    
    ; ------------------------------------------------------
    
    [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHereAsAdmin]
    @="CMD - Open Here As Administrator"
    "Extended"=-
    "Icon"="imageres.dll,-5324"
    
    [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHereAsAdmin\command]
    @="cmd /c echo|set/p=\"%V\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
    
    ; ======================================================
    Best Regards, Paul.
      My Computer


  9. Posts : 71,591
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #18

    Paul Black said:
    Hello @Brink,

    It turned out that I WAS using an old version. I used the NEW version and the problem went away!

    Best Regards, Paul.
    Great news Paul.
      My Computers


  10. Posts : 526
    Win7 Pro X64, Win10 Pro x640
       #19

    Good afternoon @Brink

    Regarding adding a context menu to run *.exe files at different priority levels, is there any advantage to running, and therefore adding analogous right-click entries to ps1, bat, cmd, com, jse, js, msi, msc, wsf, wsh, vbe, vbs files as well? I can figure out how to add the entries but what I really want to know is if they are necessary. For example, would bat files or javascript files benefit from running at different priority levels?
      My Computer


 

Tutorial Categories

Add 'Run with priority' 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 06:23.
Find Us




Windows 10 Forums