Cmdlet
Set-ConsoleRegion
Replaces the content of a region (New-ConsoleRegion) in the running dashboard.
Syntax
Description
Replaces the content of a region (New-ConsoleRegion) in the running dashboard.
The new widget is shown from the next frame on; the surrounding frame stays, and live widgets inside the new content (lanes, logs, live tables) can be updated by name right away. Use it from the dashboard script, like the Update-Console* commands.
Examples
EXAMPLE 1
Set-ConsoleRegion -Name 'Name'EXAMPLE 2
Set-ConsoleRegion -Name 'Name' -ClearParameters
- -Content ScriptBlock
- A script block whose widgets become the content.
- -Name String
- The region name.
- -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -Widget IWidget
- The widget that becomes the content.
- -Clear SwitchParameter
- Empties the region.
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.