Show a Progress Bar in PowerShell
Display a built-in progress bar while a loop runs.
01Command
$ 1..100 | ForEach-Object { Write-Progress -Activity "Processing" -PercentComplete $_ -Status "$_%"; Start-Sleep -Milliseconds 30 }02What it does
Write-Progress renders a native console progress bar driven by -PercentComplete. Use it inside loops that process many items so users get feedback; pass -Status for the current item and -Activity for the overall task name.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Write-ProgressEvidence: Displays a progress bar in the console; one of PowerShell's progress cmdlets.
Last verified: 2026-09-20 · Category: System & Settings
06Related solutions
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
Understand PowerShell's execution policy scopes and set the one that lets you run your own local scripts without gutting the security model.