Listing Cmdlet Parameters

by Oct 30, 2009

Use this line if you need to get a quick list of all parameters that a given cmdlet supports along with a short description:

Get-Help dir -para * |
Format-Table Name, { $_.Description[0].Text } -wrap

Interesting to note that Format-Table can create new rows when you use brackets (in this case, the second row lists the first sentence of the description property). You can also use the -wrap switch parameter to make sure no output gets lost due to space constraints in the console.

Twitter This Tip! ReTweet this Tip!