diff --git a/src/Connection/Connect-To.ps1 b/src/Connection/Connect-To.ps1 index a8e5d20..8b2a88e 100644 --- a/src/Connection/Connect-To.ps1 +++ b/src/Connection/Connect-To.ps1 @@ -141,6 +141,11 @@ function Connect-To { $null = Set-PowerCLIConfiguration -Scope Session -ProxyPolicy NoProxy -Confirm:$false } } + + # Set sane defaults for Progress, ErrorAction and InformationPreference + $ProgressPreference = 'SilentlyContinue' + $ErrorActionPreference = 'Stop' + $InformationPreference = 'Continue' } process {