Skip to content
ConsoleMonster
Cmdlet

Write-ConsoleTable

Module ConsoleMonster
Inputs
System.Management.Automation.PSObject[]

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 Sets

Description

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

Authored help example

EXAMPLE 1

Write-ConsoleTable -Border 'Value'

Parameters

-Border TableBorder optional
Border: Rounded, Square, Double, Minimal or None.
Possible values: Rounded, Square, Double, Minimal
-Caption Object optional
A muted caption below the table.
-Expand SwitchParameter optional
Fill the available width (spare width goes to the widest text column).
-InputObject PSObject[] optionalposition: 0pipeline: True (ByValue)
The objects to show, one row each.
-NoHeaderSeparator SwitchParameter optional
Underline the header instead of drawing a separator row under it.
-Property String[] optional
Properties to show, in order.
-StatusProperty String optional
A property whose values are statuses (pass/fail/warn/skip/running).
-Title Object optional
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.