Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell Get-Command to Show Syntax

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles