How to Fix ‘Windows Cannot Find C:\Windows\System32\wt.exe’ Error in Windows 11

In Windows 11, right-clicking the Start button and selecting ‘Terminal’ or pressing Win + X to launch Windows Terminal is a standard administration workflow. However, users frequently encounter an alert dialogue stating: ‘Windows cannot find ‘C:\Windows\System32\wt.exe’. Make sure you typed the name correctly, and then try again.’ Or alternatively: ‘Windows cannot find ‘wt.exe’.’ Because Windows 11 designates Windows Terminal as the default command-line console host, this error disrupts routine system administration and command prompt access. The issue stems from disabled App Execution Aliases, broken UWP application manifests, or missing system PATH variables.

Why Windows 11 Fails to Locate wt.exe

Unlike traditional Win32 binaries physically stored inside C:\Windows\System32, Windows Terminal is a modern packaged MSIX application. Windows connects system shortcuts to Terminal via an execution alias. Common causes for failure include:

  • Disabled App Execution Alias: The virtual symbolic execution link pointing from %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe to the packaged app container has been toggled off.
  • Corrupted or Uninstalled Windows Terminal Package: Windows Terminal package files inside the hidden WindowsApps directory were uninstalled or corrupted during a Windows Update.
  • Missing WindowsApps Directory in System PATH: If the environment variable %LOCALAPPDATA%\Microsoft\WindowsApps is absent from your user PATH, Windows cannot resolve the wt.exe command.
  • Registry Shell Override Desynchronisation: Stale registry pointers under Directory\Background\shell directing context menus to invalid executable locations.

Step 1: Enable the App Execution Alias for Windows Terminal

In the vast majority of cases, the App Execution Alias toggle for Windows Terminal was inadvertently disabled during a security cleanup or operating system update.

  1. Open the Settings app on Windows 11 (press Win + I).
  2. Navigate to Apps in the left sidebar and select Advanced app settings.
  3. Click on App execution aliases.
  4. Scroll through the alphabetical list to find Windows Terminal and Terminal (linked to wt.exe).
  5. Ensure the toggle switches next to both entries are turned On.
  6. Press Win + R, type wt.exe, and press Enter to verify if Windows Terminal launches successfully.

Step 2: Reinstall or Reset Windows Terminal via Microsoft Store

If the application package files are missing or damaged, resetting or reinstalling the bundle restores the missing execution binaries.

  1. Open Settings > Apps > Installed apps.
  2. Type Windows Terminal into the search box.
  3. Click the three dots (…) next to the app and select Advanced options.
  4. Click Repair, then click Reset if the issue persists.
  5. If Windows Terminal does not appear in your installed apps list, open the Microsoft Store app, search for Windows Terminal, and click Get or Install.

Step 3: Re-register the Windows Terminal Package via PowerShell

If the Microsoft Store fails to deploy the package, you can re-register the system manifest directly using elevated PowerShell commands.

  1. Since Terminal is unavailable, press Win + R, type powershell, and press Ctrl + Shift + Enter to launch PowerShell as an administrator.
  2. Execute the following command to re-register the Windows Terminal AppX package:
    Get-AppxPackage -AllUsers *Microsoft.WindowsTerminal* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
  3. Press Enter and wait for deployment to complete.
  4. Once finished, restart your PC and test opening Terminal via the Win + X menu.

Step 4: Verify the WindowsApps Environment PATH Variable

Windows relies on the WindowsApps environment directory to resolve packaged executable aliases from the Run prompt and File Explorer.

  1. Press Win + R, type sysdm.cpl, and press Enter to open System Properties.
  2. Go to the Advanced tab and click Environment Variables.
  3. In the User variables section, select Path and click Edit…
  4. Check if the following path exists:
    %USERPROFILE%\AppData\Local\Microsoft\WindowsApps
  5. If it is missing, click New, paste the path above, and click OK across all open dialogues to save changes.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.