Cmdlet
Set-ConsoleValue
Sets a value in a running dashboard: a key/value pair, a bar or a stacked-bar segment.
Syntax
Set-ConsoleValue [-Key] <String> [-Name <String>] [-Session <LiveSession>] [-Value] <Object> [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Sets a value in a running dashboard: a key/value pair, a bar or a stacked-bar segment.
Sends a "set" update to the named widget. For a key/value list the value is shown as text; for bar charts and stacked bars it must be numeric.
Examples
EXAMPLE 1
Set-ConsoleValue -Key 'Value' -Value 'Value'Parameters
- -Key String
- The key, bar label or segment.
- -Name String
- The widget name (default keyvalue).
- -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -Value Object
- The value.
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.