By Vivian / Last Updated October 18, 2021

Remote Desktop closes immediately after login

 

TheRemote Desktop Connection app closed immediately after login every time, can anyone has the same issue or has any idea about how to fix it. 

1) My laptop is running Windows 10 Home Pro.

2) The issue start about a few weeks ago. 

3) There is now an error message that shows up after the app closed.

4) The internet is stable and in good status. 

- Question from answer.microsoft.com

For most of the users, it’s not strange to encounter a problem like the above description. The issue blocks the RDP process and takes a toll on the mood of many users. So why does Remote Desktop keep closing and how to fix it? The tutorial provides you with 4 ways to “Remote Desktop closes immediately after login”. 

Reasons for “Remote Desktop closes immediately after login

Follow me to get what kind of reasons trigger off RDP closes unexpectedly.

▪ Reason 1. The blockage of firewall
Remote Desktop connections do not have the permissions allowed by the firewall. Therefore, the Defender Firewall will block the Remote Desktop Connection, thus the Remote Desktop closes immediately after login.

▪ Reason 2. The system files are corrupted
It is said that if you miss some system files like the .dll file, and then your Windows features, including RDP aren’t working or Windows crashing. 

▪ Reason 3. Update broke those patches
If you update to Win 10 or Win 11, there may be because of your update breaking the patches, indirectly causing the Remote Desktop to close or disconnects after the update immediately.

4 ways to fix Remote Desktop closes immediately after login

Now, you must have a thorough understanding of the reasons for Remote Desktop disconnecting immediately and there are some useful solutions to help you address the problem. Just follow them in order, step-by-step, and we’ll try to get you back on track.

Method 1. Turn off Firewall

Step 1. Press Windows + R, input control panel, and then click “system and security”, choose Windows Defender Firewall, then “Allow an app or feature through Windows Defender Firewall”.

defender%20-firewall

Step 2. Go to the Allowed apps screen, click on “Change settings and then scroll down to check Remote Desktop in this list. Make sure that you’ve allowed this app for Public. Click OK.

allowed-apps

Step 3. After finishing the above steps, reboot the machine.

Method 2. Perform a system file check (by using CMD)

If Remote Desktop closes unexpectedly or Windows crashes, use the System File Checker to scan Windows and restore your files. 

  • SFC Scan

Step 1. Press Windows Key + X Press to open Win + X menu. (Or search CMD in the search box)

Now select PowerShell (Admin) from the list. If Command Prompt is available, you can also use it.

windows-powershell

Step 2. Enter sfc /scannow (This process will take some time so don’t interrupt it)

sfc-scannow

  • DISM scan (if sfc/scannow doesn’t work for you, just try DISM scan)

Step 1. Run CMD as an admin

run-as-asministration

Step 2. Enter “DISM /Online /Cleanup-Image /RestoreHealth”(bear in mind that it also takes some time.)

dism-command

Note: Once the scanning is finished, check if the problem still persists. If it does, try the next method.

Method 3. Create a Windows 10 installation Media

Just now we said that if the system files are missing, we can scan Windows by using the System File Checker to restore the file. However, if system files are corrupted, then the scanning will fail.

Then we can run Startup Repair to fix corrupted system files. Check out the following steps:

Step 1. Insert the installation CD/DVD to the PC and enter BIOS to boot from the installation CD/DVD.

Step 2. In the ‘Windows setup’ page select the ‘language to install’, ‘Time and currency format’ and the ‘keyboard or input method’ and click on ‘next’.

Step 3. Click on ‘Repair your computer.

repair-your-computer-windows-10

Step 4. Choose ‘Troubleshoot’, click on ‘Advanced options’, select ‘Startup Repair’ and then “the operating system”.

startup-repair

Step 5. Remove the Windows installation CD/DVD, and reboot your PC from its system hard drive. Then, run RDP to see whether Remote Desktop can work normally after login. 

Method 4. Lower the display properties

Trying to lower the display properties is also another useful way to fix the issue.

Step 1. Settings> System> Display> Display Resolution

settings-display-resolution

Step 2. Set resolution to low (800X600) 8bit.

change-display-resolution

Step 3. Navigation: Setting>Clipboard>Clipboard history

Turn “Clipboard history” off to disable clipboard.

clipboard-off

Note: Now you can find that Remote desktop connectivity can be more fluid because the resolution of the screen is reduced and the clipboard is disabled.

Final solution to Remote Desktop close immediately after login

It’s time and energy-consuming to settle out Remote Desktop close immediately after login issue. If you want to connect to a remote computer easily, you can turn to a third-party remote connection software for Windows, AnyViewer. It’s free, stable and secure. With it, you can access computers from another computer anywhere, anytime. It’s compatible with all editions of 11/10/8.1/8/7 and Windows Server 2022/2019/2016/2012 R2 (64bit and 32bit), thus you don’t consider the Windows version of the computers. See how it works:

Step 1. Download and install AnyViewer on the host computer (the PC you want to control) and the client computer.

Download Freeware Win 11/10/8.1/8/7
Secure Download

Step 2. Open AnyViewer and the device ID, temporary security code and Settings are demonstrated on its home interface.

temporary-code

Step 3. On the client computer, input the device ID of the host computer and then click on “Connect”.

connect

Step 4. Send a control request to your partner.

send-a-control-request-to-your-partner

Step 5. There will be a pop-up window in the host computer. You can control the host computer successfully if you are allowed.

request-to-control-your-device

Bonus Tip: However, nobody can allow the request if there is no one sitting in front of the host computer. Under the circumstance, we can set the security code to control remote PC.

Step 1. Click on the “Settings” and “Recipient”, select the third option to set the security you want.

accept-remote-control

Step 2. After the step “Connect” like the above, Choose “Input security code”, enter the security code you set before on the client computer and then click on OK.

security-code

Note: The security code you set is permanent. And the Temporary security code in the main interface is generated by the software and it changes every time. You can choose one of them according to your necessity.

Conclusion

Now, I guess you already address RDP keeps closing issue through the above ways, like scanning, running Startup Repair and so on. Of course, if all the ways cannot make sense for you, you can also try the third-party remote access software, AnyViewer, which can rapidly and safely solve your problem.