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
- Launch the Registry Editor (
- Go to the following registry key:
- In the right-pane, right-click LegacyDisable and choose Delete.
- Exit the Registry Editor.
If for some reason you’re unable to launch Regedit.exe from Start, try from Task Manager.
- Open Task Manager (Ctrl+Shift+Esc)
- Click File, Run new task
- Tick Create this task with administrative privileges
- 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!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.