Skip to content

Get-VmsToken

SYNOPSIS

Gets the current token issued by the Management Server to this PowerShell session.

SYNTAX

Get-VmsToken [<CommonParameters>]

DESCRIPTION

The Get-VmsToken cmdlet returns the token issued by the Management Server to the current user session. Tokens are used internally to verify a user or service has been authenticated by the Management and is authorized to access resources. Tokens are renewed in the background automatically, and expire in 4 hours by default.

Note: It is rare that you would need to use this cmdlet. It is added for convenience only for those rare cases when direct access to a token might be needed.

EXAMPLES

EXAMPLE 1

Get-VmsToken

Get the current token as a string.

PARAMETERS

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.

INPUTS

OUTPUTS

System.String

NOTES

Online Help