The Windows PowerShell cmdlets include both common command parameters and risk-mitigation parameters that you can use to customize the operation that the cmdlet performs.
Cmdlet parameters
- [-Verbose {True | False}]
- Displays expanded information about the operation.
- [-Debug {True | False}]
- Displays technical information about the operation.
- [-WarningAction {SilentlyContinue | Continue | Inquire | Stop}]
- Determines how the cmdlet responds to a warning when performing the operation. The following list describes what each value means:
- SilentlyContinue
- Suppresses the warning message and continues with the operation.
- Continue
- Displays the warning message and continues with the operation. This is the default value for this parameter.
- Inquire
- Displays the warning message and asks if you want to continue.
- Stop
- Displays the warning message and stops the operation.
- -WarningVariable | Variable_name
- Stores warnings about the command in the specified variable.
- [-ErrorAction {SilentlyContinue | Continue | Inquire | Stop}]
- Determines how the cmdlet responds to a warning when performing the operation. The following list describes what each value means:
- SilentlyContinue
- Suppresses the warning message and continues with the operation.
- Continue
- Displays the warning message and continues with the operation. This is the default value for this parameter.
- Inquire
- Displays the warning message and asks if you want to continue with the operation.
- Stop
- Displays the warning message and stops the operation.
- -ErrorVariable | Variable_name
- Stores errors about the command in the specified variable.
- -OutVariable | Variable_name
- Displays objects output by the command and then stores them in the specified variable.
- -OutBuffer | Object_number
- Determines the number of objects that can reside in the buffer before they are sent.
Risk mitigation parameters
- [-WhatIf {True | False}]
- Displays a message about the outcome of the command instead of executing the operation.
- [-Confirm {True | False}]
- Prompts you for input before executing the operation.