Created
October 21, 2020 21:08
-
-
Save IISResetMe/492cf8455ab75f846e4223914de4e1e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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