From 7e82a294fabbfbdd6d1228c68cdaa6ca909aa40a Mon Sep 17 00:00:00 2001 From: Brandon Li Date: Mon, 31 Aug 2026 17:10:39 -0500 Subject: [PATCH] Turn off the progress bar while downloading Chrome Windows PowerShell re-renders progress on every buffer, so a 120 MB download spends most of its time drawing a bar rather than transferring - minutes for what should be seconds, and indistinguishable from a stall while you watch the byte count crawl. Co-Authored-By: Claude Opus 5 --- scripts/enroll-chrome-management.ps1 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/enroll-chrome-management.ps1 b/scripts/enroll-chrome-management.ps1 index 7eebf6c..7900676 100644 --- a/scripts/enroll-chrome-management.ps1 +++ b/scripts/enroll-chrome-management.ps1 @@ -94,8 +94,19 @@ if (-not $Remove -and -not (Find-Chrome)) { # are already elevated by this point, so this needs no second prompt. $msi = Join-Path $env:TEMP 'googlechromestandaloneenterprise64.msi' Write-Host 'Google Chrome is not installed — downloading it from Google (about 120 MB).' - Invoke-WebRequest -Uri 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi' ` - -OutFile $msi -UseBasicParsing + + # Progress off for the duration. Windows PowerShell re-renders the progress + # bar on every buffer, which on a 120 MB file costs far more time than the + # transfer itself — minutes instead of seconds, looking for all the world + # like a stalled download. + $previousProgress = $ProgressPreference + $ProgressPreference = 'SilentlyContinue' + try { + Invoke-WebRequest -Uri 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi' ` + -OutFile $msi -UseBasicParsing + } finally { + $ProgressPreference = $previousProgress + } Write-Host 'Installing Chrome...' $msiexec = Start-Process msiexec.exe -Wait -PassThru -ArgumentList @('/i', "`"$msi`"", '/qn', '/norestart')