about_CommonParameters.help

About_CommonParamete - TOPIC about_CommonParameters SHORT DESCRIPTION Describes the parameters that can be used with any cmdlet LONG DESCRIPTION

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 TOPIC about_CommonParameters SHORT DESCRIPTION Describes the parameters that can be used with any cmdlet. LONG DESCRIPTION The common parameters are a set of cmdlet parameters that you can use with any cmdlet. They are implemented by Windows PowerShell, not by the cmdlet developer, and they are automatically available to any cmdlet. You can use the common parameters with any cmdlet, but they might not have an effect on all cmdlets. For example, if a cmdlet does not generate any verbose output, using the Verbose common parameter has no effect. Several common parameters override system defaults or preferences that you set by using the Windows PowerShell preference variables. Unlike the preference variables, the common parameters affect only the commands in which they are used. In addition to the common parameters, many cmdlets offer the WhatIf and Confirm risk mitigation parameters. Cmdlets that involve risk to the system or to user data usually offer these parameters. The common parameters are: -Verbose -Debug -WarningAction -WarningVariable -ErrorAction -ErrorVariable -OutVariable -OutBuffer The risk mitigation parameters are: -WhatIf -Confirm For more information about preference variables, type:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 help about_preference_variables Common Parameter Descriptions -Verbose[:{$true | $false}] Displays detailed information about the operation performed by the command. This information resembles the information in a trace or in a transaction log. This parameter works only when the command generates a verbose message. For example, this parameter works when a command contains the Write-Verbose cmdlet. The Verbose parameter overrides the value of the $VerbosePreference variable for the current command. Because the default value of the $VerbosePreference variable is SilentlyContinue, verbose messages are not displayed by default. Valid values: $true (-Verbose:$true) has the same effect as -Verbose. $false (-Verbose:$false) suppresses the display of verbose messages. Use this parameter when the value of $VerbosePreference is not SilentlyContinue (the default). -Debug[:{$true | $false}] Displays programmer-level detail about the operation performed by the command. This parameter works only when the command generates a debugging message. For example, this parameter works when a command contains the Write-Debug cmdlet. The Debug parameter overrides the value of the $DebugPreference
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2010 for the course BUS fin taught by Professor Fez during the Spring '10 term at Valparaiso.

Page1 / 6

About_CommonParamete - TOPIC about_CommonParameters SHORT DESCRIPTION Describes the parameters that can be used with any cmdlet LONG DESCRIPTION

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online