PowerTip: Use PowerShell Get-Command to Show Syntax

Doctor Scripto

Summary: Use the Windows PowerShell Get-Command cmdlet to show syntax of cmdlets.

Hey, Scripting Guy! Question How can I use Windows PowerShell to explore the allowed syntax for a specific cmdlet?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet, and use the –syntax switch, for example:

Get-Command Get-WinEvent -Syntax

0 comments

Discussion is closed.

Feedback usabilla icon