Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Getting Fromat of Hashtable a cmdlet supports

$
0
0

You can find documentation about it in the help section on the Format-Table commandlet. If you do:

Get-Help Format-Table -Parameter Property

You will be presented with the following information, which mentions the possible options for the hashtable keys:

-Property <Object[]>
    Specifies the object properties that appear in the display and the order in which they appear. Type one or more pro
    perty names (separated by commas), or use a hash table to display a calculated property. Wildcards are permitted.

    If you omit this parameter, the properties that appear in the display depend on the object being displayed. The par
    ameter name ("Property") is optional. You cannot use the Property and View parameters in the same command.

    The value of the Property parameter can be a new calculated property. To create a calculated, property, use a hash
    table. Valid keys are:

    -- Name (or Label) <string>

    -- Expression <string> or <script block>

    -- FormatString <string>

    -- Width <int32>

    -- Alignment  (value can be "Left", "Center", or "Right")

    Required?                    false
    Position?                    1
    Default value
    Accept pipeline input?       false
    Accept wildcard characters?  true

Viewing all articles
Browse latest Browse all 13067

Trending Articles