Monad Jumpstart

A.6. Preference Variables

MSH uses several variables to hold the default values to be used when a ubiquitous parameter is not explicitly set on a cmdlet. For cmdlets that respect the ubiquitous parameters, the values of these variables will be used unless explicitly overridden on invocation. See Table A-11 for a list of preference variables.

Table A-11. Preference variables

Variable

Meaning

$ConfirmPreference

Defines the default -Confirm setting

$DebugPreference

Defines the default -Debug setting

$ErrorActionPreference

Defines the default -ErrorAction setting

$VerbosePreference

Defines the default -Verbose setting

$WhatIfPreference

Defines the default -WhatIf setting

Категории