sodcalculator

10 Tech How-To

Recover Corrupted User Profile in Windows

Guide 10-29145 · Updated · Step by step

This guide walks you through recovering a corrupted user profile in Windows, which typically manifests as a temporary profile, missing desktop icons, or settings that reset on every sign-in. You’ll learn how to back up your data, repair the profile through the Registry, and restore your files to a new profile if needed.

What You’ll Need

  • Administrator access to the Windows PC
  • A second user account with administrator privileges (to perform repairs if your main profile won’t load)
  • An external drive or cloud storage for backing up your files
  • Patience and careful attention to the Registry Editor steps

Step-by-Step

  1. Confirm the corruption. Sign in to the affected account. If you see a message like “We can’t sign into your account” or your desktop looks like a fresh install, your profile is likely corrupted. Check if your files are still present by navigating to C:\Users\[YourUsername] in File Explorer.
  2. Back up your data. While signed in (even with a temporary profile), copy everything important from your user folder (Desktop, Documents, Downloads, Pictures, etc.) to an external drive or cloud storage. If you can’t access these folders, skip to Step 8.
  3. Create a new administrator account (if needed). If you only have one account and it’s corrupted, you may need to boot into Safe Mode (hold Shift while clicking Restart, then navigate to Troubleshoot > Advanced Options > Startup Settings > Restart, then press 4 or 5). From Safe Mode, create a new admin account via Settings > Accounts > Other users > Add account, choosing “I don’t have this person’s sign-in information” and then “Add a user without a Microsoft account”.
  4. Open the Registry Editor. Press Win + R, type regedit, and press Enter. Click Yes if prompted by UAC.
  5. Navigate to the ProfileList key. In the Registry Editor, go to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  6. Identify your corrupted profile. Look for a subkey that starts with S-1-5-21- and ends with .bak (e.g., S-1-5-21-1234567890-1234567890-1234567890-1001.bak). This is the backup of your original profile. Also, note the key without the .bak extension—it may also be corrupted.
  7. Check the ProfileImagePath. Click on each key (both the .bak and non-.bak) and look at the ProfileImagePath value in the right pane. It should point to C:\Users\[YourUsername]. If the non-.bak key points to a temporary profile path like C:\Users\TEMP, that’s a sign of corruption.
  8. Repair the profile. Right-click the .bak key and choose Rename. Change the name by removing the .bak extension (e.g., from ...-1001.bak to ...-1001). If a key without the .bak already exists, right-click it and rename it to ...-1001.old first. Then rename the .bak key to the original name.
  9. Fix the State and RefCount values. With the renamed key selected, double-click State in the right pane and set its value to 0. Then double-click RefCount and set it to 0. If these values don’t exist, right-click in the right pane, select New > DWORD (32-bit) Value, name it accordingly, and set them.
  10. Reboot and sign in. Close the Registry Editor and restart your PC. Sign in with your original account. Windows should now load your original profile with all your settings and files. If it works, you’re done—skip to the Tips section.
  11. If it still fails: create a new profile. If the profile still doesn’t load correctly, you’ll need to create a new user account. Go to Settings > Accounts > Family & other users, and add a new user. Then sign in with that new account.
  12. Copy your files to the new profile. Navigate to C:\Users\[OldUsername] and copy your files (Desktop, Documents, Downloads, etc.) to the corresponding folders in C:\Users\[NewUsername]. You may need to take ownership of the old folders if you get permission errors.
  13. Reinstall your apps and reconfigure settings. Since applications are tied to the user profile, you’ll need to reinstall any programs that were installed only for the old user. Also, reapply your personal settings (wallpaper, theme, etc.).
  14. Delete the old profile (optional). Once you’re sure everything is transferred, you can remove the old profile via System Properties > Advanced > User Profiles > Settings. Select the old profile and click Delete. Be careful—this permanently deletes the profile data.

Common Mistakes

  • Editing the wrong registry key. Make sure you’re in the correct ProfileList subkey. Double-check the SID matches your user account (you can find your SID by running whoami /user in Command Prompt).
  • Forgetting to back up first. Always back up your data before attempting registry changes. A mistake can make things worse.
  • Renaming the .bak key while the original still exists. If you don’t rename the original key first, you’ll end up with two keys with the same name, which can cause errors.
  • Not setting State and RefCount to 0. These values tell Windows how to handle the profile. Leaving them at non-zero values can cause the profile to still be treated as temporary.
  • Skipping the reboot. Registry changes don’t take effect until you restart Windows.

Tips

  • Use System Restore. If you have a restore point from before the corruption, you can try that first. It’s often simpler than manual registry edits.
  • Check disk errors. Run chkdsk /f in an elevated Command Prompt to check for hard drive errors that might be causing profile corruption.
  • Run SFC and DISM. Open Command Prompt as administrator and run sfc /scannow followed by DISM /Online /Cleanup-Image /RestoreHealth to repair system files.
  • Keep your Windows updated. Many profile corruption issues are fixed in cumulative updates.
  • Use a Microsoft account. If you’re using a local account, consider switching to a Microsoft account. It can sync some settings and make recovery easier.

Troubleshooting

If the profile still doesn’t load after the registry fix:

  • Check the Event Viewer. Look for errors under Windows Logs > System, specifically from source “User Profile Service”. The error details may give clues.
  • Try a different repair method. Instead of renaming the .bak key, you can delete the corrupted key entirely (after backing up) and let Windows recreate the profile on next sign-in. This will lose your profile settings but might preserve your files.
  • Boot into Safe Mode. Sometimes a third-party service or driver interferes. Safe Mode loads a minimal set, which might let you sign in and fix the issue.
  • Use a temporary profile to recover files. If you can’t fix the profile, at least you can copy your files out. Sign in with any working account and navigate to C:\Users\[OldUsername] to retrieve your data.
  • Perform a Windows repair install. As a last resort, you can do an in-place upgrade using the Windows Media Creation Tool. This reinstalls Windows while keeping your files and apps, but it’s time-consuming.

Frequently Asked Questions

What causes a corrupted user profile?

Common causes include sudden power loss, malware, disk errors, improper shutdowns, or issues during Windows updates. Sometimes it happens without any obvious trigger.

Will I lose my files if I fix the profile?

No, fixing the profile via the registry method preserves your files. They remain in your user folder. Creating a new profile and copying files also preserves them, but you’ll need to reinstall apps.

Can I fix a corrupted profile without admin rights?

No, you need administrator access to edit the registry and create new profiles. If your only admin account is corrupted, you may need to use Safe Mode or another admin account.

How do I know my SID (Security Identifier)?

Open Command Prompt and type whoami /user. It will display your SID, which you can match to the registry keys.

Is it safe to delete the .bak key?

It’s safer to rename it rather than delete it, because you can rename it back if something goes wrong. Deleting it is permanent, though it won’t delete your files.

Why does Windows keep using a temporary profile?

This happens when the profile’s registry key is corrupted or the profile path is incorrect. The repair steps above address this by resetting the State and RefCount values.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →