# Get-MtSession

Gets the current Maester session information which includes the current Graph base uri and other details.

Source: https://maester.dev/docs/commands/Get-MtSession

## 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

```powershell
Get-MtSession [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## 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

### EXAMPLE 1

```powershell
Get-MtSession
```

Returns the current Maester session information.

## PARAMETERS

### -ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### 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](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

## NOTES

## RELATED LINKS

[https://maester.dev/docs/commands/Get-MtSession](https://maester.dev/docs/commands/Get-MtSession)
