PSM - Error: The privileged session could not be established securely. Contact your system administrator

PSM - Error: The privileged session could not be established securely. Contact your system administrator

996
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 13:01 PM


Symptom


The Cyber-Ark Privileged Session Manager fails to connect with the following error:
The privileged session could not be established securely. Contact your system administrator


Environment


10.5;10.10;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;13.2;14.0;14.2;14.4;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM)
PAS
PSM


Cause


The PSMConnect user is unable to log in to the PSM server. Often this is caused by one of the following:

1. PSMConnect user is locked or disabled

2. PSMConnect user credentials have expired and it is set to change password on next logon

3. PSMConnect user has an out of sync password

4. PSM service is down

5. Missing permissions on “PSMSessions” safe for user PSMAppUser.

6. PSM service is not set to run as Local System user

7. PSM server has pending Windows updates

8. After migrating the PSM server from 2008 to 2012 PSMConnect and PSMAdmin users got corrupted - a repair should solve the problem

9. The PSMConnect user has lost the rights to logon to terminal services because of a GPO push.

10. Clicking the .rdp file more than once

11. When creating a new PSMServer entry for the load balancer address in PVWA Options | Privileged Session Management | Configured PSM Servers section, you right-clicked and chose "Add PSMServer" instead of copying and pasting an existing "PSMServer" entry. Manually adding a new entry does not automatically add the hidden "PSMProtocolVersion=3" value into this section.

12. If the following errors are spotted in the Windows Event Viewer System logs:
- A timeout (30000 milliseconds) was reached while waiting for a transaction response from the TrkWks service. 
- A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service. 

13. Something did not register properly from the PSMHardening process and there are still missing permissions.
 
 14. If the PSMconnect users are Domain accounts and you get the error:
[28/03/2018 | 18:01:48] |  ::  | PSMIN136W An error occurred while handling the messaging server client. Error: PSMSR891E Failed to handle the session logon request. Diagnostic information: 2, Reason: PSMSR885E Failed to load logon user credentials of PSMConnect user. Reason: PSMSC123E [PSMConnect] Failed to find file category [LogonDomain] in the account.
 
15. If you've recently made changes to the Remote Desktop Services session collection certificates for use with RDP-TLS security, or changed the Remote Desktop Services security layer to use SSL (TLS) security, the settings may not have properly refreshed in the RDP service on the PSM.

16. Low drive space
 
17. If the PSMconnect users are Domain accounts and you recently upgraded.
 
18. (no specific cause, but a general resolution provided below)
 


Resolution


1. Unlock the PSMConnect user either in the PSM server's local users and groups or in the domain if it is a domain user
 
2. Clear the change password on next logon check box on the PSMConnect user and set it to never expire.
 
3. Reconcile the PSMConnect account via the PVWA if this has been set up or manually sync the PSMConnect password in the local users and groups or domain with the account stored in the vault.
 
4. Start the Privileged session manager service via services.msc
 
5. Add user PSMAppUser to the "PSMSession" safe
 
6. Go to the PSM service > LogOn > Confirm "Local System Account" is checked 
 
7. Allow the updates to finish and then try connection again.
 
8. Make sure that the Password Object Name/ID, in the PSM Server Settings (PVWAConfiguration.xml and basic_psm.ini) is the same as the Password Object Name/ID in the Vault, in the safe which the account is configured(the default is PSM safe).
 
9. Open the GPO settings via a domain controller (gpedit.msc) and check the following location GPO Policies -> Windows Settings -> Security Settings -> Local Policies/User Rights and confirm PSMConnect has rights.
 
10. Be sure to only open the RDPfile that is downloaded once
 
11. Retrieve and edit the PVConfiguration.xml file from the PVWAConfig safe. Search the file for "PSMServer" to locate the PSMServer's section where each PSM server instance is defined. Update any line that does not contain "PSMProtocolVersion=3" to include it after the "Name" attribute definition. Save the file and return it to the safe. NOTE: YOU MUST RUN AN IISRESET ON ALL PVWAS FOR THIS CHANGE TO TAKE EFFECT. Please review solution 3559 if you are unsure which PSMProtocolVersion number to set.
For example:
Original:
<PSMServer Name="PSM Load Balancing Farm Instance" ID="PSM-LB">

Change to:
<PSMServer Name="PSM Load Balancing Farm Instance" PSMProtocolVersion="3" ID="PSM-LB">
 
12. Printer spooler stuck within PSM session and when we was attempt to connect we got Privileged session cannot be established securely. 
* Please disable the printer spooler in order to resolve the issue.
* http://www.eversity.nl/blog/2012/08/a-timeout-30000-milliseconds-was-reached-while-waiting-for-a-transaction-response-from-the-name-of-service-service/
*A reboot may be required.

13. Reboot the server, then re-run the PSMHardening.ps1 script. Ensure the PSMConnect user is defined appropriately in the script depending on whether you are using local PSMConnect or domain PSMConnect accounts. For domain PSMConnect use format: "<FQDN>\<PSMConnectUsername>"
 
14. Check the account settings and make sure logon to domain is checked for the PSMconnect accounts.
 
15. Restart the Idira Privileged Session Management service, then restart the Remote Desktop Services service on the PSM and retry the PSM connection. Note - if you are using RDP to connect to the PSM server, your session will be forcefully closed when you choose to restart the RDS service. As long as you choose the Restart service option you will be able to reconnect to the PSM over RDP after a few seconds. Recommend using a direct console session to ensure you do not lose access.

16. Clean up the drive
 
17. Edit the PSMHardening.ps1
Find  and change to the domain e.g:
$PSM_CONNECT_USER = "CYBERARK\PSMConnect"
$PSM_ADMIN_CONNECT_USER = "CYBERARK\PSMAdminConnect"
Re-run the hardening script. see: Link

Ensure PSMConnect/AdminConnect domain users have correct Log On To configured:
  1. Log into Active Directory Users and Computers.
  2. Locate and right-click the PSMConnect domain account.
  3. Select 'Properties'.
  4. Navigate to the 'Account' tab.
  5. Click on 'Log On To…'.
  6. Add the PSM server to the 'Following Computers' list.
18. If psmconnect/psmadminConnect are Domain based accounts, ensure that they are not added to a DenyInteractiveLogon type AD group

NOTE: Also check article 000005718


Additional Information


Details

SYMPTOM: 

The Cyber-Ark Privileged Session Manager fails to connect with the following error:

 

The privileged session could not be established securely. Contact your system administrator

 

PROBLEM: 

The PSMConnect user is unable to log in to the PSM server. Often this is cause by one of the following:

1.      PSMConnect user is locked or disabled

2.      PSMConnect user credentials have expired and it is set to change password on next logon

3.      PSMConnect user has an out of sync password

4.      PSM service is down

5.      Missing permissions on “PSMSessions” safe for user PSMAppUser.

6.      PSM service is not set to run as Local System user

7.      PSM server has pending Windows updates

8.      After migrating the PSM server from 2008 to 2012 PSMConnect and PSMAdmin users got corrupted - a repair should solve the problem

9.      The PSMConnect user has lost the rights to logon to terminal services because of a GPO push.

10.  Clicking the .rdp file more than once

11.  When creating a new PSMServer entry for the load balancer address in PVWA Options | Privileged Session Management | Configured PSM Servers section, you right-clicked and chose "Add PSMServer" instead of copying and pasting an existing "PSMServer" entry. Manually adding a new entry does not automatically add the hidden "PSMProtocolVersion=3" value into this section.

12. If the following errors are spotted in the Windows Event Viewer System logs:

- A timeout (30000 milliseconds) was reached while waiting for a transaction response from the TrkWks service. 

 

- A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service. 

13. Something did not register properly from the PSMHardening process and there are still missing permissions.

 

 14. If the PSMconnect users are Domain accounts and you get the error:

[28/03/2018 | 18:01:48] |  ::  | PSMIN136W An error occurred while handling the messaging server client. Error: PSMSR891E Failed to handle the session logon request. Diagnostic information: 2, Reason: PSMSR885E Failed to load logon user credentials of PSMConnect user. Reason: PSMSC123E [PSMConnect] Failed to find file category [LogonDomain] in the account.

 

15. If you've recently made changes to the Remote Desktop Services session collection certificates for use with RDP-TLS security, or changed the Remote Desktop Services security layer to use SSL (TLS) security, the settings may not have properly refreshed in the RDP service on the PSM.

 
SOLUTION: 

1.     Unlock the PSMConnect user either in the PSM server's local users and groups or in the domain if it is a domain user

2.     Clear the change password on next logon check box on the PSMConnect user and set it to never expire.

3.     Reconcile the PSMConnect account via the PVWA if this has been set up or manually sync the PSMConnect password in the local users and groups or domain with the account stored in the vault.

4.     Start the Privileged session manager service via services.msc

5.     Add user PSMAppUser to the "PSMSession" safe

6.     Go to the PSM service > LogOn > Confirm "Local System Account" is checked 

7.     Allow the updates to finish and then try connection again.

8.     Make sure that the Password Object Name/ID, in the PSM Server Settings (PVWAConfiguration.xml and basic_psm.ini) is the same as the Password Object Name/ID in the Vault, in the safe which the account is configured(the default is PSM safe).

9.     Open the GPO settings via a domain controller (gpedit.msc) and check the following location GPO Policies -> Windows Settings -> Security Settings -> Local Policies/User Rights and confirm PSMConnect has rights.

10.  Be sure to only open the RDPfile that is downloaded once

11.  Retrieve and edit the PVConfiguration.xml file from the PVWAConfig safe. Search the file for "PSMServer" to locate the PSMServer's section where each PSM server instance is defined. Update any line that does not contain "PSMProtocolVersion=3" to include it after the "Name" attribute definition. Save the file and return it to the safe. NOTE: YOU MUST RUN AN IISRESET ON ALL PVWAS FOR THIS CHANGE TO TAKE EFFECT. Please review solution 3559 if you are unsure which PSMProtocolVersion number to set.


For example:

Original:
<PSMServer Name="PSM Load Balancing Farm Instance" ID="PSM-LB">

Change to:
<PSMServer Name="PSM Load Balancing Farm Instance" PSMProtocolVersion="3" ID="PSM-LB">

 

12. Printer spooler stuck within PSM session and when we was attempt to connect we got Privileged session cannot be established securely. 

Please disable printer spooler in order to resolve the issue

 

http://www.eversity.nl/blog/2012/08/a-timeout-30000-milliseconds-was-reached-while-waiting-for-a-transaction-response-from-the-name-of-service-service/

A reboot may be required.

13. Reboot the server, then re-run the PSMHardening.ps1 script. Ensure the PSMConnect user is defined appropriately in the script depending on whether you are using local PSMConnect or domain PSMConnect accounts. For domain PSMConnect use format: "<FQDN>\<PSMConnectUsername>"

 

 

14. Check the account settings and make sure logon to domain is checked for the PSMconnect accounts.

 

15. Restart the Idira Privileged Session Management service, then restart the Remote Desktop Services service on the PSM and retry the PSM connection. Note - if you are using RDP to connect to the PSM server, your session will be forcefully closed when you choose to restart the RDS service. As long as you choose the Restart service option you will be able to reconnect to the PSM over RDP after a few seconds. Recommend using a direct console session to ensure you do not lose access.

 

NOTE: Also check KB article #000005718




Actions
  • Print
  • Copy Link

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