Error in PSM connection: “The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact the server administrator” OR "Error connecting to remote computer:"

Error in PSM connection: “The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact the server administrator” OR "Error connecting to remote computer:"

190
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 13:04 PM


Symptom


When trying to initiate an RDP PSM connection from a Vista, Win7, or Win 8 machine the following error is returned once RDP opens:
“The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact the server administrator . (Code: 2056)”
The same problem could be when trying to make a direct RDP connection to the PSM server (not through PVWA) the same error is returned.


Environment


11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM) PSM
Windows Vista, 7, 8


Cause


As of Windows Vista a new access control mechanism was introduced called integrity. Processes and securable objects (files, registry keys, etc) have an assigned integrity level - high, medium or low. A process can only write to a location or modify an object with the same or lower integrity as itself.
The integrity of a process is determined according to the trust level of the process and is more restrictive than any granted permissions the user running the process might have. Internet-facing processes will usually be created with a low integrity level, etc.

In the case of IE and protected mode, the website will run in a process with a low integrity level. This means that write access to registry locations under the LOCAL_MACHINE tree will be denied.

Because the MSLicensing key is under the LOCAL_MACHINE tree, when trying to obtain the license from a protected mode website the process will fail due to lack of permissions. However, if the license already exists there is no problem reading and using it.

Note: Protected mode is disabled by default for sites in the trusted sites group. 


Resolution


On the client machine (Vista / Windows 7 / Windows 8):
  1. From the Browser where PVWA is opened, go to Tools | Internet Options
  2. In the Security Tab, check if the "Enable Protected Mode" checkbox is selected
  3. Uncheck the box (note that this will affect security settings on all web sites in that security zone) or define the PVWA in another security zone which has Protected Mode disabled (such as the "Trusted Sites" zone)
Following this change, the end user might see the following pop-up message in his browser: "Protected mode is turned off for the internet zone".
The user can ignore this message and press "Don't Show this message again".
 
If the Protected Mode was not enabled or if the above solution did not help, use the following workaround for 32 Bit client: This should be done on the PSM server. In regedit, navigate to the following keys and grant the PSM users (PSMConnect for example) full permissions, then PSM will be able to connect to the server:
       HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing.
       HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing\Store

 
Use the following keys if the client is 64 bit
     HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSLicensing
     HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSLicensing\Store
By default only Administrators and LocalSystem have full permissions


Additional Information


Details

SYMPTOMS:

When trying to initiate an RDP PSM connection from a Vista, Win7, or Win 8 machine the following error is returned once RDP opens:

“The remote computer disconnected the session because of an error in the licensing protocol. Please try connecting to the remote computer again or contact the server administrator . (Code: 2056)”

The same problem could be when trying to make a direct RDP connection to the PSM server (not through PVWA) the same error is returned.

 

PROBLEM:

As of Windows Vista a new access control mechanism was introduced called integrity. Processes and securable objects (files, registry keys, etc) have an assigned integrity level - high, medium or low. A process can only write to a location or modify an object with the same or lower integrity as itself.
The integrity of a process is determined according to the trust level of the process and is more restrictive than any granted permissions the user running the process might have. Internet-facing processes will usually be created with a low integrity level, etc.

In the case of IE and protected mode, the website will run in a process with a low integrity level. This means that write access to registry locations under the LOCAL_MACHINE tree will be denied.

Because the MSLicensing key is under the LOCAL_MACHINE tree, when trying to obtain the license from a protected mode website the process will fail due to lack of permissions. However, if the license already exists there is no problem reading and using it.

Note: Protected mode is disabled by default for sites in the trusted sites group. 

 

SOLUTION:

On the client machine (Vista / Windows 7 / Windows 8):

 

  1. From the Browser where PVWA is opened, go to Tools | Internet Options
  2. In the Security Tab, check if the "Enable Protected Mode" checkbox is selected
  3. Uncheck the box (note that this will affect security settings on all web sites in that security zone) or define the PVWA in another security zone which has Protected Mode disabled (such as the "Trusted Sites" zone)
Following this change, the end user might see the following pop-up message in his browser: "Protected mode is turned off for the internet zone".
The user can ignore this message and press "Don't Show this message again".
 

If the Protected Mode was not enabled or if the above solution did not help, use the following workaround for 32 Bit client:

This should be done on the PSM server.

In regedit, navigate to the following keys and grant the PSM users (PSMConnect for example) full permissions, then PSM will be able to connect to the server:

       HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing.

       HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing\Store

 

Use the following keys if the client is 64 bit

 

     HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSLicensing

 

     HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSLicensing\Store

 

By default only Administrators and LocalSystem have full permissions




Actions
  • Print
  • Copy Link

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