Reset App Execution Alias Overrides in Windows 11
In this article
Yes, you can reset app execution alias overrides in Windows 11 by accessing Advanced App Settings in the Apps & features section of Settings. This restores default command-line shortcuts for apps like python, wsl, or git, which may have been redirected or disabled by user or app settings. Resetting them ensures system-wide commands work as expected in Command Prompt, PowerShell, or terminal emulators. Before proceeding, ensure you're signed in with an administrator account and that no critical apps are actively relying on custom alias behavior.
What You'll Need
- Administrator access to the Windows 11 device
- Access to the Settings app (no third-party tools required)
- Basic familiarity with system settings navigation
Step-by-Step
- Press Windows + I to open the Settings app. This is the fastest way to access system configuration menus in Windows 11.
- In the left-hand navigation panel, click on Apps. This opens the Apps & features section where all installed applications and system app settings are managed.
- On the right side, click Advanced app settings. This option may take a moment to load, as it retrieves system-level app configurations. Note: Menu labels may vary slightly depending on your Windows 11 version or language pack, but the path remains consistent across builds.
- In the Advanced app settings window, locate and click App execution aliases. This section lists command-line shortcuts that can be toggled on or off for specific apps.
- Review the list of available aliases. Each entry shows the command name (e.g.,
python.exe,wsl.exe,git.exe) and a toggle switch indicating whether it's enabled or disabled. - For each alias that has been manually disabled or overridden, click the toggle to turn it on. This restores the system’s default behavior for that command in terminal environments.
- If you want to reset all aliases to their default state, disable any that were enabled manually, then re-enable them one by one. Windows does not offer a bulk reset button, so this must be done individually.
- After adjusting the toggles, close the Settings app. No restart is required—changes take effect immediately.
- Open Command Prompt or PowerShell and test a previously non-working command (e.g., type
python --versionand press Enter). If the alias was successfully reset, the command should now execute the associated app.
Common Mistakes
- Assuming a reset button exists: Windows 11 does not provide a single “Reset all” button for app execution aliases. Users often expect one, but each toggle must be managed manually.
- Confusing aliases with PATH variables: App execution aliases are separate from the system PATH. Disabling an alias prevents the command from working even if the app is in PATH. Do not edit environment variables unless necessary.
- Overlooking admin rights: While viewing aliases doesn’t require admin access, some system-level apps may not appear or respond correctly without administrator privileges.
- Expecting immediate feedback: Toggling an alias doesn’t show a confirmation message. Always test the command in a new terminal session to verify the change.
Tips
- Use PowerShell to list active aliases: Run
where.exe python(or another alias name) to see which executable is being called. This helps confirm whether the alias points to the expected location. - Check for third-party app interference: Tools like Python Launcher, Node Version Manager, or WSL distributions sometimes modify aliases during installation. Reinstalling or repairing those apps may restore correct defaults.
- Disable conflicting software temporarily: If an app like Anaconda or Git Bash overrides system commands, disable its shell integration first, then reset the alias.
- Use Windows Terminal for testing: It supports multiple shells and provides a clean environment to verify alias functionality across PowerShell, CMD, and WSL.
- Close and reopen your terminal. Changes to aliases are not visible in already-running sessions.
- Verify the associated app is installed. An enabled alias won’t work if the target executable is missing or uninstalled.
- Run
where aliasname(e.g.,where git) to check which file is being called. If it points to an unexpected location, another program may be intercepting the command via PATH. - Check the app’s installation directory and ensure the executable exists. For example,
python.exeshould be in a Python installation folder under Program Files or AppData. - If the alias toggle disappears or won’t turn on, the app may have been uninstalled or corrupted. Reinstall the app to restore the alias entry.
- As a last resort, reset app settings via Settings > Apps > [App Name] > Advanced Options > Reset. This clears all app-specific configurations, including alias state, but does not delete user data.
Troubleshooting
If resetting app execution aliases doesn’t restore command functionality, follow these steps in order:
Frequently Asked Questions
What are app execution aliases in Windows 11?
They are system-provided command-line shortcuts that allow certain apps to be launched from Command Prompt or PowerShell using simple names like python or wsl, even if the app isn’t in the system PATH.
Why did my python command stop working?
It may have been disabled in App execution aliases, especially after installing Python from the Microsoft Store or another version that conflicts with existing installations.
Does resetting aliases uninstall the app?
No. Resetting only restores the command-line shortcut. The app remains installed and can still be launched from its icon or file location.
Can I disable app execution aliases for security?
Yes. Disabling aliases like wsl.exe or powershell.exe can prevent unauthorized script execution in restricted environments, but may break legitimate workflows.
Why don’t I see an alias for my installed app?
Only apps that register with the Windows App Execution Alias system appear here. Most desktop apps installed via traditional installers do not support this feature.
Do I need to restart after changing an alias?
No. Changes apply immediately, but you must open a new terminal window to use the updated alias.