General Computing
windows-10 keyboard-shortcuts uac start-menu
Updated Sat, 20 Aug 2022 03:20:24 GMT

Ctrl+Shift+Enter to "Run as Admin" works on "Desktop app" programs but not "Run command" programs


Main Question

Standalone .exe utility programs that I have on my computer, when run from the Start menu using the Ctrl+Shift+Enter keyboard shortcut, do not run as administrator. Instead, the program just runs without displaying the UAC prompt, and without elevated permissions.

Certain programs that are built into Windows, such as notepad.exe, do respect the Ctrl+Shift+Enter keyboard shortcut to run them as admin.

How can I get standalone .exe utility programs which display in the Windows Start menu as "Run command", not as "Desktop app", to run with administrator permissions when run from the Start menu with Ctrl+Shift+Enter?

Background / More Info

At first, I thought the problem was that the Ctrl+Shift+Enter keyboard shortcut to run a program as admin from the Start Menu wasn't working at all on my new PC running Windows 10.

After some experimentation, I noticed that Ctrl+Shift+Enter to run as admin does work for programs which are labeled in the Start Menu as "Desktop app", for example, "Notepad":

Windows 10 "Desktop app" in Start Menu

However, for a custom .exe utility programs which I'd copied directly onto my local drive without running an installer program, Windows 10's Start Menu labels as "Run command", and Ctrl+Shift+Enter does not run them as admin; it just runs them without a UAC dialog and without elevated permissions:

enter image description here

As noted above, what I'm after is to get installerless utility .exe programs like BoundsTest.exe to run as admin from the Start menu on a press of Ctrl+Shift+Enter, without having to resort to (slightly) more cumbersome means like right-clicking on the program and selecting "Run as administrator" (which does work).

So, how can I accomplish either or both of:

  1. Get Windows 10 to treat/recognize a given "Run command" program as a "Desktop app" program instead?
  2. Configure Windows 10 to allow Ctrl+Shift+Enter to run "Run command" programs as administrator?



Solution

Add shortcut of your EXE file into Start menu (and launch the shortcut once).

This promotes item status labeled as Run command to Desktop app which enables use of Ctrl+Shift+Enter.

Details:

  1. Create shortcut to your EXE file and place it into your local Start menu: C:\Users\YourUserName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\
    (Alternative is placing it into Start menu for all users:
    C:\ProgramData\Microsoft\Windows\Start Menu\ in Windows 10)

  2. Open Start menu and locate the shortcut by navigating to it not by typing, because by typing you will still get Run command label.

  3. Launch the shortcut.

  4. Now if you are typing to find the shortcut, it appears labeled as Desktop app.

  5. Use Ctrl+Shift+Enter to launch this app As Administrator.


Edit: based on Jon's comments it can be easier to select "Pin to Start" after right-clicking the EXE file. Valid shortcut (created by either way) subsequently creates registry key in HKCU\Software\Microsoft\Windows\CurrentVersion\UFH\SHC which actually causes promotion of the item. The item can be subsequently removed from the Start menu, its recognition as Desktop app remains in place.





Comments (5)

  • +2 – Very interesting technique! And it works! I found that on my Windows 10, doing this has the effect of creating a new registry value at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UFH\SHC — Aug 25, 2017 at 15:02  
  • +1 – Alternative approach based on your technique that also works: Right-click the .exe file and select "Pin to Start", then (as in your technique) run it once. Afterwords, the pinned item can be removed, but Windows continues to treat the .exe program as a "Desktop app". — Aug 25, 2017 at 15:03  
  • +1 – @JonSchneider for me, "Pin to Start" does not work, it is getting ignored. Only making a shortcut in Start menu works as expected. — Aug 25, 2017 at 15:23  
  • +1 – Fair enough, feel free to remove that from your answer since it isn't reliable. Thank you so much for your help with this problem, I'm excited to to finally have a way to get Ctrl+Shift+Enter to work reliably on Windows 10! :-D — Aug 25, 2017 at 15:25  
  • +1 – @JonSchneider if ti worked for you, maybe it will still work for someone :) Thank you for that finding of Registry key! And also for useful question, I added few shortcuts to few items in my Tools directory. — Aug 25, 2017 at 15:29