Knowledge Base Windows

How to Fix "The Logon Attempt Failed" on Remote Desktop Even with Correct Password

Windows Β· 2 min read

Fix the "The logon attempt failed" Remote Desktop error on Windows VPS by enabling Remote Desktop in Firewall settings and configuring the Group Policy Credentials Delegation.

If you're getting the "The logon attempt failed" error when trying to connect to your VPS via Remote Desktop β€” even though your username and password are correct β€” follow the steps below.

The logon attempt failed error

Before you start: Double-check your credentials.

  • If you're copy-pasting, make sure no extra spaces are included.
  • Paste the password into Notepad first (to strip any HTML formatting) before pasting it into the Remote Desktop login field.

Step 1 β€” Allow Remote Desktop Through Windows Firewall

  1. Press Windows Key + R, type firewall.cpl, and press Enter.

  2. Click Allow an app or feature through Windows Firewall.

    Windows Firewall settings

  3. Click Change settings, find Remote Desktop in the list, check the box, and click OK.

    Allow Remote Desktop through Firewall

  4. Restart your computer and try logging in again. If the error persists, proceed to Step 2.

Step 2 β€” Configure Group Policy Editor

  1. Press Windows Key + R, type gpedit.msc, and press Enter.

    Open gpedit.msc

  2. Navigate to:

    Computer Configuration β†’ Administrative Templates β†’ System β†’ Credentials Delegation

  3. In the right panel, find "Allow delegating saved credentials with NTLM-only server authentication" and double-click it.

    Credentials Delegation setting

  4. Select Enabled, then click Show in the Options section.

  5. In the window that appears, enter: TERMSRV\*.*

    (Replace *.* with your specific computer name if needed, or keep *.* to allow all hosts.)

    Enter TERMSRV value

  6. Click OK β†’ Apply β†’ OK, then close the Group Policy Editor.

    TERMSRV configuration

  7. Restart your computer (or try connecting without restarting first).

After completing these steps, you should be able to log in to your VPS via Remote Desktop normally.

Chat Support

We're here to help

Available Mon–Sun, 08:00–22:00 WIB