Update-ConsoleCell
Sets the state of cells of a cell map (New-ConsoleCellMap) in the running dashboard.
Syntax
Update-ConsoleCell [-Index] <Int32[]> [-Name <String>] [-Session <LiveSession>] [-Status] <StatusKind> [<CommonParameters>]#SetUpdate-ConsoleCell -Add [-Name <String>] [-Session <LiveSession>] [[-Status] <StatusKind>] [-Times <Int32>] [<CommonParameters>]#AddUpdate-ConsoleCell -Count <Int32> [-Name <String>] [-Session <LiveSession>] [<CommonParameters>]#CountDescription
Sets the state of cells of a cell map (New-ConsoleCellMap) in the running dashboard.
-Index names the cells by position, from 0 (in a grid with -Columns, row * columns + column); -Status is their new state: Pass, Fail, Warn, Skip, Info, Running or Pending (PowerShell's words such as Success and Error work too). An index past the end grows the map. -Add appends cells in the -Status state instead, and -Count sets the number of cells (new ones are pending). Safe to call from any runspace or thread.
Examples
EXAMPLE 1
Update-ConsoleCell -Name checks -Index 7 -Status Running
Update-ConsoleCell -Name checks -Index 7 -Status PassA check starts and passes on the second server of a grid with five checks per row
EXAMPLE 2
Update-ConsoleCell -Name files -Count 40
Update-ConsoleCell -Name files -Index 0, 1, 2 -Status PassGrow a map as items are found, then mark them
Parameters
- -Index Int32[]
- The cells to set, by position from 0.
- -Name String
- The cell map name (default cells).
- -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -Status StatusKind
- The new state (for -Add, the state of the new cells; default Pending).
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info - -Add SwitchParameter
- Appends cells in the -Status state.
- -Times Int32
- How many cells -Add appends (default 1).
- -Count Int32
- Sets the number of cells: new ones are pending, extra ones are removed (at least 1).
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.