5

I have a number of different apps installed on my Windows 10 computer that use the App Execution Aliases feature (Settings -> Apps and Features -> App Execution Aliases). However, with the exclusion of Windows Subsystem for Linux (WSL), none of these aliases work. I have tried launching them (by typing in the alias name) with:

  • Powershell
  • Command Prompt
  • New Windows Terminal
  • Run Menu

Below is an image of the App Execution Alias menu enter image description here

Edit: To clarify what happens when it does not work:
When I type in the app execution alias (Example: Spotify.exe or winget.exe) into any command prompt, I get a message that the command cannot be found.

evandrix
  • 123
  • 1
  • 4

2 Answers2

6

App aliases are stored in %USERPROFILE%\AppData\Local\Microsoft\WindowsApps

This can be verified using the where command:

C:\Users\Daniel>where spotify
C:\Users\Daniel\AppData\Local\Microsoft\WindowsApps\Spotify.exe

By default, this is the single entry in the per-user %PATH% environment variable:

enter image description here

(Only had a German VM with a clean account at hand.)

If, for whatever reason, this entry is missing, you can easily add it again. Remember to add it to the “User variables” section’s %PATH% variable (usually visible as “Path” in the list). Some program installers mess with this list to add themselves to it. It doesn’t always end well.

user219095
  • 65,551
1

I was getting this same error while trying to open Terminal as an admin with a separate account.

In order fix it in my case, the admin account needed to have its path for terminal set to the non-admin's app data path.

Austin
  • 11
  • 2