diff --git a/src/Download_ADB.ps1 b/src/Download_ADB.ps1 index 81f43ae..ac96c61 100644 --- a/src/Download_ADB.ps1 +++ b/src/Download_ADB.ps1 @@ -2,6 +2,13 @@ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +if ($Host.Version.Major -eq 5) +{ + # Progress bar can significantly impact cmdlet performance + # https://github.com/PowerShell/PowerShell/issues/2138 + $Script:ProgressPreference = "SilentlyContinue" +} + # https://developer.android.com/studio/releases/platform-tools $Parameters = @{ Uri = "https://dl.google.com/android/repository/platform-tools-latest-windows.zip"