HOME > > >

プリファレンス変数

PowerShellによってデフォルト値が設定される読み書き可能な変数

プレファレンス変数一覧

設定されるプレファレンス変数を確認するには下記コマンドをうつ。

  1. > Get-Help about_Preference_Variables
$ConfirmPreferenceHigh
$DebugPreferenceSilentlyContinue
$ErrorActionPreferenceContinue
$ErrorViewNormalView
$FormatEnumerationLimit4
$InformationPreferenceSilentlyContinue
$LogCommandHealthEventFalse (not logged)
$LogCommandLifecycleEventFalse (not logged)
$LogEngineHealthEventTrue (logged)
$LogEngineLifecycleEventTrue (logged)
$LogProviderLifecycleEventTrue (logged)
$LogProviderHealthEventTrue (logged)
$MaximumAliasCount4096
$MaximumDriveCount4096
$MaximumErrorCount256
$MaximumFunctionCount4096
$MaximumHistoryCount4096
$MaximumVariableCount4096
$OFS(Space character (" "))
$OutputEncodingASCIIEncoding object
$ProgressPreferenceContinue
$PSDefaultParameterValues(None - empty hash table)
$PSEmailServer(None)
$PSModuleAutoLoadingPreferenceAll
$PSSessionApplicationNameWSMAN
$PSSessionConfigurationNamehttp://schemas.microsoft.com/PowerShell/microsoft.PowerShell
$PSSessionOption(See below)
$VerbosePreferenceSilentlyContinue
$WarningPreferenceContinue
$WhatIfPreference0

$ConfirmPreference

$DebugPreference

$ErrorActionPreference

$ErrorView

$FormatEnumerationLimit

$InformationPreference

$LogCommandHealthEvent

$LogCommandLifecycleEvent

$LogEngineHealthEvent

$LogEngineLifecycleEvent

$LogProviderLifecycleEvent

$LogProviderHealthEvent

$MaximumAliasCount

$MaximumDriveCount

$MaximumErrorCount

$MaximumFunctionCount

$MaximumHistoryCount

PowerShellのコマンド実行履歴保存数

  1. > $MaximumHistoryCount
  2. 4096

$MaximumVariableCount

$OFS

$OutputEncoding

$ProgressPreference

$PSDefaultParameterValues

$PSEmailServer

$PSModuleAutoLoadingPreference

$PSSessionApplicationName

$PSSessionConfigurationName

$PSSessionOption

$VerbosePreference

$WarningPreference

$WhatIfPreference