July 7th, 2014

PowerTip: Find Information About PowerShell Cmdlet Parameter Sets

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.