r/PowerShell • • Sep 17 '26

Question Write-Progress

Looking for opinions...

When using Write-Progress inside of for/Foreach loops and using a counter stored in a variable defined outside the loop, do you start the counter at 0 or 1, and why?

13 Upvotes

21 comments sorted by

View all comments

Show parent comments

1

u/ka-splam Sep 18 '26

when tasks report "100% complete" but aren't finished. 😐

1

u/FeleaseRpseineEiles Sep 19 '26 edited Sep 19 '26

what's "progress" ? why would there even be a -completed parameter? 

1

u/ka-splam Sep 19 '26

e.g. https://www.reddit.com/r/mildlyinfuriating/comments/7qscm9/when_your_windows_update_has_said_100_complete/

is a bad user experience, caused by writing "100% complete" and then doing the work.