Remote Desktop connection fails when VNC succeeds
This article describes how to troubleshoot a failed Remote Desktop connection to a Windows ECS instance when a VNC connection with the same credentials succeeds.
Problem description
You can log on to a Windows ECS instance using VNC. However, a Remote Desktop connection to the instance with the same credentials fails. The Windows system logs in the ECS console show an "Unknown user name or bad password" error.
Cause
The local security setting on the Windows ECS instance is set to Guest only - local users authenticate as Guest.
When this mode is active, any local user who authenticates over the network receives only guest user rights. These limited permissions prevent Remote Desktop connections to the ECS instance.
Solution
Click Start > Run. In the Run dialog box, enter gpedit.msc and click OK to open the Local Group Policy Editor.
In the navigation pane, navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. Then, double-click Network access: Sharing and security model for local accounts.
On the Local Security Setting tab, change the setting from Guest only - local users authenticate as Guest to Classic - local users authenticate as themselves, and then click OK to save the change.
Click Start > Run. In the Run dialog box, enter cmd and click OK to open Command Prompt.
Run the following command to apply the policy.
gpupdate /forceVerify that you can connect to the Windows instance with Remote Desktop.