mercredi 29 avril 2015

How do you programmatically get a list of all common parameters?

Powershell Cmdlets inherit a bunch of common parameters. Some cmdlets I write end up with predicates that depend on which parameters are actually bound. This often leads to filtering out common parameters which means you need a list of common parameter names.

I also expect there to be difference in the list of common parameters from one version of powershell to another.

All of this boils down to this question:

How do you programmatically determine the list of common parameters?





Aucun commentaire:

Enregistrer un commentaire