PowerTip: Find Information About PowerShell Cmdlet Parameter Sets

PowerTip: Find Information About PowerShell Cmdlet Parameter Sets

  • Comments 1
  • Likes

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • 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.