App execution aliases

On this page 7

App execution aliases are command names that a packaged Windows app registers so that it can be started by typing a simple executable name, such as wt.exe, winget.exe or python.exe, in a console window, the Run dialog or a script. Within the area of Windows apps & Store, they bridge the gap between modern MSIX packages, which install into a protected location, and the classic expectation that a program can be launched by name from the PATH.

Each alias is a small per-user stub file that Windows resolves to the real package at launch time. Users can switch individual aliases on or off in Settings, which makes the feature a frequent source of both convenience and confusion, especially when two programs claim the same command name.

How app execution aliases resolve a command

An app execution alias works through a zero-byte reparse point stored in the folder %LOCALAPPDATA%\Microsoft\WindowsApps, which Windows adds to the user PATH by default. The file looks like an ordinary executable, but it carries the reparse tag IO_REPARSE_TAG_APPEXECLINK, which identifies the package family name, the application ID and the target executable inside the package.

When a shell or the CreateProcess function opens the stub, the system reads the reparse data, activates the packaged app with its package identity and starts the real binary from the protected WindowsApps folder under Program Files. The caller never needs read access to that folder, which is why aliases are the supported launch path for packaged command-line tools.

The resolution steps below show what happens between typing a command and the running process.

StepComponentResult
1. Command lookupShell or CreateProcessFinds the stub through the PATH search order
2. Reparse readFile system and loaderReads package family name and app ID
3. ActivationAppX deployment servicesConfirms the package is installed and registered
4. Process startKernel and loaderRuns the real binary with package identity
5. Console attachConsole host or Windows TerminalConnects standard input and output to the caller
Resolution steps for an alias launch

Declaring and managing aliases

A developer declares an alias in the package manifest with the windows.appExecutionAlias extension, usually in the uap3 or uap5 namespace. The declaration names the alias file, for example wt.exe, and may mark the app as a console subsystem program so that it inherits the calling console instead of opening a new window.

Windows creates the stub for every user who has the package registered, and it removes the stub when the package is uninstalled. In Windows 11 the list sits under Settings, Apps, Advanced app settings, App execution aliases; in Windows 10 it appears under Apps and features. Each entry has a toggle, and turning it off deletes the stub for that user only.

The following table lists common aliases and the packages that typically provide them.

AliasProviding packageTypical purpose
wt.exeWindows TerminalOpens a terminal window or new tab
winget.exeApp InstallerRuns the Windows Package Manager client
python.exePython installer stub or Store PythonStarts Python or offers the Store page
notepad.exeNotepad (Store version)Opens the modern Notepad app
mspaint.exeMicrosoft PaintOpens the packaged Paint app
ubuntu.exeLinux distribution packageStarts a WSL distribution shell
Common aliases on current Windows systems

Aliases compared with other launch mechanisms

App execution aliases solve a problem that older mechanisms handle differently. A Win32 app can simply add its own folder to the PATH or register an App Paths key in the registry, while packaged apps cannot write freely to those locations because MSIX and AppX keep installations isolated and clean on removal.

The table compares the main ways of starting a program by name.

MechanismWorks from consoleScopeRemoval behavior
App execution aliasYesPer userRemoved with the package
PATH entryYesPer user or machineOften left behind by installers
App Paths registry keyRun dialog and ShellExecute onlyPer user or machineDepends on the uninstaller
Protocol activationIndirectly through startPer userRemoved with the package
Start menu shortcutNoPer user or machineDepends on the installer
Ways to launch a program by name

A key difference is that App Paths entries are honored only by ShellExecute, not by a console that searches the PATH, whereas an alias stub is a real file that any PATH-based lookup can find.

Troubleshooting alias conflicts

Most problems with app execution aliases come from PATH ordering. Because the WindowsApps folder sits in the user PATH, a program installed elsewhere wins only if its folder appears earlier in the search order. The machine PATH is searched before the user PATH, so a system-wide installation usually takes precedence.

The best-known case is the Python installer stub: on a clean system, typing python opens the Microsoft Store page instead of an interpreter, or it returns without output in some shells. Disabling the python.exe and python3.exe aliases, or placing the real interpreter earlier in the PATH, removes the conflict.

SymptomLikely causeFix
Command opens the StoreInstaller stub alias is activeTurn off the alias or install the app
Wrong version startsAlias found before another installationReorder PATH or disable the alias
Command not recognizedAlias toggled off or WindowsApps missing from PATHRe-enable alias and restore the PATH entry
Access denied when reading the stubTool treats the reparse point as a normal fileLaunch it instead of copying or hashing it
Alias missing for a service accountPackage registered only for interactive usersRegister the package for that account
Symptoms, causes and fixes

Administrators should remember that aliases are per user and per package registration. A scheduled task running as SYSTEM or a service account will not find winget.exe unless the package is available to that account, which is a common pitfall in deployment scripts.

Limitations and security considerations

Alias stubs confuse some older tools. Utilities that open the file to read its contents, compute a hash or copy it may fail or report zero bytes, because the stub is a reparse point without data. Backup software and file inventories should treat it as a link rather than as an executable.

  • No arguments are fixed in the alias; all parameters come from the caller.
  • Name collisions between packages are resolved by the toggle in Settings, not automatically.
  • User-writable location: the WindowsApps folder in the profile can be targeted by PATH hijacking attempts, so application control policies such as App Control for Business or AppLocker should evaluate the real target.
  • Elevation follows the target app manifest, not the alias itself.

Explained without jargon

Apps from the Microsoft Store live in a locked folder that you cannot easily open. An app execution alias is a nickname that lets you start such an app by typing its short name, like typing wt to open Windows Terminal.

Think of it as a forwarding address: the nickname file does not contain the program, it only tells Windows where the real program lives. If two apps want the same nickname, you choose which one keeps it with a simple on and off switch in Settings.

A typical use case

A data analyst on a new Windows 11 laptop installs Python 3.12 from the official installer, choosing an installation for all users. When she types python --version in Windows Terminal, the Microsoft Store opens instead of showing a version number, because the user PATH still contains the installer stub alias and the installer did not add its folder to the machine PATH.

She opens Settings, goes to Advanced app settings, App execution aliases, and turns off the entries for python.exe and python3.exe. She then adds the interpreter folder to the PATH and opens a new terminal. The command now prints Python 3.12, while her winget.exe and wt.exe aliases keep working, so package management and the terminal remain unaffected.