October 26th, 2014

PowerTip: Find Syntax of PowerShell Cmdlet

Doctor Scripto
Scripter

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

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.