RDS Client Disconnect Codes and Reasons - (2023)

Last updated on: 2020-06-30

(Video) Solved - Remote Desktop Can´t Connect to The Remote Computer for one of These Reasons - Windows 10

Written by Benji Ivey

This article provides a script for retrieving information about Microsoft® Windows® client-side Remote Desktop Services (RDS) and Remote Desktop Protocol (RDP) connection issues and describes the most up-to-date disconnect codes and reasons.

(Video) How to Fix All Remote Desktop Connection Not Working Issues in Windows 10

To use: Some of the separation codes returned by the script are extended codes. If you can't find the unlock code belowreasons for separationtable, see the followingadvanced reasonsMesa.

When troubleshooting client-side connections, be aware that depending on settings such as security and encryption level, the client might try to connect multiple times and then disconnect before the final connection is made.

(Video) How To Reset 120 Day to 50 years RDS Grace Period on 2012 R2 And 2016 Server

road map

The following PowerShell® script queriesCON MSTscAxwith a decimal trigger code ID. If the script finds the code, it returns the description.

Script: # PowerShell script to return the description of RDS client disconnect codes in decimal (not hexadecimal) format )] [string] $disconnectReason, [string] $extendedReason = 0)$mstsc = New-Object -ComObject MSTscAx.MsTscAxwrite -host "description: $($mstsc.GetErrorDescription($disconnectReason,$ extendedReason))"

To use:If you get the message "An internal error has occurred", the script could not find the separator code and the return description is invalid.

(Video) Because of a protocol error (code: 0x112f), the remote session will be disconnected | RDP error

example

The following sample event log entry shows the event ID1026from a disconnected session event of an RDP client. event code263means there is no error.

Registrierungsname: Microsoft-Windows-TerminalServices-RDPClient/OperationalSource: Microsoft-Windows-TerminalServices-ClientActiveXCoreDate: 24/6/2020 7:26:58 PMEvent ID: 1026Task Category: Connection SequenceLevel: InformationKeywords: User: client-machine\ArnoldComputer : client-machineDescription:RDP ClientActiveX se ha deconectado (Razón= 263)Event Xml:<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event Jump "> <System> <Nombre del provenor ="Microsoft-Windows-TerminalServices-ClientActiveXCore" Guid="{28AA95BB-D444-4719-A36F-40462168127E}" /> <EventID>1026</EventID> <Version>0</Version> <Level>4< /Level > <Tarea>101</Tarea> <Opcode>11</Opcode> <Palabras Clave>0x4000000000000000</Keywords> <TimeCreated SystemTime="2017-05-03T11:40:58.058887000Z" /> <EventRecordID>61070 </EventRecordID > <Correlation ActivityID="{3371E543-77B1-41BA-8835-674829620000}" /> <Execution ProcessID="14296" ThreadID="15212" /> <Channel>Microsoft-Windows-TerminalServices-RDPClient/Operation al</Channel> <Equipo>cl ient-machine</Computer> <Security UserID="" /> </System> <EventData> <Data Name="Name">Motivo de deconexão</Data> <Data Name= "Valor">263</Data> <Nome de dados="CustomLevel">Informationen</Data> </EventData></Event>

reasons for separation

The table below shows the trigger codes and reasons:

(Video) Remote Desktop Licensing Mode is Not Configured | How To Fixed | RDS Problem Fixed

CodeReason
0There is no error.
1User-Initiated Client Disconnect.
2User-Initiated Client Logout.
3Your Remote Desktop Services session may have ended for one of the following reasons: The administrator ended the session. An error occurred while establishing the connection. A network problem has occurred. For help resolving the issue, see "Remote Desktop" in Help and Support.
260Remote Desktop cannot find the computer "". This could mean that "" does not belong to the specified network. Check the computer name and domain you want to connect to.
262This computer cannot connect to the remote computer. Your computer does not have enough virtual memory. Close other programs and try to connect again. If the problem persists, contact your network administrator or technical support.
264This computer cannot connect to the remote computer. The two computers failed to connect within the allotted time. Try connecting again. If the problem persists, contact your network administrator or technical support.
266The smart card service is not running. Start the smart card service and try again.
516Remote Desktop cannot connect to the remote computer for one of the following reasons: 1) Remote access to the server is not enabled. 2) The remote computer is powered off. 3) The remote computer is not available on the network. Make sure the remote computer is available off on and connected to the network and remote access is enabled.
522No smart card reader detected. Connect a smart card reader and try again.
772This computer cannot connect to the remote computer. The connection was lost due to a network error. Try connecting again. If the problem persists, contact your network administrator or technical support.
778There is no card inserted in the smart card reader. Insert your smart card and try again.
1030The client could not connect to the remote computer due to a security error. Make sure you are connected to the network and try again.
1032The specified computer name contains invalid characters. Please check the name and try again.
1034An error has occurred in the smart card subsystem. Contact technical support regarding this error.
1796This computer cannot connect to the remote computer. Try connecting again. If the problem persists, contact the remote computer owner or network administrator.
1800Your computer could not connect to another console session on the remote computer because a console session is already running.
2056The remote computer disconnected the session due to a license protocol error. Try connecting to the remote computer again, or contact the server administrator.
2308Your Remote Desktop Services session has ended. The connection to the remote computer was lost, possibly due to network connectivity issues. Try connecting to the remote computer again. If the problem persists, contact your network administrator or technical support.
2311The connection ended because an unexpected server authentication certificate was received from the remote computer. Try connecting again. If the problem persists, contact the remote computer owner or network administrator.
2312A license error occurred when the client tried to connect (license expired). Try connecting to the remote computer again.
2567The specified username does not exist. Check the username and try to log in again. If the problem persists, contact your system administrator or technical support.
2820This computer cannot connect to the remote computer. An error occurred that prevented the connection. Try connecting again. If the problem persists, contact the remote computer owner or network administrator.
2822Due to a data encryption error, this session will be terminated. Try connecting to the remote computer again.
2823The user account is currently disabled and cannot be used. Contact your system administrator or technical support for help.
2825The remote computer requires network level authentication, which your computer does not support. Contact your system administrator or technical support for help.
3079A user account restriction (such as a time of day restriction) is preventing you from signing in. Contact your system administrator or technical support for help.
3080The remote session was disconnected due to a decompression error on the client side. Try connecting to the remote computer again.
3335As a security measure, the user's account has been locked due to too many attempts to log in or change the password. Wait a moment before trying again, or contact your system administrator or technical support.
3337Your computer's security policy requires that you enter a password in the Windows Security dialog box. However, the remote computer you are trying to connect to may not recognize the credentials provided in the Windows security dialog box. Contact your system administrator or technical support for help.
3590The client cannot connect because it does not support the FIPS encryption level. Lower the required server-side security level policy or contact your network administrator for assistance.
3591This user account has expired. Contact your system administrator or technical support for help.
3592Cannot reconnect to your remote session. Try connecting again.
3593The remote PC does not support Restricted Management mode.
3847The password for this user account has expired. Password must be changed to login. Update the password or contact your system administrator or technical support.
3848A connection will not be established because the credentials may not be sent to the remote computer. Contact your system administrator for help.
4103Your system administrator has limited the times you can log in. Please try to log in later. If the problem persists, contact your system administrator or technical support.
4104The remote session was disconnected because your computer's video capabilities are exhausted. Close other programs and try to connect again. If the problem persists, contact your network administrator or technical support.
4359Your system administrator has restricted the computers you can log on to. Try logging in on a different computer. If the problem persists, contact your system administrator or technical support.
4615Before logging in for the first time, you must change your password. Update your password or contact your system administrator or technical support.
4871Your system administrator has restricted the login types (network or interactive) that you can use. Contact your system administrator or technical support for help.
5127The Kerberos User2User subprotocol is required. Contact your system administrator or technical support for help.
6919Remote Desktop cannot connect to the remote computer because the authentication certificate received from the remote computer is expired or invalid. In some cases, this error can also be caused by a large time discrepancy between client and server computers.
7431Remote Desktop cannot verify the identity of the remote computer because there is a time or date difference between your computer and the remote computer. Make sure your computer's clock is set to the correct time and try connecting again. If the problem recurs, contact your network administrator or the owner of the remote computer.
8711Your computer cannot connect to the remote computer because your smart card is locked. Contact your network administrator to unlock your smart card or reset your PIN.
9479Your apps can't be automatically reconnected. Please restart your apps.
9732Client and server versions do not match. Update your client software and try connecting again.
33554433The connection to the remote program cannot be restored. Restart the remote program.
33554434The remote computer does not support RemoteApp. Contact your system administrator for help.
50331649Your computer cannot connect to the remote computer because the username or password is invalid. Please enter a valid username and password.
50331650Your computer cannot connect to the remote computer because it cannot check the certificate revocation list. Contact your network administrator for assistance.
50331651Your computer cannot connect to the remote computer for one of the following reasons: 1) The requested RD Gateway server address and the server's SSL certificate subject name do not match. 2) The certificate has expired or has been revoked. 3) The root authority of the certificate does not trust the certificate. Contact your network administrator for assistance.
50331652Your computer cannot connect to the remote computer because the certificate authority has revoked the SSL certificate. Contact your network administrator for assistance.
50331653This computer cannot verify the identity of Gateway RD "". It is not secure to connect to servers that cannot be identified. Contact your network administrator for assistance.
50331654Your computer cannot connect to the remote computer because the requested RD Gateway server address and the certificate subject name do not match. Contact your network administrator for assistance.
50331655Your computer cannot connect to the remote computer because the Remote Desktop Gateway server's certificate has expired or has been revoked. Contact your network administrator for assistance.
50331656Your computer cannot connect to the remote computer because the remote computer you are trying to connect to has encountered an error. Contact your network administrator for assistance.
50331657An error occurred while sending data to the Remote Desktop Gateway server. The server is temporarily unavailable or a network connection is down. Try again later or contact your network administrator.
50331658An error occurred while receiving data from the RD Gateway server. The server is temporarily unavailable or a network connection is down. Try again later or contact your network administrator.
50331659Your computer cannot connect to the remote computer because an alternate login method is required. Contact your network administrator for assistance.
50331660Your computer cannot connect to the remote computer because the Remote Desktop Gateway server address is unreachable or incorrect. Enter a valid RD Gateway server address.
50331661Your computer cannot connect to the remote computer because the Remote Desktop Gateway server is temporarily unavailable. Try connecting again later, or contact your network administrator for assistance.
50331662Your computer cannot connect to the remote computer because the Remote Desktop Services client component is missing or the wrong version. Verify that the setup completed successfully and try to connect again later.
50331663Your computer cannot connect to the remote computer because the Remote Desktop Gateway server is low on resources and is temporarily unavailable. Try connecting again later, or contact your network administrator for assistance.
50331664Your computer cannot connect to the remote computer because the wrong version of rpcrt4.dll was detected. Ensure that all Remote Desktop Gateway client components have been properly installed.
50331665Your computer cannot connect to the remote computer because no smart card service is installed. Install a smart card service and try again, or contact your network administrator for assistance.
50331666Your computer cannot remain connected to the remote computer because the smart card has been removed. Try again with a valid smart card or contact your network administrator.
50331667Your computer cannot connect to the remote computer because no smart card is available. Try again with a smart card.
50331668Your computer cannot remain connected to the remote computer because the smart card has been removed. Reinsert the smart card and try again.
50331669Your computer cannot connect to the remote computer because the username or password is invalid. Please enter a valid username and password.
50331671Your computer cannot connect to the remote computer because a transport layer security packet error has occurred. Try connecting again or contact your network administrator.
50331672The RD Gateway server closed the connection. Try connecting again later, or contact your network administrator for assistance.
50331673The Remote Desktop Gateway server administrator has terminated the connection. Try connecting again later, or contact your network administrator for assistance.
50331674Your computer cannot connect to the remote computer for one of the following reasons: 1) Your credentials (username, domain, and password combination) were incorrect. 2) Your smart card was not recognized.
50331675Remote Desktop cannot connect to the remote computer "" for one of the following reasons: 1) Your user account is not in the RD Gateway permissions list 2) You may have specified the remote computer in NetBIOS format (e.g. computer1), but the RD Gateway expects an IP address or FQDN format (e.g. computer1.fabrikam.com or 157.60.0.1). Contact your network administrator for assistance.
50331676Remote Desktop cannot connect to remote computer "" for one of the following reasons: 1) Your user account is not authorized to access Gateway RD "" 2) Your computer is not authorized to access Gateway RD "" 3) You are using an unsupported Authentication method (e.g. RD Gateway might expect a smart card but provide a password) Contact your network administrator for assistance.
50331679Your computer cannot connect to the remote computer because your network administrator has restricted access to this RD Gateway server. Contact your network administrator for assistance.
50331680Your computer cannot connect to the remote computer because the web proxy server requires authentication. Contact your network administrator to allow unauthenticated traffic to an RD Gateway server through your web proxy server.
50331681Your computer cannot connect to the remote computer because your password has expired or you need to change your password. Change the password or contact your network administrator or technical support for help.
50331682Your computer cannot connect to the remote computer because the Remote Desktop Gateway server has reached the maximum number of connections allowed. Try connecting again later, or contact your network administrator for assistance.
50331683Your computer cannot connect to the remote computer because the Remote Desktop Gateway server does not support the request. Contact your network administrator for assistance.
50331684Your computer cannot connect to the remote computer because the client does not support one of the Remote Desktop Gateway features. Contact your network administrator for assistance.
50331685Your computer cannot connect to the remote computer because the Remote Desktop Gateway server and this computer are not compatible. Contact your network administrator for assistance.
50331686Your computer cannot connect to the remote computer because the credentials used are invalid. Insert a valid smart card, enter a PIN or password, and try to connect again.
50331687Your computer cannot connect to the remote computer because your computer or device does not meet the network access protection requirements set by your network administrator. Contact your network administrator for assistance.
50331688Your computer cannot connect to the remote computer because a certificate has not been configured for use on the Remote Desktop Gateway server. Contact your network administrator for assistance.
50331689Your computer cannot connect to the remote computer because the computer's administrator does not allow the RD Gateway server that you are trying to connect to. If you are the administrator, add the Gateway RD Server name to the list of trusted Gateway RD Servers on your computer and try to connect again.
50331690Your computer cannot connect to the remote computer for one of the following reasons because your computer or device does not meet the network access protection requirements set by your network administrator: 1) Gateway server name, Remote Desktop link, and the server's public key certificate. the subject name does not match. 2) The certificate has expired or has been revoked. 3) The root authority of the certificate does not trust the certificate. 4) The certificate key extension does not support encryption. 5) Your computer cannot check the certificate revocation list. Contact your network administrator for assistance.
50331691Your computer cannot connect to the remote computer because a username and password are required to authenticate to the Remote Desktop Gateway server instead of smart card credentials.
50331692Your computer cannot connect to the remote computer because smart card credentials are required to authenticate to the Remote Desktop Gateway server instead of a username and password.
50331693Your computer cannot connect to the remote computer because no smart card reader is detected. Connect a smart card reader and try again, or contact your network administrator for assistance.
50331695Your computer cannot connect to the remote computer because authentication with the firewall failed due to missing firewall credentials. To resolve the issue, go to the firewall website recommended by your network administrator and try the connection again, or contact your network administrator for assistance.
50331696Your computer cannot connect to the remote computer because authentication with the firewall failed due to invalid firewall credentials. To resolve the issue, go to the firewall website recommended by your network administrator and try the connection again, or contact your network administrator for assistance.
50331698Your Remote Desktop Services session ended because the remote computer did not receive any input from you.
50331699The connection was lost because the session expired.
50331700Your computer cannot connect to the remote computer because an invalid cookie was sent to the Remote Desktop Gateway server. Contact your network administrator for assistance.
50331701Your computer cannot connect to the remote computer because the cookie was rejected by the Remote Desktop Gateway server. Contact your network administrator for assistance.
50331703Your computer cannot connect to the remote computer because the Remote Desktop Gateway server expects a different authentication method than the one you tried. Contact your network administrator for assistance.
50331704The RD Gateway connection was terminated because periodic user authentication failed. Try connecting again with a correct username and password. If reconnection fails, contact your network administrator for further assistance.
50331705The RD Gateway connection was terminated because periodic user authorization failed. Try connecting again with a correct username and password. If reconnection fails, contact your network administrator for further assistance.
50331707Your computer cannot connect to the remote computer because Remote Desktop Gateway and the remote computer cannot exchange policies. This can happen for one of the following reasons: 1. The remote computer cannot exchange policies with the RD Gateway. 2. The configuration of the remote computer does not allow a new connection. 3. The connection between the Remote Desktop Gateway and the remote computer has been terminated. Contact your network administrator for assistance.
50331708Your computer cannot connect to the remote computer, possibly because the smart card is invalid, the smart card certificate cannot be found in the certificate store, or the certificate distribution service is not running. Contact your network administrator for assistance.
50331709To use this program or this computer, first log in to the following website:.
50331710To use this program or this computer, you must first sign in to an authentication website. Contact your network administrator for assistance.
50331711Your session is over. To continue using the program or computer, first log in to the following website:.
50331712Your session is over. To continue using the program or computer, you must first log in to an authentication site. Contact your network administrator for assistance.
50331713The RD Gateway connection was terminated because periodic user authorization failed. Your computer or device did not meet the Network Access Protection (NAP) requirements set by your network administrator. Contact your network administrator for assistance.
50331714Your computer cannot connect to the remote computer because the cookie size has exceeded the supported size. Contact your network administrator for assistance.
50331716Your computer cannot connect to the remote computer with the specified forward proxy settings. Contact your network administrator for assistance.
50331717This computer cannot connect to the remote resource because it does not have permission to that resource. Contact your network administrator for assistance.
50331718There are currently no resources available to connect. Try connecting again or contact your network administrator.
50331719The Remote Desktop Connection encountered an error accessing this resource. Try connecting again or contact your system administrator.
50331721Your remote desktop client needs to be updated to the latest version. Contact your system administrator for help installing the update and try again.
50331722Your network configuration does not allow the required HTTPS ports. Contact your network administrator for help enabling these ports or disabling web proxy and try to connect again.
50331723We are configuring more features and this may take a few minutes. Please try again later.
50331724The username you entered does not match the username used to sign your apps. If you want to log in as a different user, select Log Out from the Start menu.
50331725It seems like many users are currently testing the Azure RemoteApp service. Wait a few minutes and try again.
50331726The maximum user limit has been reached. Please contact your administrator for further assistance.
50331727Your Azure RemoteApp trial period has expired. Ask your administrator or technical support for help.
50331728You no longer have access to Azure RemoteApp. Ask your administrator or technical support for help.

advanced reasons

The following table shows the extended codes and the reasons:

CodeReason
0There is no error.
1Extended reason: Your Remote Desktop Services session has ended. Your network administrator may have terminated the connection. Try connecting again or contact support for assistance.
2Extended reason: Your Remote Desktop Services session has ended. You have shut down the remote computer. Your network administrator or another user may have logged you out. Try connecting again or contact support for assistance.
3Extended reason: Your Remote Desktop Services session ended because the remote computer did not receive any input from you.
4Extended reason: The remote session was terminated because the total login timeout was reached. This limit is set by the server administrator or network policies.
5Extended reason: Your Remote Desktop Services session has ended. Another user connected to the remote computer, causing the connection to be lost. Try connecting again, or contact your network administrator or technical support group.
6Extended reason: The connection was lost because the remote computer ran out of memory.
7Extended reason: This computer cannot connect to the remote computer. Try connecting again. If the problem persists, contact the remote computer owner or network administrator.
8Extended reason: The client could not connect to the remote computer. The most likely causes of this error are: 1) Remote connections may not be enabled on the remote computer. 2) The maximum number of connections on the remote computer has been exceeded. 3) A network error occurred while establishing a connection. 4) The remote computer may not support the required FIPS security level. Lower the required security level policy on the client side or contact your network administrator for assistance.
9Advanced Reason: The connection was refused because the user account is not authorized to log in remotely.
256Extended reason: The remote session was disconnected due to an internal error in the remote computer's licensing log.
257Extended Reason: The remote session was disconnected because no RD license servers are available to serve a license. Contact your server administrator.
258Extended reason: The remote session was disconnected because no Remote Desktop CALs are available for this computer. Contact your server administrator.
259Extended reason: The remote session was disconnected because the remote computer received an invalid license message from that computer.
260Extended reason: The remote session was disconnected because the Remote Desktop CAL stored on this computer has changed.
261Extended reason: The remote session was disconnected because the Remote Desktop CAL stored on this computer is in an invalid format.
262Extended reason: The remote session was disconnected because of network problems during the license protocol. Try connecting to the remote computer again.
263Extended reason: The remote session was disconnected because the client prematurely ended the license protocol.
264Extended reason: The remote session was disconnected because a license message was not properly encrypted.
265Extended reason: The remote session was disconnected because the local computer's CAL could not be updated or renewed. Contact your server administrator.
266Extended Reason: The remote session was disconnected because the remote computer is not licensed to accept remote connections. Contact your server administrator.
267Extended reason: The remote session was disconnected because the license store creation failed with access denied. Run the remote desktop client with elevated privileges.
1024Extended reason: Remote Desktop Connection could not find the target computer. This can happen if the computer name is incorrect or the computer is not yet registered with the RD Connection Broker. Try connecting again or contact your network administrator.
1026Extended Reason: There was an error loading the target computer through Remote Desktop Connection. Try connecting again or contact your network administrator.
1028Extended Reason: An error occurred while redirecting the remote desktop connection to the target computer. Try connecting again or contact your network administrator.
1029Extended reason: Could not connect to the remote computer (there was a problem configuring the virtual machine). Try connecting again or contact your network administrator for assistance.
1030Extended reason: An error occurred while starting the virtual machine through the remote desktop connection. Try connecting again or contact your network administrator.
1031Extended reason: Windows cannot find the IP address of the target virtual machine. This can happen if the virtual machine does not have Hyper-V lighting and the virtual machine name does not match the computer name in Windows. Contact your network administrator for assistance.
1032Extended reason: There are no computers available in the pool. Try connecting again or contact your network administrator.
1033Extended reason: Processing of the connection has stopped. Try connecting again or contact your network administrator.
1040Extended reason: Your computer cannot connect to the remote computer because the connection broker could not validate the settings specified in your RDP file. Contact your network administrator for assistance.
1041Extended Reason: A timeout error occurred while starting the virtual machine through the remote desktop connection. Try connecting again or contact your network administrator.
1042Extended reason: A session monitoring error occurred while starting the virtual machine through the remote desktop connection. Try connecting again or contact your network administrator.
4339Extended reason: The remote computer does not support RemoteApp. Contact your system administrator for help.
4498Extended reason: The remote session was disconnected due to a decryption error on the server. Try connecting to the remote computer again.

Videos

1. RDS Client Access License error fix
(damien greathouse)
2. How to Resolve Terminal server License issue for Remote Desktop.
(Amreenkhan)
3. Troubleshooting RDP Disconnects
(RDPSoft)
4. How to Fix All Remote Desktop Connection Not Working Issues in Windows 10
(MJ Tube)
5. The Remote Secession Was Disconnected Because There Are No Remote Desktop Client Access FIX
(MDTechVideos International )
6. Allow Multi RDP Session-Win 10v 21H2 |Fix another user is signed in . .| The number of conection..
(Exploit & Operate )

References

Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated: 06/23/2023

Views: 5642

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.