PowerTip: Use PowerShell Get-Command to Show Syntax

The Scripting Guys

Dr 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

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.