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.



Leave a Reply

Your email address will not be published.