Get-MtSession
SYNOPSIS
Section titled “SYNOPSIS”Gets the current Maester session information which includes the current Graph base uri and other details. These are read-only and should not be modified directly.
SYNTAX
Section titled “SYNTAX”Get-MtSession [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”Get-MtSession is intended for troubleshooting and diagnostic display of the current Maester module session. It returns a sanitized copy of the session data rather than the live internal session object.
Sensitive values are stripped from the output. For example, the GitHubAuthHeader Authorization value is redacted so copied session output cannot leak the GitHub token. The live session used by internal callers is unchanged.
EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Get-MtSessionReturns the current Maester session information.
PARAMETERS
Section titled “PARAMETERS”-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.