Get-RDMOauthToken not working since version 2026.1.0

Get-RDMOauthToken not working since version 2026.1.0

avatar

Hi.

Get-RDMOauthToken stopped working since version 2026.1.0 at least, but i tried with the latest 2026.1.2 as well.

PS C:\Users\to-fre> Get-Command -Module Devolutions.Powershell | where {$_.Name -match "Get-RDMOAuthToken"}

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-RDMOAuthToken                                  2026.1.2   Devolutions.PowerShell

PS C:\Users\to-fre> New-DSSession -BaseURI $DSServerUri -UseOAuth
PS C:\Users\to-fre> Get-RDMOAuthToken
Get-RDMOAuthToken: The type initializer for 'System.Text.Json.JsonSerializer' threw an exception.


PS C:\Users\to-fre> Import-Module -Name Devolutions.PowerShell -requiredVersion 2025.3.4
PS C:\Users\to-fre> Get-Command -Module Devolutions.Powershell | where {$_.Name -match "Get-RDMOAuthToken"}

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-RDMOAuthToken                                  2025.3.4   Devolutions.PowerShell

PS C:\Users\to-fre> New-DSSession -BaseURI $DSServerUri -UseOAuth
PS C:\Users\to-fre> Get-RDMOAuthToken

AccessToken
-----------
e...........


Br, Tony

All Comments (1)

avatar

Hello @tonyfredriksson,

We were able to reproduce the issue. A ticket has been opened to look into the problem. We'll keep you updated as progress is made.

Best regards,
Christian