Remote Desktop

Posted on 2005-05-13
Last Modified: 2012-05-05
I am running a Windows 2003 Server and I am having trouble using the remote desktop feature.  This feature has been working for over a year now but for some reason has started giving me some problems.  When trying to login, it closes the connection and says "The remote computer has ended the connection."  This is the same message I used to get when I logged off from the remote computer.  Everything used to work but I believe a windows update might be the cause of this problem.  I don't know exactly what update this was or what else to do.  I have tried to check (and then recheck) the option to allow remote connections on the server machine but with no luck.  Does anyone have further suggestions?  Thanks!
Question by:sbryant007
    LVL 4

    Expert Comment

    Do you see the following errors in System EventLog:

    Event Type:      Error
    Event Source:      TermDD
    Event Category:      None
    Event ID:      50
    Date:            26.04.2005
    Time:            15:35:14
    User:            N/A
    Computer:      Server01
    The RDP protocol component "DATA ENCRYPTION" detected an error in the protocol stream and has disconnected the client.

    Here's the cure:

    1. Start Registry Editor.
    2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TermService\Parameters
    3. Under this registry subkey, delete the following values:
        • Certificate
        • X509 Certificate
        • X509 Certificate ID
    4. Quit Registry Editor, and then restart the server.

    Somehow the Terminal Services gets its certificate keys mixed and wont accept any connection. Deleting certificate registry values and rebooting the server will help.

    See;en-us;323497& for full details.


    Author Comment

    Thanks ajsaasta,
    I am not getting this error in the system eventlog but I will try to see if it will resolve the problem.  Will let you know.
    LVL 5

    Expert Comment

    how are you connecting via IP or Names??

    Author Comment

    They both are doing the same thing.
    LVL 15

    Expert Comment

    Does your problem occur from any client machine ?

    LVL 74

    Expert Comment

    by:Jeffrey Kane - TechSoEasy
    What are you using to initiate your remote connections?  (ie, Remote Desktop Connection, Terminal Services Manager, or Remote Desktop MMC)?


    Author Comment

    Yes, it happens from all machines that attempt to login to the server.  I am trying with Remote Desktop Connection.  I still have not gotten this issue figured out.
    LVL 74

    Expert Comment

    by:Jeffrey Kane - TechSoEasy
    Remote Desktop Connection INTO a server is Terminal Services.  Server 2003 only has two "slots" for remote connections and ONLY for administrative purposes unless you have initiated the Terminal Server for Applications role.  This requires separate User or Device CALs and your server needs to be configured appropriately.

    To test your connections though, enter this in START > RUN:  mstsc v/:servername /console  (where "servername" is the host name of the server you are trying to connect to)

    You can also look at your server's Terminal Services Management console and see if there are any sessions which are "stuck" and blocking further connections.  

    LVL 74

    Accepted Solution

    Also, if it's not responding at all, please see this:;en-us;821467&spid=3208&sid=global

    Expert Comment

    I am posting these details so the search engines will hopefully pick up this fix.

    Problem: Remote Desktop Connection disconnects immediately on the computer you are sitting at - displays the message "the Remote computer has ended the Connection".

    This was a niggly one. I spent 2 hours on the phone with Microsoft paid support yesterday and was able to resolve this problem. Build is WinXP Pro SP2 - this fix can also apply to Win2003 Server. I had ruled out every possible cause - Virus software, Firewalls, Ports, Routers. I run a Server-Desktop-Network support company in Vancouver, Canada, and was feeling pretty cocky until I hit this bump in the road. Guess I was ripe for a dose of humility.

    Close all programs as the PC will reboot automatically immediately after this fix is run.

    First, download the devcon utility from;en-us;311272

    Unzip the package and make sure to put a copy of the executable devcon.exe in to \windows\system32.

    Next, open a command prompt (I ran it from c:\) and run the following command:

    devcon.exe -r install %windir%\inf\machine.inf root\rdpdr

    Hit Enter.

    The machine will reboot. You should be able to connect via RDP (Remote Desktop Connection).

    I am almost certain that RDP was broken by an update. I have since changed my Automatic Update download config (System Properties->Automatice Updates tab) to only notify me rather than automatically install updates every day at 3AM.

    The chap I dealt with was in a call centre in India - he was great, very patient and methodical - my initial call was escalated to him after the first tech was unable to resolve this. My $45.00 CDN was well spent! I did a fresh build a few months ago in August and was DREADING a rebuild.

    Expert Comment

    The devcon fix was the key, thanks for the solution.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
    Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now