This topic describes how to resolve the following issue: When you use Remote Desktop Protocol (RDP) to connect to a Windows Elastic Compute Service (ECS) instance, the connection is automatically disconnected after you enter the password of the instance to establish the connection. However, the logon and logoff records for the connection are stored in the system logs of the instance.
Problem description
When you use RDP to connect to a Windows ECS instance, the connection is automatically disconnected after you enter the password of the instance to establish the connection. However, the logon and logoff records for the connection are stored in the system logs of the instance.
For information about how to view the system logs of an instance, see View system logs and screenshots.
Causes
In most cases, the WUDFHost.exe
process calls the C:\Windows\System32\drivers\UMDF\RDPidd.dll
file when an RDP connection is established, which requires the permissions that are granted to the Users group or the Local Service account. If the process does not have the preceding permissions, RDP connections cannot be sustained once established. The preceding issue may also occur when BT-Panel is installed on the system disk of the Windows ECS instance.
Solution
To resolve the preceding issue, you can restore the permissions of the Users group on the system disk. In the following example, the Windows Server 2019 64-bit operating system is used. The configurations may vary based on the operating system version. For more information, see the official documentation for the version of the operating system that you use.
Connect to the Windows ECS instance by using Virtual Network Computing (VNC).
For more information, see Connect to an instance by using VNC.
Right-click Local Disk (C:) and select Properties. In the Local Disk (C:) Properties dialog box, click Edit... on the Security tab.
In the Permissions for Local Disk (C:) dialog box, click Add...
In the Select Users or Groups dialog box, click
.In the Search results section, select Users and then click OK.
Make sure that the Users group is granted the following permissions and then click OK: Read and execute data, list folder contents, and read data.
Use RDP to reconnect to the Windows ECS instance. If the connection is not automatically disconnected after it is established, the preceding issue is resolved.