Win+X Command Prompt Admin File Association Error; Run As Administrator Missing

When you right-click on an executable file or a shortcut, the Run as Administrator may be missing. From Windows 10 Start menu, if you right-click a program, click More and select Run as administrator, nothing may happen.

Right-clicking Start and clicking Command Prompt (Admin) or PowerShell (Admin) may launch some another application or causes the file association error below, with the shortcut name “WinX\Group3\01 – Command Prompt.lnk” in the title. Also, Ctrl+Shift+Enter may not run an executable elevated or does nothing.

This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel.

These symptoms can occur if the LegacyDisable value has been set for the runas verb for .exe files, which prevents the user from launching programs in elevated mode. Despite these issues, programs that run elevated by default, show up the UAC prompt and work fine. For example, the Registry Editor always runs elevated when you’re logged on as an administrator.

Fix: Win+X Command Prompt Admin File Association Error

  1. Launch the Registry Editor (regedit.exe)
  2. Go to the following registry key:
  3. In the right-pane, right-click LegacyDisable and choose Delete.
  4. Exit the Registry Editor.

If for some reason you’re unable to launch Regedit.exe from Start, try from Task Manager.

  1. Open Task Manager (Ctrl+Shift+Esc)
  2. Click File, Run new task
  3. Type regedit.exe
  4. Tick Create this task with administrative privileges
  5. Click OK.

That should do it!

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

3 thoughts on “Win+X Command Prompt Admin File Association Error; Run As Administrator Missing”

  1. After trying a dozen or so suggestions, this is the one that finally worked. It worked perfectly and instantaneously for me (no reboot was necessary). Thanks for the article.


Leave a Comment