Forum Discussion

Stephen_Porter's avatar
Stephen_Porter
Copper Contributor
May 15, 2023

Remote Desktop failing with Error code: 0x50331742 Extended error code: 0x0

Looking up Remote Desktop error codes, the list ends at 50331728 so 50331742 is off the charts.  What does error code 50331742 mean?

 

https://social.technet.microsoft.com/wiki/contents/articles/37870.remote-desktop-client-troubleshooting-disconnect-codes-and-reasons.aspx

 

Windows 10 Pro 22H2 x64bit

 

Also I noticed as I attempted to debug that UmRdpService won't start.   It gives an error indicating the service started then stopped but it won't stay running.  

 

Remote Desktop was working fine a few months ago then stopped.

 

Debug steps tried:

  • Checked that all umrdpservice dependent services are running
  • Checked that umrdp.dll (Version 10.0.19041.1806) is present in the System32 folder
  • Ran Sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth completes with no error.
  • Reset the service with "sc config UmRdpService start= demand"
  • Outbound RDP connections work fine, inbound fail with the 50331742 error code.
  • Network is set to Private
  • Cleared the RDP cert in the cert store and restarted the service to create a new one
  • RDP listen port is correctly in the registry
  • Set Telnet fDenyTSConnection setting to 0
  • Group policy shows "Allow users to connect remotely by using Remote Desktop Services" is enabled
  • IPV6 is disabled
  • Custom Scaling is disabled
  • RDP Firewall setting are open
  • DNS is working fine and can resolve and ping the hostname
  • Event Logs show no errors
  • Verified user account is has permission to Remote Desktop.

Please advise because I am out of ideas of what to try next.  Something is stopping the service from starting and I can't think of what that could be?

 

Resources