Define some defaults for the preferences variables

This commit is contained in:
pinguinfuss 2023-03-09 13:31:50 +01:00
parent 9de752691b
commit b7ad5663dc

View File

@ -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 {