Windows Server 2022: Remote Desktop disconnects briefly after connection has been established.

RICHTER Manuel 21 Reputation points
2022-09-26T10:54:46.817+00:00

I have installed Windows Server 22 Desktop edition on a machine and tried to connect to it.
After entering the IP and signing in with my credentials I get an error message box stating that my Remote Desktop Services session has ended. (see attachment)
This is a persistent issue that occours regardless which computer I use as client.

The event log for remote desktop which I found at the following location: %SystemRoot%\System32\Winevt\Logs\Microsoft-Windows-RemoteDesktopServices-RdpCoreTS%4Admin.evtx contained several warnings that may be related to the disconnects.

  1. TCP socket WRITE operation failed, error 64
  2. RDP_TCP: An error was encountered when transitioning from StateUnknown in response to Event_Disconnect (error code 0x80070040).
  3. TCP socket READ operation failed, error 64

I have added the event log as a attachment.
Please change the extension from .log to .evtx since .evtx cannot be added as attachment here.
Thank you for your help.
Best regards.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,772 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Limitless Technology 44,681 Reputation points
    2022-09-30T07:32:58.3+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having issues related to RDP connection.

    Please try below setting to see if problem persists.

    1. Test-NetConnection -ComputerName "ip of your RDS server" -CommonTCPPort "RDP" -InformationLevel "Detailed"
    2. Open local group policy (gpedit.msc) on your RDP server.

    Under Computer configuration ->Administrative Templates ->Windows components ->Remote desktop services->RD Session host ->Security

    Set "Require use of specific security layer for RDP connections" to RDP.

    1. Disable any Antivirus program or Windows firewall you may have for temporary purpose on RDS and on Windows 10 Client computer.

    ---------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    2 people found this answer helpful.

  2. JimmySalian-2011 42,366 Reputation points
    2022-09-26T10:56:53.963+00:00

    Hi,

    What is the source operating system you are connecting from?


  3. JimmySalian-2011 42,366 Reputation points
    2022-09-26T10:58:32.04+00:00

    If it is Windows 11 OS, check this link if it helps. windows-11-22h2-rdp-disconnects-and.html

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  4. JimmySalian-2011 42,366 Reputation points
    2022-09-26T11:08:15.633+00:00

    Jsut check the Licenses and the firewall rules on the Terminal Server, do you have saved password or credentials of the server? Worth trying a new RDP connection and if you can capture a network trace will be useful to investigate this issue.


  5. JimmySalian-2011 42,366 Reputation points
    2022-09-26T11:30:47.13+00:00

    Just follow some of the troubelshooting steps over here such as registry keys reset Option last 4. Do you also have any router or middle ware that is passing the traffic?

    troubleshoot-remote-desktop-disconnected-errors


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.