PSM - An internal error has occured. Error code 50331654
89
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:06 PM
Symptom
When making a connection through the PSM with TSGateway enabled, the connection fails and the following message appears in the PVWA:
An internal error has occured. Error code 50331654
Environment
10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10
Cause
The TS Gateway certificate is not matched with the given address which basically means that the address used for making the RDP connection doesn't match the server name mentioned in the TS Gateway assigned certificate.
Resolution
Check the TS Gateway address field setup for the PSM server:
System Configuration --> Options --> Privileged Session Management --> Configured PSM Servers --> PSMServer --> Connection Details --> TS Gateway
Verify that it matches the name specified in the certificate (and avoid using an IP address)
Additionally, please review the supporting Microsoft documentation which will help further verify the error:
https://social.technet.microsoft.com/wiki/contents/articles/37870.remote-desktop-client-troubleshooting-disconnect-codes-and-reasons.aspx