- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-23-2024 03:27 AM
Hey,
On few servers, we can get RDP working. it is able to connect to and login, while on few, RDP is not working and it gives below error message. Our PSM servers do not have any DUO installed.
It logs in to PSM, from there, target machine login screen appears, credentials are entered but as soon as machine starts, below error is seen
Access is denied. This initial program cannot be started. C:\Windows\System32\mstsc.exe
04-29-2024 01:01 AM
Upon investigation, we found that this issue is only limited to servers which are having Remote desktop session host role installed. We have managed to resolve this by making below changes on target server:
Open Server Manager>Remote Desktop Services>Collections>Remote App Programs>Publish Remote App Programs>Add Remote Desktop Connection and add explorer.exe>Publish both.
02-23-2024 07:10 AM
This looks like an OS level error - so that's where I'd recommend you look. Why is your user being denied access to MSTSC?
Can you RDP from the PSM server to the target outside Cyberark with this user successfully?
Are you connecting and opening a secondary connection? or is it just a basic RDP connection?
-Matt
02-23-2024 07:13 AM
Hello @Matt Jennison
02-23-2024 07:16 AM
if it works after a few tries, perhaps it's a timeout issue? Still weird it's an access denied situation, though.
Based on my research this generally occurs when rdp is trying to open a secondary connection, like ADUC or something like that. Have you checked the target machine event logs to see if there are any further details on why the user is being denied access to mstsc?
-Matt
02-23-2024 08:54 AM
This seems to be issue on target for me. Is there start program configure on the target server you are accessing? And also check the target user AD properties.
Thank you!
02-23-2024 08:54 AM
This seems to be issue on target for me. Is there start program configure on the target server you are accessing? And also check the target user AD properties.
Thank you!
02-24-2024 05:11 PM
Hi @Ankit Kumar
It seems that account you are tying to use to login to those servers doesn’t have permissions start RDP.
Also please verify that the mstsc.exe file and its associated files in the C:\Windows\System32 directory have the correct permissions for the user account. You may need to adjust file system permissions using the Security tab in the file properties.
In addition please check whether the Firewall or Antivirus is not restricting the RDP.
Hope it helps
04-29-2024 01:01 AM
Upon investigation, we found that this issue is only limited to servers which are having Remote desktop session host role installed. We have managed to resolve this by making below changes on target server:
Open Server Manager>Remote Desktop Services>Collections>Remote App Programs>Publish Remote App Programs>Add Remote Desktop Connection and add explorer.exe>Publish both.
04-29-2024 01:02 AM
Upon investigation, we found that this issue is only limited to servers which are having Remote desktop session host role installed. We have managed to resolve this by making below changes on target server:
Open Server Manager>Remote Desktop Services>Collections>Remote App Programs>Publish Remote App Programs>Add Remote Desktop Connection and add explorer.exe>Publish both.
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!

