7

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 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?
  • —"Programs that are built into Windows, such as notepad.exe, do respect the Ctrl+Shift+Enter keyboard shortcut to run them as admin." That's not true in my test. NSLOOKUP, IPCONFIG and NETSH do not respect the key combination. Then again, NSLOOKUP does not have a shortcut in the Start menu. – user477799 Mar 16 '17 at 18:29
  • Good catch: Apparently "built into Windows" is not the same as "Desktop app". Tried on my Windows 10 just now: NSLOOKUP is shown on the Start Menu as a "Run command", not a "Desktop app". I'll edit appropriately. Thanks! – Jon Schneider Mar 16 '17 at 18:31
  • In my Start menu "ffmpeg prompt" shows up with the label "Desktop app" but does not respond to the Ctrl+Shift+Enter either. Because it is a .bat file not .exe. – user477799 Mar 16 '17 at 18:35
  • I have solved this for myself using Ctrl+Alt+Enter (and additional typing-based launcher), but I don't know if your are interested. The principle of launching (incremental search, then launch) remains identical. – miroxlav Aug 23 '17 at 21:25
  • @miroxlav Maybe! What "typing-based launcher" do you mean? – Jon Schneider Aug 23 '17 at 21:27
3
+50

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.

  • 1
    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 – Jon Schneider Aug 25 '17 at 15:02
  • 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". – Jon Schneider Aug 25 '17 at 15:03
  • @JonSchneider – for me, "Pin to Start" does not work, it is getting ignored. Only making a shortcut in Start menu works as expected. – miroxlav Aug 25 '17 at 15:23
  • 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 – Jon Schneider Aug 25 '17 at 15:25
  • @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. – miroxlav Aug 25 '17 at 15:29

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.