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

Closed
opened 2026-01-31 00:06:40 +00:00 by claunia · 2 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:40 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Nov 25, 2019):

Hey, you're in luck! We just fixed this, but unfortunately it's not going out on the current release train. /dup #2563

@DHowett-MSFT commented on GitHub (Nov 25, 2019): Hey, you're in luck! We just fixed this, but unfortunately it's not going out on the current release train. /dup #2563
Author
Owner

@ghost commented on GitHub (Nov 25, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Nov 25, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5170