Skip to content

Get-VmsToken

SYNOPSIS

Obtiene el token actual emitido por el Servidor de gestión para esta sesión de PowerShell.

SYNTAX

CurrentSite (Default)

Get-VmsToken [<CommonParameters>]

ServerId

Get-VmsToken [-ServerId <ServerId>] [<CommonParameters>]

Site

Get-VmsToken [-Site <Item>] [<CommonParameters>]

DESCRIPTION

El cmdlet Get-VmsToken devuelve el token emitido por el Servidor de gestión a la sesión de usuario actual. Los tokens se usan internamente para comprobar que un usuario o servicio ha sido autenticado por la administración y está autorizado a acceder a los recursos. Los tokens se renuevan en segundo plano automáticamente y caducan en 4 horas de forma predeterminada.

Nota: Es poco frecuente que requiera utilizar este cmdlet. Se agrega por conveniencia solo para aquellos casos excepcionales en los que puede ser necesario el acceso directo a un token.

REQUIREMENTS

  • Requires VMS connection and will attempt to connect automatically

EXAMPLES

EXAMPLE 1

Get-VmsToken

Get the current token as a string.

PARAMETERS

-ServerId

{{ Fill ServerId Description }}

Type: ServerId
Parameter Sets: ServerId
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Site

{{ Fill Site Description }}

Type: Item
Parameter Sets: Site
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
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.

INPUTS

OUTPUTS

System.String

NOTES

Online Help