Fix User Profile Service Failed the Logon on Windows
In this article
The "User Profile Service failed the logon" error means Windows cannot load your user profile, so you are stuck at the login screen. The quickest fix is to boot into Safe Mode, open the Registry Editor, and correct or delete the broken profile entry under ProfileList, then sign in again. If that fails, create a new local account and copy your files across. This guide walks through both methods step by step, plus the mistakes that make things worse and what to do if nothing works.
What You'll Need
- Your Windows PC and an administrator account you can still sign in with (or the built-in Administrator account).
- Access to Safe Mode — hold Shift while clicking Restart on the sign-in screen, or use Settings > Update & Security > Recovery > Advanced startup.
- A backup of important files if you plan to create a new profile (copy them to an external drive or another account).
- Patience — registry edits are quick but require care. Do not skip the backup step.
Step-by-Step
- Restart and enter Safe Mode. On the sign-in screen, hold the Shift key and click the power icon, then Restart. When the blue options screen appears, choose Troubleshoot > Advanced options > Startup Settings > Restart. After the restart, press 4 or F4 to enable Safe Mode. If you cannot reach that screen, use Settings > Update & Security > Recovery > Advanced startup > Restart now. Labels can differ slightly by Windows version, but the path is the same on Windows 10 and 11.
- Sign in with an administrator account. Safe Mode may let you log in with the affected account or with another admin account. If the affected account still fails, use a different admin account. If you have none, enable the built-in Administrator account from the sign-in screen using the recovery options — but only if you are comfortable with command-line steps; otherwise skip to the new-account method below.
- Open Registry Editor. Press Windows key + R, type
regedit, and press Enter. Accept the User Account Control prompt. - Navigate to the profile list. In the left pane, expand HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion > ProfileList. You will see several subkeys named like S-1-5-21-... Each represents a user profile.
- Find the broken profile. Click each S-1-5-21-... key and look at the
ProfileImagePathvalue in the right pane. The one pointing to your affected user folder (for example C:\Users\YourName) is the broken profile. Note its full key name. - Check for a .bak duplicate. If you see the same key name ending in
.bak, that is a backup of the profile entry. Right-click the.bakkey and choose Rename, then remove the.bakso it matches the original key name. If a key with the original name still exists, rename it to add.bakfirst, then rename the backup to the original name. This swaps the broken entry for the working backup. - Fix the RefCount and State values (if present). With the correct key selected, double-click
RefCountand set it to 0. Double-clickStateand set it to 0. If those values do not exist, skip this step — do not create them. - Close Registry Editor and restart normally. Sign out of Safe Mode or restart the PC. Try logging in with the affected account. If it loads, you are done.
- If the error persists, create a new local account. Sign in with an admin account, open Settings > Accounts > Family & other users (Windows 10) or Settings > Accounts > Other users (Windows 11), and choose Add someone else to this PC. Create a local account without a Microsoft account if prompted. Sign in once to build the profile.
- Copy your files to the new account. Sign in to the new account, open File Explorer, and navigate to C:\Users\OldAccountName. Copy Desktop, Documents, Pictures, Downloads, and any other folders you need into the matching folders of the new profile. Some files may be locked; if so, take ownership from the old account's Properties > Security tab, or copy from Safe Mode.
- Move your email and app settings manually. Most apps store data in the old profile folder. For browsers, sign in to sync bookmarks and passwords. For email, re-add the account in the mail app. This avoids losing data that does not transfer automatically.
Common Mistakes
- Editing the wrong registry key. Always confirm the
ProfileImagePathmatches your user folder before changing anything. Editing another user's key can break their profile too. - Deleting the profile key instead of renaming it. Renaming to
.bakkeeps a backup. Deleting removes the entry and can make the profile unrecoverable without a full reset. - Skipping Safe Mode. Registry changes made while the broken profile is loaded may not stick. Safe Mode loads a minimal profile and avoids the lock.
- Creating a new account but not copying files first. The old profile folder may be removed after you stop using it. Copy your data before deleting or ignoring the old account.
- Forgetting to back up the registry. Before any edit, right-click the ProfileList key and choose Export to save a copy. If something goes wrong, double-click the .reg file to restore it.
Tips
- Try a simple restart first. Sometimes the profile service starts late, and a reboot fixes it without any edits.
- Check that the User Profile Service is running. Press Windows key + R, type
services.msc, find User Profile Service, and confirm it is started and set to Automatic. This is a quick check before registry work. - If you use a Microsoft account, sign in with the local account first, then link the Microsoft account from Settings > Accounts > Your info. This avoids profile conflicts.
- Keep a second administrator account on every PC. It is the easiest way back in when your main profile fails.
- Run a full antivirus scan after fixing the error. Malware sometimes corrupts profile files, and a clean scan prevents a repeat.
Troubleshooting
If the registry fix does not work, or you cannot access Safe Mode, use the new-account method as your main path. Create the account from an admin login, copy your files, and set it as your daily account. If you cannot sign in to any admin account, use the Advanced startup options to open Command Prompt and enable the built-in Administrator account with net user administrator /active:yes. This is a standard Windows recovery step; sign in as Administrator, then create a new user and copy files. If the PC still fails to load any profile, run System Restore from Advanced options to roll back to a point before the error appeared. System Restore does not delete your personal files, but it does remove apps and drivers installed after the restore point. As a last resort, reset Windows while keeping files — Settings > Update & Security > Recovery > Reset this PC > Keep my files. This removes installed apps and settings but preserves documents and photos. Back up anything critical to an external drive before resetting.
Frequently Asked Questions
What causes the User Profile Service failed the logon error?
It usually happens when the profile registry entry is corrupted, a profile folder is locked or missing, or the User Profile Service cannot start. Malware and interrupted updates can also trigger it.
Will I lose my files if I create a new user account?
No. Your old files stay in C:\Users\OldAccountName until you delete that folder. Copy them to the new account before removing anything.
Can I fix this without Safe Mode?
Sometimes. Try restarting and signing in with another admin account, then edit the registry from there. If no admin account works, Safe Mode or the new-account method is the reliable route.
Is it safe to edit the registry?
Yes, if you export a backup of the ProfileList key first and only change the key that matches your user folder. Renaming rather than deleting keeps a fallback.
Do I need to reinstall Windows?
No. A new local account or a registry fix resolves most cases. Reset Windows only if the profile system is badly damaged and other steps fail.