PowerShell's $ProgressPreference gets changed to 'SilentlyContinue' as soon as any progress is shown. #19102

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

Originally created by @JeremyTBradshaw on GitHub (Dec 19, 2022).

Windows Terminal version

1.15.3465.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

Any time I run any of my scripts that include within them Write-Progress, immediately after, no progress is ever shown again. I figured out that what's happening is the $ProgressPreference is being set to "SilentlyContinue". I do not mess with $ProgressPreference in my scripts ever. I just thought to check it because I was troubleshooting. I can either close/reopen Terminal, or I can do $ProgressPreference = 'continue' to resolve it, but as soon as progress is written again, the issue comes right back.

Expected Behavior

I expect $ProgressPreference to never be modified by Microsoft Terminal.

Actual Behavior

It seems as though for some reason, Microsoft Terminal is setting $ProgressPreference to 'SilentlyContinue'.

Originally created by @JeremyTBradshaw on GitHub (Dec 19, 2022). ### Windows Terminal version 1.15.3465.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce Any time I run any of my scripts that include within them Write-Progress, immediately after, no progress is ever shown again. I figured out that what's happening is the $ProgressPreference is being set to "SilentlyContinue". I do not mess with $ProgressPreference in my scripts ever. I just thought to check it because I was troubleshooting. I can either close/reopen Terminal, or I can do `$ProgressPreference = 'continue'` to resolve it, but as soon as progress is written again, the issue comes right back. ### Expected Behavior I expect $ProgressPreference to never be modified by Microsoft Terminal. ### Actual Behavior It seems as though for some reason, Microsoft Terminal is setting $ProgressPreference to 'SilentlyContinue'.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 06:33:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19102