---
title: "RDP 'Your credentials did not work': what to check, in order · CloudSat"
description: "Fix the RDP error 'Your credentials did not work': user name formats, damaged passwords, saved credentials, account rights, lockouts and the Security log."
url: https://cloudsat.io/learn/fix-rdp-your-credentials-did-not-work
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Windows Server](https://cloudsat.io/learn/topic/windows)

# RDP 'Your credentials did not work': what to check, in order

Fix the RDP error 'Your credentials did not work': user name formats, damaged passwords, saved credentials, account rights, lockouts and the Security log.

CloudSat team November 18, 2026 8 min read

Remote Desktop shows "Your credentials did not work" when the server turns down a user name and password before any desktop exists. The password is often right. What fails is the name, the account, or the way the password reaches the server. Work through the checks below in order: the first three need only your own computer, the last two need a way into the server.

## Where the check happens

With Network Level Authentication, the default on current Windows, your client collects the credentials in its own prompt and the server checks them before drawing anything. When the server refuses, the prompt returns with "Your credentials did not work", and a mistyped password, an unknown user and a disabled account all look the same from your side. The server's Security log holds the real reason, as the last step shows.

Some neighboring messages are more specific, so read yours closely:

| What the client says | What it means |
| --- | --- |
| Your credentials did not work | Name or password rejected, for one of the reasons below |
| ...not authorized for remote login | The account is valid but lacks the Remote Desktop right |
| ...the user account has been locked | Too many failed attempts; wait or release the lockout |
| You must change your password before logging on | The password expired or must change at first sign-in |
| ...CredSSP encryption oracle remediation | A security update is missing on one side |
| Logon attempt failed, with saved credentials | Credential Guard refuses to send saved credentials |

## Step 1: Use the right user name format

Windows has several kinds of accounts, each with its own format:

| Account | Type it as |
| --- | --- |
| Local account on the server | `.\Administrator` or `SERVER01\Administrator` |
| Active Directory domain account | `EXAMPLE\alice` or `alice@example.com` |
| Microsoft account on Windows 10 or 11 | The full email address, such as `alice@example.com` |
| Account on a Microsoft Entra joined PC | `AzureAD\alice@example.com` or `alice@example.com` |

The `.\` prefix means "this computer". Without it, a domain-joined server looks for a domain account of that name. The client also likes to prefill the last name you used, so pick **More choices** > **Use a different account** when the prompt already shows one.

On Entra joined PCs, the `domain\user` form fails with a message saying the remote machine is Microsoft Entra joined, and the **Use a web account to sign in to the remote computer** option on the **Advanced** tab needs the PC's name, not its IP address.

## Step 2: Make sure the password arrives intact

Most correct passwords that fail are damaged on the way:

- **Extra characters.** A password copied from a web page or a document often picks up a trailing space. Paste it into Notepad on your own PC first and watch where the cursor ends up.
- **The wrong keyboard layout.** With Network Level Authentication, the prompt runs on your computer with your layout. Without it, you type into the server's own sign-in screen, which can apply the server's layout, so symbols and some letters land on different keys. In Windows App on a Mac, switching between scancode and Unicode input (Control+Command+K and Control+Command+U) changes how keys are translated.
- **Caps Lock or Num Lock**, especially on the remote sign-in screen.
- **A PIN instead of a password.** A Windows Hello PIN, face or fingerprint belongs to the device it was set up on. Over Remote Desktop, type the account's password.

That catches people who sign in to a Windows 11 PC with a Microsoft account and never type its password: sign in at the PC once with it. If its sign-in screen offers no password option at all, first turn off **For improved security, only allow Windows Hello sign-in for Microsoft accounts on this device** under **Settings** > **Accounts** > **Sign-in options**.

## Step 3: Clear out saved credentials

Remote Desktop Connection can store a password for each server, and an old one keeps failing after the password changes. On the **General** tab, the saved credentials line has **edit** and **delete** links. From a command prompt on your own PC:

```cmd
cmdkey /list
cmdkey /delete:TERMSRV/203.0.113.10
```

Entries for Remote Desktop start with `TERMSRV/` followed by the name or address you connect to. Delete the one for your server, connect again and type the password.

Two client features change what saving does:

- **Credential Guard** stops saved Windows credentials from being sent to a remote host, so the connection fails with "Logon attempt failed". Windows 11 version 22H2 and Windows Server 2025 enable it by default on eligible machines, including Enterprise and Education devices that meet the hardware requirements and domain-joined servers that are not domain controllers. Type the password at each connection instead.
- **Do not allow passwords to be saved**, a policy under the Remote Desktop Connection Client settings, greys out the save option and removes stored passwords from `.rdp` files when you save them.

## Step 4: Check the account on the server

The remaining causes live on the server, so you need another way in: a second administrator account, a colleague, or the server's console. On CloudSat, the server's **Access** tab reveals the generated `Administrator` password, **Reset root password** in **Recovery tools** sets a new one, and **Console access (VNC)** reaches the desktop without Remote Desktop ([recovery tools](https://cloudsat.io/docs/recovery-tools)).

From an administrator Command Prompt:

```cmd
net user alice
net localgroup "Remote Desktop Users"
net accounts
```

`net user` shows whether the account is active and when its password expires, `net localgroup` lists who may connect besides administrators, and `net accounts` shows the lockout threshold and duration. Then fix what you found:

- **Not in the group.** Members of Administrators can always connect; everyone else needs Remote Desktop Users. Add a local user with `Add-LocalGroupMember -Group 'Remote Desktop Users' -Member 'alice'` in PowerShell, or an Entra account with `net localgroup "Remote Desktop Users" /add "AzureAD\alice@example.com"`. The [Remote Desktop setup guide](https://cloudsat.io/learn/enable-remote-desktop-on-windows-server) covers the rest of the access settings.
- **Missing user right.** In `secpol.msc`, under **Local Policies** > **User Rights Assignment**, **Allow log on through Remote Desktop Services** must include the user's group; by default it lists Administrators and Remote Desktop Users on servers and workstations. **Deny log on through Remote Desktop Services** supersedes it, so check that list too. Changes apply at the user's next sign-in without a restart.
- **Locked out.** While a lockout lasts, even the right password fails. Wait out the duration that `net accounts` shows, or open `lusrmgr.msc`, open the user and clear **Account is locked out**. Then ask who was guessing; [hardening RDP against brute force](https://cloudsat.io/learn/secure-rdp-against-brute-force-attacks) stops most of it.
- **Disabled, expired or due for change.** Enable the account with `net user alice /active:yes`. For an expired password, or one that must change at next sign-in, set a new one with `net user alice *`, which prompts without echoing, or clear **User must change password at next logon** in `lusrmgr.msc`. Remote Desktop Connection gives the user no way to change it while Network Level Authentication is on.

## Step 5: Read the reason in the Security log

If the cause is still unclear, the server wrote it down. Every failure is event 4625 in the Security log, with a status code that names the reason. Run this in an administrator PowerShell on the server:

```powershell
Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4625 } -MaxEvents 15 | ForEach-Object {
    $d = ([xml]$_.ToXml()).Event.EventData.Data
    [pscustomobject]@{
        Time      = $_.TimeCreated
        User      = ($d | Where-Object Name -eq 'TargetUserName').'#text'
        Status    = ($d | Where-Object Name -eq 'Status').'#text'
        SubStatus = ($d | Where-Object Name -eq 'SubStatus').'#text'
        LogonType = ($d | Where-Object Name -eq 'LogonType').'#text'
        From      = ($d | Where-Object Name -eq 'IpAddress').'#text'
    }
} | Format-Table -AutoSize
```

Read the SubStatus column, or Status when SubStatus is `0x0`:

| Code | Meaning |
| --- | --- |
| 0xC0000064 | No account with that user name |
| 0xC000006A | Wrong password for a valid account |
| 0xC0000072 | Account disabled |
| 0xC0000193 | Account expired |
| 0xC0000071 | Password expired |
| 0xC0000224 | Password must be changed before signing in |
| 0xC0000234 | Account locked out |
| 0xC000015B | The account lacks the logon right it asked for |

With Network Level Authentication on, these failures usually appear as logon type 3 (network) rather than 10 (remote interactive), because the check runs before any desktop session exists. A burst of 0xC0000064 and 0xC000006A entries for names like `admin` or `test`, from addresses you do not recognize, is not your typo: someone is guessing.

## FAQ

### Why does the same account work from one computer and not another?

The difference sits on the client: a stale saved password, Credential Guard, another keyboard layout or a prefilled user name. Delete the saved entry with `cmdkey` and type both by hand on the machine that fails.

### Can I sign in over Remote Desktop with my Windows Hello PIN?

Not in a standard setup: type the account's password. Managed environments can sign in remotely with Windows Hello for Business certificates or Microsoft Entra authentication, but the PIN on a home PC never travels.

### Does changing the server's password break saved connections?

Yes. Saved credentials keep the old password until you edit or delete them, and every failed attempt counts toward the lockout threshold, so update them as soon as the password changes.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Windows Server](https://cloudsat.io/learn/topic/windows)

- [Secure RDP against brute-force attacks: detect and stop them](https://cloudsat.io/learn/secure-rdp-against-brute-force-attacks): Remote access Secure RDP against brute-force attacks: detect and stop them 9 min read
- [RDP copy and paste not working: fix it layer by layer](https://cloudsat.io/learn/fix-copy-paste-in-remote-desktop): Remote access RDP copy and paste not working: fix it layer by layer 8 min read
- [Ctrl+Alt+Del and Task Manager in a Remote Desktop session](https://cloudsat.io/learn/ctrl-alt-del-and-task-manager-over-rdp): Windows Server Ctrl+Alt+Del and Task Manager in a Remote Desktop session 8 min read
- [RDP 'An internal error has occurred': causes and fixes](https://cloudsat.io/learn/fix-rdp-an-internal-error-has-occurred): Windows Server RDP 'An internal error has occurred': causes and fixes 6 min read
