How do you hide a Powershell progress message? How do you hide a Powershell progress message? powershell powershell

How do you hide a Powershell progress message?


You could stop the progress bar appearing in the first place by doing the following beforehand:

$ProgressPreference = "SilentlyContinue";

You could then restore the preference to "Continue" afterwards. Not much help if you actually want the bar of course...


This code forces progress bar to be set to 100% complete and hides it:

Write-Progress "Done" "Done" -completed