PowerTip: Find Information About PowerShell Cmdlet Parameter Sets

Summary: Learn how to find information about Windows PowerShell cmdlet parameter sets.

Hey, Scripting Guy! Question How can I find information about the various parameter sets for a specific Windows PowerShell cmdlet?

Hey, Scripting Guy! Answer Use Get-Command to return cmdlet information, pipe the results to the Select-Object cmdlet,
          and expand the ParameterSets property:

Get-Command Stop-Process | select -expand parametersets

Comments (2)

  1. Anonymous says:

    While less detailed, as a summary the -syntax option of get-command is probably more useful to see which parameter sets are available. Eg.

    gcm -syn stop-process

    shows the three parameter sets available.

Skip to main content