October 14th, 2012

PowerTip: Use the Get-Command Cmdlet to View Syntax

Doctor Scripto
Scripter

Summary: Learn how to use the Windows PowerShell cmdlet, Get-Command, to view the syntax of a command.

Hey, Scripting Guy! Question How can you use the Get-Command cmdlet to view the syntax of a Windows PowerShell cmdlet?

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

gcm new-vm -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.