User Profile Service Failed Sign In Error: Windows Fix
In this article
The "User Profile Service failed the sign-in" error means Windows could not load your profile folder, so it locked you out of your own desktop. The quickest fix is usually to restart the PC, then sign in with a different administrator account and repair or copy the damaged profile from the registry. The error is almost always a corrupted profile rather than a broken password, so changing your password will not help. Nothing needs to be downloaded, but you should have another account on the PC with administrator rights, or be able to create one, because you cannot repair a profile while signed into it.
What You'll Need
- Physical access to the PC and the ability to restart it.
- A second account on the same PC with administrator rights. If none exists, you can enable the built-in Administrator account from the recovery environment (steps below).
- Patience with the registry: back it up before editing, because a wrong change can stop Windows from starting.
- Optionally, a USB drive if you want to copy files out of the damaged profile folder before deleting anything.
Step-by-Step
- Restart and try again. A single failed load is sometimes temporary. Restart the PC fully (Start > Power > Restart, or hold the power button if you cannot reach the desktop) and attempt the sign-in once more.
- Sign in with another administrator account. On the sign-in screen, choose a different account that has administrator rights. If you normally sign in automatically, click the screen or press a key to reveal the account list. Menu labels and account names differ slightly by Windows version and region, but the account picker is in the same lower-left corner.
- Open Registry Editor. From the working account, press Windows key + R, type regedit, and press Enter. Approve the User Account Control prompt.
- Back up the registry first. In Registry Editor, select Computer at the top, then File > Export, choose a name and save the file somewhere safe. If anything goes wrong later, you can double-click that file to restore the keys.
- Find the profile list. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Under it you will see several subkeys named like S-1-5-21-... Each one represents an account.
- Identify the broken profile. Click each S-1-5-21 key and look at the ProfileImagePath value on the right. One of them will point to your broken account's folder, for example C:\Users\YourName. That is the key you need to fix.
- Check for a .bak duplicate. If you see two keys with the same S-1-5-21 number, one ending in .bak, the working profile is usually the one without the suffix. Compare their ProfileImagePath values. If the plain key is missing the correct path and the .bak key has it, rename the plain key (right-click > Rename, add .old to the end) and rename the .bak key to remove the .bak suffix. Sign out and try your account again.
- Fix the RefCount and State values. If there is no .bak pair, click the broken key and double-click RefCount. Set it to 0 and click OK. Then double-click State, set it to 0, and click OK. Close Registry Editor and restart the PC.
- If the profile still will not load, create a fresh one. Sign in with the working administrator account, open Settings > Accounts > Other users (labels vary slightly by version), and add a new local account with administrator rights. Sign into it once so Windows builds its profile, then copy your documents, pictures and desktop files from C:\Users\YourName into the new profile. The old profile folder can be renamed or deleted afterwards, but do that only after you have confirmed your files are copied.
- Restore the built-in Administrator account if you have no other admin. If no working administrator account exists, restart the PC while holding Shift on the sign-in screen to reach the recovery options, choose Troubleshoot > Advanced options > Command Prompt, and run net user administrator /active:yes. Restart, sign in as Administrator, and use it to apply the registry fix above. Disable it again afterwards with net user administrator /active:no.
Common Mistakes
- Editing the registry without a backup. A wrong key can leave Windows unable to boot. Always export first.
- Deleting the profile folder too early. Renaming or deleting C:\Users\YourName before copying files out destroys documents, saved game data and browser profiles.
- Changing the password instead of the profile. The error is about the profile, not credentials. A password reset will not fix it.
- Choosing the wrong S-1-5-21 key. Several accounts share the same prefix. Confirm by matching ProfileImagePath, not by guessing.
- Setting State to 0 on a healthy profile. Only edit the key that points to the broken account.
Tips
- Write down the exact S-1-5-21 key name before you rename anything, so you can undo the change.
- Keep a second administrator account on every PC you own. It is the difference between a five-minute fix and a full reinstall.
- If you use a Microsoft account, signing in with the same account on a fresh local profile will re-sync most settings and files from OneDrive.
- Run a full antivirus scan after recovery, since profile corruption is sometimes caused by malware or an interrupted update.
Troubleshooting
If the registry fix does not work, check Windows Update and install any pending updates, then restart. A failed update is a common cause of profile load errors. If the PC will not reach the sign-in screen at all, use the Shift + Restart recovery menu to open Command Prompt and run sfc /scannow to repair system files. If only one account is affected and others work, the profile itself is damaged, and creating a new profile and copying data across is the reliable route. If every account fails, the problem is system-wide: check the drive for errors with chkdsk from the recovery Command Prompt, and consider a repair install of Windows, which keeps your files and installed programs.
Frequently Asked Questions
Will I lose my files if I delete the broken profile?
Only if you delete the folder before copying anything out. Copy documents, pictures, downloads and desktop files to a new profile or a USB drive first; then the old folder can be removed safely.
Can I fix this without another administrator account?
Yes, by enabling the built-in Administrator account from the recovery Command Prompt, but you need physical access to the PC to reach that menu.
Does this error mean my Microsoft account is locked?
No. The account itself is fine; Windows simply cannot load the local profile folder tied to it.
Why does the error come back after a restart?
The registry values were probably not saved, or the wrong S-1-5-21 key was edited. Recheck that ProfileImagePath points to your actual account folder.
Is a factory reset the only option?
No. A repair install or a new local profile resolves most cases without wiping the drive, so try those before considering a reset.