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.
| Step | Component | Result |
|---|---|---|
| 1. Command lookup | Shell or CreateProcess | Finds the stub through the PATH search order |
| 2. Reparse read | File system and loader | Reads package family name and app ID |
| 3. Activation | AppX deployment services | Confirms the package is installed and registered |
| 4. Process start | Kernel and loader | Runs the real binary with package identity |
| 5. Console attach | Console host or Windows Terminal | Connects standard input and output to the caller |
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.
| Alias | Providing package | Typical purpose |
|---|---|---|
| wt.exe | Windows Terminal | Opens a terminal window or new tab |
| winget.exe | App Installer | Runs the Windows Package Manager client |
| python.exe | Python installer stub or Store Python | Starts Python or offers the Store page |
| notepad.exe | Notepad (Store version) | Opens the modern Notepad app |
| mspaint.exe | Microsoft Paint | Opens the packaged Paint app |
| ubuntu.exe | Linux distribution package | Starts a WSL distribution shell |
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.
| Mechanism | Works from console | Scope | Removal behavior |
|---|---|---|---|
| App execution alias | Yes | Per user | Removed with the package |
| PATH entry | Yes | Per user or machine | Often left behind by installers |
| App Paths registry key | Run dialog and ShellExecute only | Per user or machine | Depends on the uninstaller |
| Protocol activation | Indirectly through start | Per user | Removed with the package |
| Start menu shortcut | No | Per user or machine | Depends on the installer |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Command opens the Store | Installer stub alias is active | Turn off the alias or install the app |
| Wrong version starts | Alias found before another installation | Reorder PATH or disable the alias |
| Command not recognized | Alias toggled off or WindowsApps missing from PATH | Re-enable alias and restore the PATH entry |
| Access denied when reading the stub | Tool treats the reparse point as a normal file | Launch it instead of copying or hashing it |
| Alias missing for a service account | Package registered only for interactive users | Register the package for that account |
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.