Win+X Command Prompt Admin File Association Error, and Run As Administrator Option 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 administrator.

Solution

Use these steps to fix the problem.

1. Click Start, type Regedit.exe and press {ENTER}

2. Go to the following registry key:

HKEY_CLASSES_ROOT\exefile\shell\runas

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.

Open Task Manager (CTRL+SHIFT+ESC)

Click File, Run new task

Type Regedit.exe

Tick "Create this task with administrative privileges"

Click OK.

That should do it!

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.

2 thoughts on “Win+X Command Prompt Admin File Association Error, and Run As Administrator Option 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.

Comments are closed.

Share2
Tweet
+1
Share1