Get-RDMOAuthToken

Synopsis

Retrieve the OAuth token for the current data source used by the running Remote Desktop Manager process.

Syntax

__AllParameterSets

Get-RDMOAuthToken [<CommonParameters>]

Description

Retrieve the OAuth token for the current data source used by the running Remote Desktop Manager process. This cmdlet is supported only when connected to Devolutions Server or Devolutions Hub Business.

Examples

Example 1

PS C:\> $token = Get-RDMOAuthToken
PS C:\> Get-RDMDataSource -Name 'SameAsRdmInstance' | Set-RDMCurrentDataSource -OAuthToken $token

Retrieve the OAuth token for the current data source used by the running Remote Desktop Manager process. Use that token to connect in the same context in the PowerShell context.

Parameters

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Devolutions.Server.ApiWrapper.Models.OAuthTokens

Notes

For more information, type "Get-Help Get-RDMOAuthToken -detailed". For technical information, type "Get-Help Get-RDMOAuthToken -full".

Devolutions Forum logo Share your feedback