PowerTip: Use the Get-Command Cmdlet to View Syntax

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon