Terminal quits immediately if %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ is not on PATH #5167

Open
opened 2026-01-31 00:06:38 +00:00 by claunia · 0 comments
Owner

Originally created by @rossng on GitHub (Nov 25, 2019).

Environment

Windows build number: Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?

Steps to reproduce

  1. Remove %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ from your system PATH variable
  2. Start Windows Terminal

Expected behavior

Windows Terminal warns you that PowerShell cannot be found, or perhaps launches a fallback cmd session instead. I encountered this issue because some unruly installer erased my PATH 😒

Actual behavior

The Windows Terminal UI flashes briefly and immediately quits.

Originally created by @rossng on GitHub (Nov 25, 2019). # Environment ```none Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0 Any other software? ``` # Steps to reproduce 1. Remove `%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\` from your system `PATH` variable 2. Start Windows Terminal # Expected behavior Windows Terminal warns you that PowerShell cannot be found, or perhaps launches a fallback `cmd` session instead. I encountered this issue because some unruly installer erased my `PATH` 😒 # Actual behavior The Windows Terminal UI flashes briefly and immediately quits.
claunia added the Resolution-Duplicate label 2026-01-31 00:06:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5167