Issue:
– The Remote connection gets established but gets disconnected moments before you get the Desktop.
Symptoms:
– You are able to Ping the Server
– The Server seems to be fine when checked in Console.
– All the RDP Services seems to be fine.
– When trying to take Remote connection, the connection gets established, but closes automatically with an error.
– It asks to check the Network connections or the Remote desktop Services.
Resolution:
– The Main Culprit here is : rdpcorekmts.dll file in C:\Windows\System32 location
– All you need to do it replace this .dll file with same file in any working server.
– You need to rename the file to : rdpcorekmts.old
– You cannot rename the file directly as the Administrator too has only read permission on this file.
– First you need to take ownership of this file.
– Then you need to edit the security permissions and give full control for the Administrator or your account.
– Only then you can rename the file.
– Now copy the rdpcorekmts.dll file from any working server and paste in the System32 folder of the server with issue.
– This replacement resolves the issue, and you can take RDP of the Server normally.