Cmdlet
Update-ConsoleLiveTable
Adds, updates, removes or clears rows of a live table (New-ConsoleLiveTable) in the running dashboard.
Syntax
Update-ConsoleLiveTable
[-Key] <String>
[-Session <LiveSession>]
[[-Value] <Object[]>]
[[-WidgetId] <String>]
[<CommonParameters>]#Parameter set:
RowUpdate-ConsoleLiveTable
[-Key] <String>
-Remove
[-Session <LiveSession>]
[[-WidgetId] <String>]
[<CommonParameters>]#Parameter set:
RemoveUpdate-ConsoleLiveTable
-Clear
[-Session <LiveSession>]
[[-WidgetId] <String>]
[<CommonParameters>]#Parameter set:
ClearDescription
-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
Example 1
Update-ConsoleLiveTable -WidgetId jobs -Key $job.Id -Value $job.Name, 'Running', $elapsedTrack a job from start to finish
Parameters
- -Key String
- The stable row key.
- -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -Value Object[]
- The values, one per column (numbers, dates, durations and statuses go through the column presenters).
- -WidgetId String
- The live table name (default table).
- -Remove SwitchParameter
- Removes the row with that key.
- -Clear SwitchParameter
- 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.