Listing Cmdlet Parameters

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!


Posted Oct 30 2009, 08:00 AM by ps1

Comments

Twitter Trackbacks for Listing Cmdlet Parameters - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Listing Cmdlet Parameters - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 10-30-2009 10:36 AM

Pingback from  Twitter Trackbacks for                 Listing Cmdlet Parameters - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.