Define some defaults for the preferences variables
This commit is contained in:
parent
9de752691b
commit
b7ad5663dc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user