Get-Command Get-Mailbox | Get-Member Param* (Get-Command Get-Mailbox).Parameters | Format-List (Get-Command Get-Mailbox).ParameterSets | Format-List name # Returns: __AllParameterSets $m = (Get-Command Get-Mailbox).ParameterSets[0].Parameters | ?{$_.Name -eq "Filter"}
References:
http://blogs.msdn.com/b/powershell/archive/2006/05/10/594175.aspx
Enumeration:
function Select-Color { param( [System.ConsoleColor] $Color ) "You chose $Color" }
Then enter: Select-Color -Color
Snippet from:
http://powershell.com/cs/blogs/tips/archive/2012/11/16/using-enumeration-types-for-parameter-intellisense.aspx
References:
http://blogs.msdn.com/b/powershell/archive/2007/01/23/how-to-create-enum-in-powershell.aspx