PowerTip: Find Syntax of PowerShell Cmdlet

Summary: Easily find the syntax of a Windows PowerShell cmdlet.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see the syntax of a cmdlet I want to use?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet (gcm is an alias) with the –Syntax switch, for example:

gcm Checkpoint-Computer -Syntax

Comments (2)

  1. Chen V says:

    Alternate method

    (help Get-Service).Syntax

    (help Checkpoint-Computer).Syntax

Skip to main content