RDP connection to remote machine gets failed with error - User was disconnected from remote machine.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

RDP connection to remote machine gets failed with error - User was disconnected from remote machine.

L3 Networker

for an end user who is trying to rdp to a machine, he is getting the below error as in screenshot. I checked the user password had expired and reset it AD, updated it in Cyberark. tried connection, didnt work. I verfied the password in pvwa, changed it as well using cyberark. Still the rdp connection doesnt go through PSM, the same error. I tried to rdp directly from a jump server and the credentials works. I checked in privareark, the user is activated and has all the required permission in the safe. What can i do next?

 

Field_Content_versions_oct20__068Vy00000lThRXIA0.png

1 accepted solution

Accepted Solutions

L4 Transporter

Hello @Avinash Pattnaik​ 

 

There could be one of the below reasons.

  • Remote access is disabled on target server.
  • Route error where the PSM could not reach the target server, but desktops can.

 

Also, there is a KB article which might help you!

 

PSMRD001E User was disconnected from remote machine. Reason: [reason.] (Code: <error_code>)

View solution in original post

6 REPLIES 6

L7 Applicator

According to the internal guide titled RDP, this error is often linked to session management failures. You should:

  • Check the RDP connector logs for specific disconnect codes.
  • Review network stability and certificate validity.
  • Ensure that PSM hardening scripts have been correctly applied. You can verify this by checking registry entries under:
  • HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols

 

 

But if i test the rdp connection to the same remote machine using my id, the connection works via PSM. So it has something to do with the user itself on Cyberark. if i use the user credentials from a jump server, the same works. So something is blocking somewhere in cyberark. the only difference between my id and the other user id is we are using different PSM servers to connect to the remote machine.

Are you making sure to test using the PSM server the user is also being sent to?

 

You'd need to log into the PSM server, use that as a jump server, and then rdp to the target using this user for a proper test. Have you done this?

 

Also, what if this users uses a different PSM? Are others users on this PSM having issues?

 

-Matt

L4 Transporter

Hello @Avinash Pattnaik​ 

 

There could be one of the below reasons.

  • Remote access is disabled on target server.
  • Route error where the PSM could not reach the target server, but desktops can.

 

Also, there is a KB article which might help you!

 

PSMRD001E User was disconnected from remote machine. Reason: [reason.] (Code: <error_code>)

L4 Transporter

Hello @Avinash Pattnaik​ 

 

There could be one of the below reasons.

  • Remote access is disabled on target server.
  • Route error where the PSM could not reach the target server, but desktops can.

 

Also, there is a KB article which might help you!

 

PSMRD001E User was disconnected from remote machine. Reason: [reason.] (Code: <error_code>)

yes, thank you. i checked rdp from the psm server itself and it is blocked. allowed it on the nsx and it works now.

  • 1 accepted solution
  • 308 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!