Skip to content

Commit

Permalink
feat: faster windows provisioning by disabling progress bar in powers…
Browse files Browse the repository at this point in the history
…hell scripts

Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal committed Sep 17, 2021
1 parent 045abf3 commit 1f3d4b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/windows-2019-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Function Retry-Command {
Function DownloadFile($url, $targetFile) {
Write-Host "Downloading $url"
Retry-Command -ScriptBlock {
$ProgressPreference = 'SilentlyContinue' # Disable Progress bar for faster downloads
Invoke-WebRequest $url -OutFile $targetFile
}
}
Expand Down

0 comments on commit 1f3d4b1

Please sign in to comment.