Skip to content
ConsoleMonster
Cmdlet

Update-ConsoleTable

Module ConsoleMonster
Inputs
None

Adds, updates, removes or clears rows of a live table (New-ConsoleLiveTable) in the running dashboard.

Syntax

Update-ConsoleTable [-Key] <String> [-Name <String>] [-Session <LiveSession>] [[-Value] <Object[]>] [<CommonParameters>]
#
Parameter set: Row
Update-ConsoleTable [-Key] <String> [-Name <String>] -Remove [-Session <LiveSession>] [<CommonParameters>]
#
Parameter set: Remove
Update-ConsoleTable -Clear [-Name <String>] [-Session <LiveSession>] [<CommonParameters>]
#
Parameter set: Clear

Description

Adds, updates, removes or clears rows of a live table (New-ConsoleLiveTable) in the running dashboard.

-Key identifies the row: a new key adds a row, an existing key replaces its values. -Remove deletes the row and -Clear deletes them all; the column widths stay.

Examples

Authored help example

EXAMPLE 1

Update-ConsoleTable -Key 'Value'

EXAMPLE 2

Update-ConsoleTable -Clear

EXAMPLE 3

Update-ConsoleTable -Key 'Value' -Remove

Parameters

-Key String requiredposition: 0sets: Row, Remove
The stable row key.
-Name String optional
The live table name (default table).
-Session LiveSession optional
The live session to update. Defaults to $ConsoleSession or the running dashboard.
-Value Object[] optionalposition: 1sets: Row
The values, one per column (numbers, dates, durations and statuses go through the column presenters).
-Remove SwitchParameter requiredsets: Remove
Removes the row with that key.
-Clear SwitchParameter requiredsets: Clear
Removes every row.

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.