PowerTip: Check Syntax Options for PowerShell Cmdlet

The Scripting Guys

Dr Scripto

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

   

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.