Skip to content
ConsoleMonster
Cmdlet

Get-ConsolePrompt

Module
ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Prompts.PromptConfiguration ConsoleMonster.Prompts.PromptSegmentReading

Gets the prompt configuration or the most recent segment observations.

Syntax

Get-ConsolePrompt
[-Segment]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Example 1

Get-ConsolePrompt -Segment | Sort-Object -Property Duration -Descending

Check the most recent segment values and probe timings

Parameters

-Segment SwitchParameter optional
Report each observed segment's last value, probe duration, age and staleness.

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.