Preference Variables

The preference variables are those variables which customize the behavior of the Windows PowerShell. Any user can change the value of these variables. These variables affect the PowerShell operating environment and also all the commands which run in the environment.

The Following table lists the preference variables and their default values:

VariableDefault Value
$ConfirmPreferenceHigh
$DebugPreferenceSilentlyContinue
$ErrorActionPreferenceContinue
$ErrorViewNormalView
$FormatEnumerationLimit4
$InformationPreferenceSilentlyContinue
$LogCommandHealthEventFalse (not logged)
$LogCommandLifecycleEventFalse (not logged)
$LogEngineHealthEventTrue (logged)
$LogEngineLifecycleEventTrue (logged)
$LogProviderLifecycleEventTrue (logged)
$LogProviderHealthEventTrue (logged)
$MaximumHistoryCount4096
$OFS(Space character (” “))

VariableDefault Value
$OutputEncodingUTF8Encoding object
$ProgressPreferenceContinue
$PSDefaultParameterValues(None – empty hash table)
$PSEmailServer(None)
$PSModuleAutoLoadingPreferenceAll
$PSSessionApplicationNameWSMAN
$PSSessionConfigurationNamehttp://schemas.microsoft.com/PowerShell/microsoft.PowerShell
$PSSessionOptionSee $PSSessionOption
$VerbosePreferenceSilentlyContinue
$WarningPreferenceContinue
$WhatIfPreference0

Next TopicPowerShell Array