Powershell Tip #10: List the common parameters

By | July 12, 2015

Tip: You can list the common parameters:

[System.Management.Automation.Cmdlet]::CommonParameters

Powershell v4

powershell-v4-common-parameters

Powershell v5

There are two new common parameters: InformationAction and InformationVariable.

powershell-v5-common-parameters

Note: To list the optional parameters: [System.Management.Automation.Cmdlet]::OptionalCommonParameters

optional-common-parameters-powershell


previous-buttonnext-button

One thought on “Powershell Tip #10: List the common parameters

  1. Pingback: Don’t do that #17: Silent the errors with $ErrorActionPreference = ‘SilentlyContinue’ | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *