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

Leave a Reply

Your email address will not be published.