[PSM] - PSM RDP Connections Fail with Licensing or Certificate Errors (MSLicensing)

[PSM] - PSM RDP Connections Fail with Licensing or Certificate Errors (MSLicensing)

316
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 12:56 PM


Symptom


When users attempt to establish a remote session via PSM, the connection fails. Depending on the environment (such as a recent update to Windows 11 on the end-user machine) or the exact protocol failure, the user will experience one of the following three error messages:

 

Error Scenario 1

==

(Often seen after a local Windows 11 update): "The connection has been terminated because an unexpected server authentication certificate was received from the remote computer. Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator."

==

 

Error Scenario 2

==

(Fatal Error Code 2056): "Fatal Error. The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact your server administrator. (Code: 2056) (Codes: -1, -1)"

==

Error Scenario 3

==

(Access Denied): "The remote session was disconnected because license store creation failed with access denied. Please run remote desktop client with elevated privileges." 

==



Environment


14.0;14.2;14.6;15.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM)

Cause


Microsoft patches or Windows updates can cause the local PSM connection users to lose necessary permissions over the Remote Desktop licensing registry keys.

 

Specifically, the PSMConnect and PSMAdminConnect users lack "Full Control" permissions to the MSLicensing registry keys and their sub-folders on the PSM server, which prevents the session from properly negotiating the licensing or certificate protocols. 



Resolution


To resolve this issue, you must grant the PSMConnect and PSMAdminConnect users 'Full Control' access to the MSLicensing registry keys on the PSM server.

1. Log on to the Connector/PSM server with an Administrator account.

2. Press [Windows Key + R] to open the "Run" dialog, type 'regedit.exe', and press Enter.

3. Navigate to and locate the following four registry keys (Note: If any of these specific keys or sub-folders do not exist on your PSM server, you do not need to create them):

  • HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing 
  • HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing\Store
  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSLicensing
  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSLicensing\Store 

4. For each of the existing keys listed above, perform the following steps:

  • Right-click on the folder (e.g., "MSLicensing" or "Store") and select "Permissions...".
  • Click "Add...".
  • Type in "<PSM Computer Name>\PSMConnect" and click "Check Names". Click OK.
  • Select the PSMConnect user in the "Group or user names" list.
  • In the Permissions window below, check "Allow" for "Full Control".
  • Click "Add..." again.
  • Type in "<PSM Computer Name>\PSMAdminConnect" and click "Check Names". Click OK.
  • Select the PSMAdminConnect user in the "Group or user names" list.
  • In the Permissions window below, check "Allow" for "Full Control".
  • Click Apply and OK.

5. Test the PSM connection again to confirm the issue is resolved.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001RscCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail