Cmdlet
New-ConsoleLiveTable
Creates a table whose rows change while a dashboard runs.
Syntax
New-ConsoleLiveTable [-Border <Rounded|Square|Double|Minimal>] [-Column <String[]>] [-Descending] [-MaxRows <Int32>] [[-Name] <String>] [-SortBy <Object>] [-Table <Table>] [-Title <Object>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Creates a table whose rows change while a dashboard runs.
Rows have stable keys and are added, updated, removed or cleared with Update-ConsoleTable. Column widths only grow, so rows never jitter. -MaxRows keeps only the most recent rows; -SortBy keeps rows sorted by a column.
Examples
EXAMPLE 1
New-ConsoleLiveTable -Name 'Name'Parameters
- -Border TableBorder
- The border style.
- Possible values:
Rounded,Square,Double,Minimal - -Column String[]
- The column headers, in order.
- -Descending SwitchParameter
- Sorts from the largest value down.
- -MaxRows Int32
- Keeps only the most recently added rows (0 keeps all).
- -Name String
- The live name used by Update-ConsoleTable (default table).
- -SortBy Object
- The column (header or index) to keep rows sorted by.
- -Table Table
- A table that defines the columns and options instead (for example from New-ConsoleTable); its rows are replaced.
- -Title Object
- A title above the table (markup).
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.