Wednesday, September 12, 2012

RDP Connection Drops after Sp1 Installation on Win2k8 R2 server


Issue: After installing Service Pack 1 of Windows 2008 R2, RDP connection is dropped after accepting username/pwd. Event viewer logs event id 7031 this "remote desktop services service terminated unexpectedly".


Solutions:



1)    Log on to the server console, download and install the following hotfixes.

Security Update for Windows Server 2008 R2 x64 Edition (KB2667402)

Security Update for Windows Server 2008 R2 x64 Edition (KB2621440)

Restart your server. In some cases simply installing KB2667402 solves it whereas in other both patch needs to be installed. Reapplying above hotfixes even if they have been reported as installed, fixes the issue.

2)    This problem appears to be directly related to the fact that SP1 is installed via a RDP session.
Replace rdpcorekmts.dll and rdpcode.dll with one copied from a working SP1 installation.

3)    Uninstall Sp1 and install it again through RDP console session.