< Back

Register-MgaAccessToken

Sat Jan 18, 2020 4:42 pm

NAME Register-MgaAccessToken



SYNOPSIS

Registers an access token





SYNTAX

Register-MgaAccessToken [[-Token] <AzureAccessToken>] [-PassThru] [<CommonParameters>]





DESCRIPTION

Registers an access token, so all subsequent calls to Exchange Online reuse it by default.





PARAMETERS

-Token <AzureAccessToken>

The Token to register as default token for subsequent calls.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Outputs the token to the console



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

MSGraph.Core.AzureAccessToken





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MgaRegisteredAccessToken



Output the registered access token











RELATED LINKS