February 22nd, 2015

PowerTip: Check Syntax Options for PowerShell Cmdlet

Doctor Scripto
Scripter

Summary: Use the Get-Command cmdlet to check syntax options for a Windows PowerShell cmdlet.

  How can I easily find syntax options (parameter sets) that exist for a particular Windows PowerShell cmdlet?

  Use the Get-Command cmdlet and check the Definition property, for example:

(Get-Command Stop-Process).Definition

  

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.

Feedback