In Windows 11, Microsoft introduced a feature called “App Execution Aliases” to deeply integrate Microsoft Store applications with the traditional Command Prompt and PowerShell environments. The most infamous example of this is Python. If you open a terminal and type python, instead of returning a standard “command not found” error, Windows intercepts the command. It then violently hijacks your terminal session and forces the Microsoft Store app to open, specifically navigating to the Python installation page.
While Microsoft intended this as a helpful shortcut for novice users, it is an absolute nightmare for developers and system administrators. If you are trying to troubleshoot a broken PATH variable or manage multiple local Python virtual environments, having the OS randomly open the Microsoft Store every time a script fails is incredibly frustrating. To ensure your terminal behaves predictably and only executes the binaries you explicitly install, you must completely disable these execution aliases.
Disabling Aliases via Windows Settings
You can turn off these command-line interceptions globally from within the modern Settings application.
- Click the Start button and select the Settings gear icon (or press Windows Key + i).
- In the left-hand navigation sidebar, click on Apps.
- In the main panel, click on Advanced app settings.
- Click on the section labelled App execution aliases.
- You will be presented with a long list of executable names (such as
python.exe,python3.exe,winget.exe, and various Xbox services). - Scroll down the list and find the toggles for App Installer (python.exe) and App Installer (python3.exe).
- Click the toggle switches to turn them Off.
- (Optional) While you are here, you can turn off any other aliases you do not want hijacking your command prompt, such as Cortana or the Xbox Game Bar.
The change takes effect immediately without requiring a reboot. The next time you open Command Prompt and type python without having the binary properly installed in your PATH, the terminal will correctly return the standard 'python' is not recognized as an internal or external command error message, leaving the Microsoft Store closed.