Every guide lists its sources, tips, and warnings. Read our editorial policy.

How to Fix "The User Profile Service Failed the Sign-In" and the Temporary Profile

"The User Profile Service failed the sign-in" means Windows gave up loading your profile and handed you a throwaway one at C:\Users\TEMP. Anything saved there dies at sign-out. Fix the ProfileList keys or rebuild the profile and copy the files back.

The short answer

"The User Profile Service failed the sign-in" means Windows gave up loading your profile and handed you a throwaway one at C:\Users\TEMP. Anything saved there dies at sign-out. Fix the ProfileList keys or rebuild the profile and copy the files back.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

You type your password, see `The User Profile Service failed the sign-in. User profile cannot be loaded.` and land on a desktop that looks brand new. Your account survived. The folder it points at did not. Windows fell back to `C:\Users\TEMP`, a scratch profile deleted at sign-out. Move anything you saved to C: first, or read this backup guide.

Quick steps

  1. Sign out of the TEMP profile immediately.
  2. Open regedit and go to the ProfileList key.
  3. Find your SID and check for a .bak twin.
  4. Rename the keys so the plain SID is the real one.
  5. Set State and RefCount to 0.
  6. Reboot and sign back in.
  7. Rebuild the profile if the keys keep failing.

Things you'll need

  • A local administrator account on the same PC
  • The exact account name you sign in with
  • An external drive for the old profile folder
  • Ten minutes, mostly waiting for restarts

Step-by-step

Method 1 of 3

Method 1 of 3: Stop Working in the Temporary Profile

PDF
Step 1: Copy Files Off Before You Sign Out Download image

Step 1: Copy Files Off Before You Sign Out

You are signed into `C:\Users\TEMP`, a scratch profile Windows built in seconds. Move any work file to `C:\` now, then sign out. The folder and its desktop are deleted with the session.

Step 2: Confirm You Really Are on TEMP Download image

Step 2: Confirm You Really Are on TEMP

Open File Explorer and paste `%USERPROFILE%` into the address bar. If it opens `C:\Users\TEMP`, you are on the throwaway profile. Write the real account name down.

Step 3: Check Whether the Old Folder Exists Download image

Step 3: Check Whether the Old Folder Exists

Open `C:\Users` and look for the folder named after your account. Your files are there or they are not. If they are, this is a registry problem; if not, the profile was already removed.

Step 4: Check the Disk for Damage Download image

Step 4: Check the Disk for Damage

Run `chkdsk C: /f` from an elevated Command Prompt before you touch the registry. A profile hive fails to load when the sector holding `NTUSER.DAT` goes unreadable. If it reports errors, fix the drive first.

Step 5: Sign In With Another Admin Download image

Step 5: Sign In With Another Admin

You need an account that does not depend on the broken profile. If there is none, enable the built-in Administrator from the Recovery command prompt with `net user administrator /active:yes`, set a password, then reboot. One working admin is the minimum.

Source: Microsoft Learn — gpresult · See also Microsoft Learn — UEFI firmware requirements · Read next: Recover a Deleted File

Step 6: Export the ProfileList Key Download image

Step 6: Export the ProfileList Key

Run `regedit`, go to `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList`, right-click it and choose Export. Keep the .reg file on a USB stick. One wrong delete in this key locks out every user on the machine.

Method 2 of 3

Method 2 of 3: Repair the ProfileList Registry Entry

PDF
Step 7: Open the ProfileList Key Download image

Step 7: Open the ProfileList Key

Press `Win+R`, type `regedit`, and paste `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList` into the address bar. You see one subkey per SID. Expand nothing yet.

Step 8: Match a SID to Your Account Download image

Step 8: Match a SID to Your Account

Click each SID and read its `ProfileImagePath` value in the right pane. Write the full SID down. The entry ending in your username is yours, and guessing from the folder name breaks the wrong one.

Step 9: Look for the .bak Twin Download image

Step 9: Look for the .bak Twin

If you see the same SID twice, once with `.bak` appended, that is the classic symptom. Windows created a second entry when the original failed to load. That twin is usually the fix.

Step 10: Rename the Keys, Do Not Delete Download image

Step 10: Rename the Keys, Do Not Delete

Right-click the broken key and rename it to `<SID>.old`, then rename `<SID>.bak` to plain `<SID>`. If the rename option is greyed out, you are not running regedit as administrator. Reopen it elevated.

Step 11: Set State to Zero Download image

Step 11: Set State to Zero

Open the surviving key and double-click `State`. Choose Decimal, set it to `0`, and confirm. A value of 4 or 32768 means Windows still thinks the profile is in transition or backed up, which causes the sign-in failure.

Source: Microsoft Learn — DISM Overview · See also Microsoft Learn — diskpart command · Read next: Recover a Deleted File

Step 12: Set RefCount to Zero Too Download image

Step 12: Set RefCount to Zero Too

Do the same for `RefCount`: decimal, `0`. This counter tracks how many processes hold the hive open, and a leftover count makes Windows skip the profile. That lands you back on TEMP.

Step 13: Reboot and Sign In Once Download image

Step 13: Reboot and Sign In Once

Restart the PC and sign in with the repaired account, giving it a full minute and ignoring the black screen. If your wallpaper and icons return, the fix held. If TEMP appears again, the hive is damaged.

Method 3 of 3

Method 3 of 3: Rebuild the Profile and Move the Files

PDF
Step 14: Create a Fresh Local Account Download image

Step 14: Create a Fresh Local Account

Open `Settings → Accounts → Other users → Add account` and create a local account without a Microsoft login. Sign in to it once so Windows builds the profile folder. This becomes your working account.

Step 15: Copy the Old Folder With Robocopy Download image

Step 15: Copy the Old Folder With Robocopy

From an admin Command Prompt run `robocopy C:\Users\OldName C:\Users\NewName /E /COPYALL /R:1 /W:1`. Those flags keep permissions and timestamps and stop it retrying locked files forever. Leave out `NTUSER.DAT` if it refuses to copy.

Step 16: Reattach the Files to the New Account Download image

Step 16: Reattach the Files to the New Account

Sign in as the new account and check Desktop, Documents, and Pictures. If folders refuse to open, take ownership with `icacls C:\Users\NewName /grant NewName:(OI)(CI)F /T`. Do that once at the root.

Step 17: Reinstall Only the Apps That Matter Download image

Step 17: Reinstall Only the Apps That Matter

Programs installed for all users still launch. Apps that kept settings in the old profile start fresh, and that is normal. Reinstall only the ones that will not open, and sign back in to your sync clients first.

Source: Microsoft Learn — UEFI firmware requirements · See also Microsoft Learn — reg commands · Read next: Recover a Deleted File

Step 18: Delete the Broken Profile the Supported Way Download image

Step 18: Delete the Broken Profile the Supported Way

Go to `System Properties → Advanced → User Profiles → Settings`. Select the orphaned profile and click Delete. Doing it here removes the registry entry and the folder together, which is safer than deleting either one by hand.

Step 19: Keep the Old Folder for a Week Download image

Step 19: Keep the Old Folder for a Week

Rename `C:\Users\OldName` to `OldName_backup` and leave it alone. You will notice missing files for days. Delete it once you have opened the important documents and confirmed nothing is gone.

Step 20: Stop When the Hive Keeps Failing Download image

Step 20: Stop When the Hive Keeps Failing

If a freshly built profile also fails to load, stop building them. Each attempt leaves another broken folder behind. At that point the disk, not the profile, is the problem, and a clean install on a new drive is the honest answer.

Tips

  • The SID is not your username. Match it by reading ProfileImagePath inside each key.
  • Robocopy keeps timestamps when you copy a profile: robocopy D:\old C:\Users\you /E /COPYALL. Run it twice. The second pass catches open files.
  • A key fix does not bring back app settings stored in the user hive. Those stay lost if NTUSER.DAT was corrupt.
  • If two accounts end up sharing one folder, stop patching. Create a fresh account and move the data.

Warnings

  • Anything saved in the TEMP profile is deleted at sign-out. Copy it to C:\ first.
  • Editing ProfileList with the wrong SID can lock you out of every account on the PC. Export the key first.
  • Do not delete the .bak key. Rename it. The old values are your only way back.
  • A failing drive causes this error too. Check the disk before trusting any registry fix.

Frequently asked questions

Where did my files go?

They are still in C:\Users\<your name> if that folder exists. The TEMP profile is a different folder. Open File Explorer with admin rights and look.

Will Windows repair this by itself?

No. Restarting gives you the same TEMP profile. The ProfileList entry has to be corrected, or the profile rebuilt from scratch.

Can I just keep using the TEMP profile?

No. Every change is discarded at sign-out. Some apps refuse to launch there at all.

Do I lose my apps after a rebuild?

No. Programs installed for all users still run. Settings tied to the old profile do not carry over.

References

  1. Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows
  2. Microsoft Learn — reg. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg
  3. Microsoft Learn — chkdsk. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk
  4. Microsoft Learn — Windows system error codes. https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.