If you are a developer setting up a Python or Node.js development environment on a brand-new Windows 11 machine, you will almost certainly run into an infuriating bug. You download the official Python installer, verify it is in your System PATH, and type python into the Command Prompt. Instead of launching the Python interpreter, Windows suddenly hijacks the command, completely ignores your installed software, and aggressively opens the Microsoft Store to try and sell you their version of Python.
This happens because of a highly aggressive, deeply flawed Windows 11 feature called App Execution Aliases. Microsoft has hardcoded the operating system to intercept specific terminal commands (like python.exe or python3.exe) and automatically redirect them to the Microsoft Store as a misguided “convenience” feature.
If you want your Command Prompt to actually respect your PATH variables and execute the software you manually installed, you must forcefully disable these aliases.
Step 1: Open the Windows Settings App
Unlike many developer-centric settings that are buried in the Control Panel, App Execution Aliases are exposed in the modern Windows UI, but they are hidden under several layers of menus.
- Click the Start Button and click the gear icon to open Settings (or press Windows Key + I).
- On the left-hand navigation menu, click on Apps.
Step 2: Navigate to Advanced App Settings
- In the main window, click on Advanced app settings.
- Look for the section titled App execution aliases and click on it.
Step 3: Disable the Hijacked Commands
You will now see a long list of executable commands that Windows 11 has claimed for itself. Every single switch that is toggled “On” represents a command that Microsoft is actively intercepting.
- Scroll through the list until you find the specific aliases causing your conflict.
- If you are a Python developer, look for App Installer (python.exe) and App Installer (python3.exe).
- Flip the toggle switches next to them from On to Off.
(Note: You can also disable aliases for other intrusive apps here, such as Cortana or the Xbox Game Bar, if you want to ensure they never accidentally launch via a rogue command line script).
The Result
You can now safely close the Settings app. The change takes effect immediately without requiring a system reboot.
Open a brand new Command Prompt window (you must close and reopen it if you already had one running). Type python and press Enter. The Microsoft Store will no longer pop up. The command will instantly bypass the interception layer, hit your System PATH, and successfully launch the Python interpreter you actually installed, giving you total control over your development environment once again.