Skip to content

Instantly share code, notes, and snippets.

@IISResetMe
Created October 21, 2020 21:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IISResetMe/492cf8455ab75f846e4223914de4e1e0 to your computer and use it in GitHub Desktop.
Save IISResetMe/492cf8455ab75f846e4223914de4e1e0 to your computer and use it in GitHub Desktop.
function Fake-Progress
{
$PSDefaultParameterValues['Write-Progress:Activity']='Making stuff up'
Write-Progress -Status 'Starting out' -PercentComplete 5
10..45|%{
Write-Progress -Status 'Doing stuff' -PercentComplete $_
Start-Sleep -Milliseconds 100
}
Write-Progress -Status 'Still doing stuff, just not reporting anything, lol' -PercentComplete 50
Start-Sleep -Seconds 5
Write-Progress -Status 'Poof!' -Completed
}
Fake-Progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment