Powershell Tip #41: DefaultParameterSetName of the CmdletBinding attribute

By | September 10, 2015

Tip: You can set the property DefaultParameterSetName of the CmdletBinding attribute.

ParameterSetName = allows you to specify the parameter set that a parameter belongs to.

In case there is no parameter set specified, the parameter belongs to all the parameters sets which are defined by the function.

defaultparametersetname-powershell


previous-buttonnext-button

2 thoughts on “Powershell Tip #41: DefaultParameterSetName of the CmdletBinding attribute

  1. Pingback: Powershell Tip #40: Restart print spooler service | Powershell Guru

  2. Pingback: Powershell Tip #42: Find the owner of a process | Powershell Guru

Leave a Reply

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