Logging into Windows 11 only to be met with an error stating “The User Profile Service failed the logon” or discovering that your personal files are missing because you were signed into a temporary profile is incredibly frustrating. This happens when the registry data associated with your user account becomes corrupted.
Instead of completely reinstalling Windows, you can usually fix a corrupted user profile by repairing the system files or creating a new administrative profile and migrating your data. Here is exactly how to do it.
Symptoms of a Corrupted User Profile
You likely have a corrupted profile if you experience any of the following:
- Windows logs you into a temporary profile, meaning your desktop icons and saved files have vanished (they are not deleted, just hidden).
- The Start Menu or Taskbar refuses to open or respond to clicks.
- Windows apps crash immediately upon opening.
- You receive explicit “User Profile Service failed” error messages at the login screen.
Method 1: Run the SFC and DISM Repair Tools
Before modifying user accounts, you should attempt to let Windows repair its own corrupted system files. You will need to do this from an administrator account.
- Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
- Click Yes on the User Account Control prompt.
- Type the System File Checker command and press Enter:
sfc /scannow - Wait for the scan to reach 100%. If it finds and fixes errors, restart your PC and try logging into your account.
- If the issue persists, open the Terminal as an administrator again and run the Deployment Image Servicing and Management (DISM) tool:
DISM /Online /Cleanup-Image /RestoreHealth - Restart your PC once the DISM command completes.
Method 2: Fix the Profile via the Registry Editor
If Windows is logging you into a temporary profile, it is because the Registry is pointing to a backup copy of your user data. Warning: Editing the Registry is dangerous. Follow these steps exactly.
- Press Windows Key + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to this exact path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList - Under the ProfileList folder, you will see several folders with names starting with
S-1-5. Look for a folder that has a.bakextension at the end of its name. - Click the folder without the
.bakextension that shares the exact same name as the.bakfolder. Look at the ProfileImagePath value on the right pane to confirm it points toC:\Users\TEMP. - Right-click the folder without the
.bakextension and select Rename. Add.oldto the end of its name. - Right-click the folder with the
.bakextension, select Rename, and delete the.bakextension (so it now has no extension). - Select this newly renamed folder. In the right pane, double-click the State value, change its “Value data” to
0, and click OK. - Double-click the RefCount value, change its “Value data” to
0, and click OK. - Close the Registry Editor and restart your computer. Windows should now read your correct profile data.
Method 3: Create a New Profile and Transfer Your Data
If the Registry fix does not work, the profile is permanently corrupted. You must create a new local user account and transfer your files over.
- Log into Windows using an administrator account (or boot into Safe Mode if necessary).
- Open Settings > Accounts > Other users.
- Click Add account. Choose I don’t have this person’s sign-in information, then click Add a user without a Microsoft account.
- Create a username (e.g., “NewProfile”) and password, then finish the setup.
- Click on the new account in the Settings menu, select Change account type, and set it to Administrator.
- Log out of your current broken profile and log into the new profile to let Windows generate the initial desktop folders.
- Log back into your original administrator account. Open File Explorer and navigate to
C:\Users\YourOldBrokenUsername. - Press Ctrl + A to select everything in the folder. Then, hold the Ctrl key and click on
Ntuser.dat,Ntuser.dat.log, andNtuser.inito deselect them (these files contain the corruption and must not be copied). - Press Ctrl + C to copy the files, navigate to
C:\Users\NewProfile, and press Ctrl + V to paste them.
Once the transfer is complete, log into your new profile. All your documents, photos, and desktop icons will be waiting for you, completely free of corruption.