
This is a generic return code description when the disconnect code in is not found and return description is not valid. NOTE: When running the command below, 'An internal error has occurred.'. If the disconnect code is found the description will be returned. The following snippet is a PowerShell command to query COM MSTscAx with a decimal disconnect code ID. Such as encryption and security level, the client may attempt connection multiple times and disconnect before the final connection is made. When troubleshooting client-side connections, be aware that depending on a configuration

If the disconnect code is not found in the Primary Disconnect Reasons table, see the Extended Disconnect Reasons table. Some of the disconnect codes returned are extended codes. Not all codes are enumerable from the COM method shown below. The RDP client disconnect codes are written to the 'Microsoft-Windows-TerminalServices-RDPClient/Operational' event login 'Applications and Services Logs/Microsoft/Windows' in Event Viewer. Please see parent article Remote Desktop Services RDS Logon Connectivity Overview for additional information. This article contains most of the current Remote Desktop Client disconnect codes and reasons.
