Share via

How do I fix Terminal after I upgraded Powershell in Windows 11?

Fred Schmid 26 Reputation points
2026-05-04T20:40:49.7266667+00:00

In Windows 11 I upgraded my PowerShell 7.6 to 7.6.1 from the command line in Terminal. After upgrading Terminal can no longer find the pwsh.exe file. I used something like this "iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI""

Why didn't it update the PowerShell 7 profile correctly? How do I fix it?

Fred

Windows for home | Windows 11 | Apps

Answer accepted by question author

AI answer

2026-05-04T20:41:02.68+00:00

The PowerShell 7 MSI installer installs the new pwsh.exe side‑by‑side and can change its install path. Windows Terminal profiles reference a specific command line (path or name). After the upgrade, the profile that previously launched PowerShell 7 is still pointing to the old pwsh.exe location, so Terminal can no longer start it.

To fix Terminal, update the profile that launches PowerShell 7 so it points to the correct command:

  1. Open Windows Terminal.
  2. Open Settings.
  3. In Profiles, select the profile that used to start PowerShell 7 (often named PowerShell or similar, but distinct from Windows PowerShell).
  4. Check the Command line field:
    • If it contains a full path to pwsh.exe that no longer exists, replace it with the correct path or simply pwsh.exe if pwsh is on PATH.
    • Save the changes.
  5. Still in Settings → Startup, ensure the Default profile is set to this updated PowerShell 7 profile if that is the shell that should open by default.

If the PowerShell 7 profile is missing entirely, add it back:

  1. In Windows Terminal Settings, scroll to the bottom of the profiles list and select + Add a new profile.
  2. Set Command line to pwsh.exe (or the full path to the new pwsh.exe).
  3. Name the profile (for example, PowerShell 7).
  4. Save and optionally set it as the Default profile under Startup.

This rebinds Windows Terminal to the upgraded PowerShell 7.6.1 installation.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.