You type your Microsoft account password and get `We can't sign in to your account (0x801C0003)`. The password is probably right. The token Windows cached is not. This code means the cloud side rejected that token, not that the account is gone. Copy your files off first with this backup guide, and never type this password outside microsoft.com.
Quick steps
- Check whether the code is 0x801C001D or 0x80070426.
- Sign in with a local admin account.
- Delete the MicrosoftAccount entry in Credential Manager.
- Clear the Ngc folder to force a new PIN.
- Run dsregcmd /status and read the device state.
- Switch to a local account and back.
- Create a second admin account as a lifeboat.
Things you'll need
- A local administrator account on the PC
- Your Microsoft account password, typed only on microsoft.com
- A phone with the authenticator app if 2FA is on
- Windows 11 install media only if you end up resetting
Step-by-step
Method 1 of 3: Identify Which Sign-In Code You Have
Download image
Step 1: Read the Code Exactly
Write the number down before you click anything. `0x801C0003` is a rejected token, `0x801C001D` means the account needs re-verification, and `0x80070426` means Credential Manager is not running. Three codes, three fixes.
Download image
Step 2: Confirm the PC Reaches the Network
Click the network icon on the lock screen and check for a connected Wi-Fi or Ethernet link. A Microsoft account token can only refresh online. No link means every retry fails the same way.
Source: Microsoft Learn — reg commands · See also Microsoft Learn — Debug system error codes · Read next: Reset Windows 11 and Keep Your Files
Download image
Step 3: Check the Service First
Press `Win+R`, type `services.msc`, and find `Credential Manager`. If it is not running, right-click and start it. That single move clears 0x80070426 in about 20 seconds, before any registry work.
Download image
Step 4: Read the Device State
Open Terminal as administrator and run `dsregcmd /status`. Look at `AzureAdJoined` and `DeviceId`. A device that shows `NO` in those fields is a personal machine, and the enterprise paths do not apply to you at all.
Download image
Step 5: Sign In From Safe Mode
Hold Shift while you choose Restart, then pick `Troubleshoot → Advanced options → Startup Settings → Restart` and press 5. If the account signs in here, a startup program or filter driver is blocking the token on normal boot. That test is decisive.
Download image
Step 6: Try the Account Website
Open a browser and sign in at account.microsoft.com. If that works normally, the account is healthy and the fault is local. If it asks you to verify, do that first, because Windows is failing the same check.
Method 2 of 3: Clear the Cached Credentials and PIN
Download image
Step 7: Log In With a Local Admin
You need an account that does not depend on the broken Microsoft login. If there is none, enable the built-in one from the Recovery prompt, then create a working admin under `Settings → Accounts → Other users`. Do it now.
Download image
Step 8: Open Credential Manager
Run `control keymgr.dll` from the Run box. Under `Windows Credentials`, find entries named `MicrosoftAccount:user=...` or `SSO_POP_Device`, expand each one, and choose Remove. Those are the stale tokens.
Source: Microsoft Learn — Manage Windows client · See also Microsoft Learn — chkdsk command · Read next: Reset Windows 11 and Keep Your Files
Download image
Step 9: Check the Vault Folder
Open `C:\Users\<name>\AppData\Local\Microsoft\Vault` and look for a `Credentials` folder. An empty folder means the cache was already cleared. Back up the folder before you delete anything inside it.
Download image
Step 10: Clear the Ngc Folder
Take ownership of `C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc` and delete its contents from an admin prompt. That folder holds the PIN container. Windows rebuilds it and asks for a new PIN at the next sign-in.
Download image
Step 11: Handle the Access Denied Case
If Explorer says you need permission, the folder is owned by SYSTEM. Run `takeown /f <path> /r /d y` and then `icacls <path> /grant administrators:F /t`. A read-only error usually means no elevation.
Download image
Step 12: Remove and Re-add the Account
Go to `Settings → Accounts → Email & accounts` and remove the Microsoft account, then add it again. The sign-in flow fetches a new token, which is often enough. Your files stay on disk the whole time.
Download image
Step 13: Restart and Set a New PIN
Reboot and sign in with your password instead of the PIN. Windows prompts for a new PIN because the container is gone; choose Skip for now if you want to test the password path first. Add the PIN later.
Method 3 of 3: Switch to a Local Account, Then Decide
Download image
Step 14: Switch to a Local Account
Open `Settings → Accounts → Your info` and click `Sign in with a local account instead`. Enter the Microsoft password once, then set a local name and password. That splits the problem in two.
Source: Microsoft Learn — Debug system error codes · See also Microsoft Learn — manage-bde · Read next: Reset Windows 11 and Keep Your Files
Download image
Step 15: Sign Back In to Microsoft
From the local account, go to `Settings → Accounts → Your info → Sign in with a Microsoft account instead`. Re-linking fetches a token through a different code path than the logon screen, which is why this so often works. Different path, different token.
Download image
Step 16: Create a Second Admin as a Lifeboat
In `Settings → Accounts → Other users`, add another local administrator and sign in to it once. A broken account can never lock you out again, and you have somewhere to read files from while you diagnose. Do it today, not later.
Download image
Step 17: Move Your Data Deliberately
Copy Desktop, Documents, Downloads, and Pictures to the new profile. Do not move `AppData` wholesale; copy individual app folders only when you know what they hold. Most apps rebuild settings on first launch.
Download image
Step 18: Check for a Compromised Account
Sign in at account.microsoft.com and open `Security → Recent activity`. Look for sign-ins from places you have never been. If any show up, change the password first.
Download image
Step 19: Stop at the Reset Line
Stop when new accounts also fail to sign in, or when 0x801C0003 returns after a full PIN reset. The profile store is damaged then. `Reset this PC` with Keep my files beats a fourth attempt.
Tips
- 0x801C001D means verify your identity at account.microsoft.com. Do that first; it fixes more cases than any local step.
- 0x80070426 is the Credential Manager service being off. That is one service start, not an account problem.
- Clearing the Ngc folder forces a new PIN. You need the account password to set it.
- Test in Safe Mode with Networking. If sign-in works there, a startup app or filter driver is blocking the token refresh.
Warnings
- Anyone who asks for your Microsoft password on a forum is stealing it. Microsoft never asks.
- Deleting the Ngc folder removes every Windows Hello PIN and fingerprint for that account. They do not come back.
- Do not delete the whole ServiceProfiles folder. It breaks the local service account permanently.
- Resetting the PC removes apps. Exhaust the account steps first.
Frequently asked questions
Is my Microsoft account hacked?
Usually not. A rejected token looks the same as a compromise. Change the password at account.microsoft.com and check recent activity while you are there.
Why can I sign in to the website but not Windows?
The website asks for a fresh token. Windows reuses one stored on disk, and that copy is what expired.
Will I lose my files?
No files are touched by the credential steps. Only the cached tokens and the PIN container are removed.
Do I need internet to fix this?
Yes for the account steps. A machine that is fully offline needs the local account switch instead.
References
- Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows
- Microsoft Learn — Microsoft Entra device identity documentation. https://learn.microsoft.com/en-us/entra/identity/devices/
- Microsoft Learn — Windows system error codes. https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes
- Microsoft Learn — chkdsk. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.