Disconnecting from an RDP session without logging out causes your VPS to freeze because of dwm.exe causing high CPU usage. This prevents the user from subsequent connections for a period of time.
Solution: Force XDDM Driver Use
We need to force Windows to use the XDDM driver instead of the default WDDM graphics driver. To do this, we'll run a command in powershell.
Find gpedit.msc by typing it in the start menu:
Select 'Run as administrator'
Navigate to the following path:
-> Administrative Templates
-> Windows Components
-> Remote Desktop Services
-> Remote Desktop Session Host
-> Remote Session Environment
Use WDDM graphics display driver for Remote Desktop Connections and set it to
Press OK and reboot.