Cmdlet
Write-ConsoleTable
Writes pipeline objects as a console table.
Syntax
Write-ConsoleTable [-Border <Rounded|Square|Double|Minimal>] [-Caption <Object>] [-Expand] [[-InputObject] <PSObject[]>] [-NoHeaderSeparator] [-Property <String[]>] [-StatusProperty <String>] [-Title <Object>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Writes pipeline objects as a console table.
Same parameters as New-ConsoleTable; the table is written immediately in the detected output mode (live terminal, redirected stream or plain ASCII).
Examples
EXAMPLE 1
Write-ConsoleTable -Border 'Value'Parameters
- -Border TableBorder
- Border: Rounded, Square, Double, Minimal or None.
- Possible values:
Rounded,Square,Double,Minimal - -Caption Object
- A muted caption below the table.
- -Expand SwitchParameter
- Fill the available width (spare width goes to the widest text column).
- -InputObject PSObject[]
- The objects to show, one row each.
- -NoHeaderSeparator SwitchParameter
- Underline the header instead of drawing a separator row under it.
- -Property String[]
- Properties to show, in order.
- -StatusProperty String
- A property whose values are statuses (pass/fail/warn/skip/running).
- -Title Object
- A title above the table.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.