Hello,
Thank you for posting question on Microsoft Windows forum!
Based on the provided error message "User Profile Service failed the logon" which might indicate the potential corruption in Corrupted User Profile or Incorrect Permissions/Registry Issues: You can try the below steps to see if it helps to resolve the issue.
1.Boot into Safe Mode
- Restart your PC. At the login screen, hold Shift while clicking Power → Restart.
- After reboot, go to Troubleshoot → Advanced Options → Startup Settings → Restart.
- Press F4/F5 to boot into Safe Mode (with or without networking).
- Attempt to log in with the affected account.
2.Run System File Checker (SFC)
- Open Command Prompt as Admin (from Safe Mode or recovery environment).
- running the below command
- sfc /scannow
- Wait for completion. If errors are found, restart.
3.Check Disk for Errors
- In Command Prompt (Admin), run:
- chkdsk C: /f /r
- Press Y to schedule on reboot. Restart your PC.
4.Repair User Profile via Registry
- Caution: Editing the registry can be risky—always back up the registry before making changes (File → Export in Regedit)
- https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692
- Press Win + R, type
regedit, and open as Admin. - Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList - Look for folders (SIDs) with your username in
ProfileImagePath:- If you see two folders for the same user (e.g.,
SIDandSID.bak), delete the folder *without *.bak. - If only one folder exists, rename it to
SID.bak(e.g.,S-1-5-21... → S-1-5-21....bak).
- If you see two folders for the same user (e.g.,
- Set the correct permissions:
- Right-click the
.bakfolder → Permissions → Advanced → Change owner toAdministrators. - Check Replace owner on subcontainers → Apply.
- Grant
AdministratorsFull Control.
- Right-click the
- Remove the
.bakextension from the folder name (revert to original SID). - Inside the SID folder, ensure:
-
State=0(double-click to modify). -
RefCount=0.
-
- Close Regedit and reboot.
5.Create a New User Profile
- Log in with another Admin account (or Safe Mode).
Press Win + R, type netplwiz, and hit Enter.
Click Add → Sign in without Microsoft account → Local account.
Create a new username/password and add it to the Administrators group.
Log out and try logging into the new account.
- If successful, migrate data from the old profile (
C:\Users\OldUsername) to the new one.
6.Disk Space
- Verify that you have sufficient free space on your system drive. Low disk space could also prevent profile creation.
Hope the above information is helpful!