One of the great benefits of PowerShell V2 Advanced Functions is the ease in which you can support parametersets. ParameterSets are, well, different SETS of valid parameters. For instance you can say: Get-Process -id 0 Get-Process -Name *ss Those are 2 different parametersets for the Get-Process cmdlet. Here is an example of how you would code parametersets using advanced functions
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2008/12/23/powershell-v2-parametersets.aspx
Posted
Dec 23 2008, 05:56 PM
by
Windows PowerShell Blog