Get-RDMOAuthToken
Synopsis
Retrieve the OAuth token for the current workspace used by the running Remote Desktop Manager process.
Syntax
__AllParameterSets
Get-RDMOAuthToken [<CommonParameters>]Description
Retrieve the OAuth token for the current workspace used by the running Remote Desktop Manager process. This cmdlet is supported only when connected to Devolutions Server or Devolutions Cloud.
Examples
Example 1
PS C:\> $token = Get-RDMOAuthToken
PS C:\> Get-RDMDataSource -Name 'SameAsRdmInstance' | Set-RDMCurrentDataSource -OAuthToken $tokenRetrieve the OAuth token for the current workspace 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".
Last updated
Was this helpful?