As the name suggests, the Remote Desktop feature in Windows, helps us to access another computer from our computer remotely. This feature plays an important role to solve issues on our system, in case any support representative wants to access our computer remotely and fix it. Today, while using this feature, I noticed that I could connect to other computers from mine, but then the Remote Desktop connection cut off automatically. So, I tried to connect to another computer of mine, and found the same result.
First of all, I ensured that Windows Firewall was switched off to ensure that the Firewall was not the culprit. It did not help. I’ve read somewhere that WiFi printers could also cause the issue while using the Remote Desktop feature, so I disconnected them too but that too did not solve the problem. I came around the following solution and it worked:
Remote Desktop Disconnects Frequently
1. Press
Windows Key + R; type
sysdm.cpl and hit Enter. Switch to Remotetab. Make sure you have selected the options highlighted in the below image:

2. Moving on, press
Windows Key + R combination, type put
Regedt32.exe in
Run dialog box and hit
Enter to open the Registry Editor.

3. Navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService
4. In the right pane of this location, look for the registry string (REG_SZ) named
ObjectName, if you’re really facing the issue, then this string must have Value data as
LocalSystem. Double click on the same string to modify its Value data:

5. In the above shown box, input the Value data as
NT Authority\NetworkService. Click
OK then and close the Registry Editor and reboot the machine to get the issue fixed.
source:twc