Not being able to log in to Windows 10 has to be one of the most frustrating problems because all your files are still there, but you can’t access them.
Users reported The User Profile Service failed the logon error message while trying to log in to Windows 10, so let’s see how to fix this problem.
What to do if User Profile Service failed the logon on Windows 10?
- Change the registry
- Create a new user account
- Delete the SID and create a new profile
- Copy the Default folder from a different Windows 10 PC
- Check your registry
- Replace the NTUSER.dat file
- Use Windows 10 Safe Mode
- Use System Restore
1. Change the registry
Sometimes your account might get corrupted, and that can prevent you from accessing Windows 10. This is a frustrating problem, but you can fix it by modifying your registry.
Before we start, we need to mention that modifying registry can lead to system instability and crashes, therefore it’s advised to create a backup just in case anything goes wrong.
To edit the registry you’ll have to sign in as a different user, but if you have only one user account, you can also use Safe Mode to edit the registry. To enter Safe Mode follow these steps:
- Restart your PC few times during the boot sequence to start Automatic Repair process.
- Choose Troubleshoot > Advanced options > Startup Settings. Click the Restart button.
- When your computer restarts you’ll see a list of options. Select Safe Mode with Networking by pressing the appropriate key.
To fix The User Profile Service failed the logon problem, you’ll need Registry Editor, and you can start it by following these steps:
- Press Windows Key + R and enter regedit.
- When Registry Editor opens, navigate to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList key in the left pane.
- Inside ProfileList key there should be several S-1-5 keys available. Select the one that has a long array of numbers as its name. Be sure to check ProfileImagePath sting to see if the value matches the path of the corrupted user profile. In our example, the key is S-1-5-21-2072414048-1790450332-1544196057-1001, but the name of the key will be different on your PC.
- If you have a S-1-5 folder that has a long name with a .bak and the end, for example S-1-5-21-2072414048-1790450332-1544196057-1001.bak, you’ll need to rename it. If you don’t have this key, you can skip to Step 7.This folder usually works as a backup of the corrupted profile, so you’ll need to remove the .bak in order to use it. Simply right click the folder that doesn’t have .bak at the end, choose Rename and add .ba at the end. In our example, we would change the following key:
- Now locate the key with the .bak at the end of its name, in our example it should be S-1-5-21-2072414048-1790450332-1544196057-1001.bak and rename it. The final results would look like this:S-1-5-21-2072414048-1790450332-1544196057-1001.bak
- Lastly, rename the folder that has .ba at the end. Simply remove .ba at the end of the folder name. The results should like like this:S-1-5-21-2072414048-1790450332-1544196057-1001.ba
S-1-5-21-2072414048-1790450332-1544196057-1001We have to mention that S-1-5-21-2072414048-1790450332-1544196057-1001 is just an example that we used, and the key name will be different on your PC, so be sure not to use the same key name that we used in our example.
- Select the profile key that doesn’t have .bak in its name, in our case that would be S-1-5-21-2072414048-1790450332-1544196057-1001, and in the right pane look for RefCount DWORD. Double click it to open its properties and set the Value data to 0. Do the same thing for State DWORD as well.
- After you’re done, close the Registry Editor and restart your PC.
After changing the registry, try to login to Windows 10 by using your user account.
2. Create a new user account
To fix The User Profile Service failed the logon error on Windows 10, some users are suggesting to create a new user account.
Since your user account is corrupted, one way to fix it is to create a new one and migrate all your files to it.
pTo create a new user account you need to enter Safe Mode and follow these steps:
- Open the Settings app and go to Accounts section.
- Go to Family and other users tab and click Add someone else to this PC.
- Click on I don’t have this person’s sign-in information.
- Click Add a user without a Microsoft account.
- Enter a user name for a new user account. If you want, you can also protect it with a password. Click Next.
After you create a new account, try logging in to Windows 10 with your new user account.
If everything works without problems, you’ll have to move your personal files from your previous account and use this account as your main one.
3. Delete the SID and create a new profile
Few users are suggesting to delete the SID and create a new user profile in order to fix this problem. To do that, follow these steps:
- Press Windows Key + S and enter view advanced. Select View advanced system settings from the list of results.
- When System Properties window opens, go to Advanced tab and in the User Profiles section click the Settings button.
- Select the profile you want to remove and click Delete.
- After you do that, start Registry Editor.
- Go to the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList key in the left pane.
- Locate the S-1-5 folder that has a long array of numbers in its name. Click it and check the ProfileImagePath string to see if it’s your profile.
- Right click the key and choose Delete.
This step can cause stability issues, therefore it’s recommended that you create a backup of your registry, or even a System Restore point before proceeding. Bear in mind that this step might not work if you have only one user profile. After removing the registry key, create a new user profile by following the steps from previous solution.
4. Copy the Default folder from a different Windows 10 PC
According to users, you can fix this problem by copying the Default folder from another Windows 10 PC.
This process is quite simple, and in order to complete it, you’ll just need a USB flash drive and another working PC.
To fix this problem, follow these steps:
- Go to the working Windows 10 PC and navigate to C:Users folder.
- Look for Default folder. If this folder isn’t available, click the View tab and then check View hidden items option.
- Copy the Default folder to your USB flash drive.
- Switch back to the problematic PC and go to C:Users folder. You might have to use a different profile or Safe Mode in order to complete this step.
- Locate the Default folder on your PC and rename it to Default.old. If you can’t see the Default folder, be sure to enable hidden items like you did in Step 2.
- Paste the Default folder from your USB flash drive to your computer.
- After pasting the Default folder restart your PC and try to log in with your main account.
5. Check your registry
Users reported that sometimes the Default profile key can point to a different version of Windows, especially if you upgraded from a previous version of Windows.
To fix this problem, you need to manually change few registry settings.
To do that, follow these steps:
- Open Registry Editor and go to the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList key in the left pane.
- In the right pane find the Default string. The value of the string should be %SystemDrive%UsersDefault. Users reported that sometimes this value can change, thus causing this problem. If that’s the case, double click the Default key and set Value data to %SystemDrive%UsersDefault. Click OK to save changes.
- Close Registry Editor and try to login with your user account again.
6. Replace the NTUSER.dat file
According to users, The User Profile Service failed the logon error can occur due to corrupted NTUSER.dat file.
To fix this problem you need to find a working version of NTUSER.dat file.
You can get this file from a different Windows 10 PC, or you can use the one from your PC. Simply go to C:UsersDefault and move the NTUSER.dat to a different folder.
Now go to C:UsersPublic folder and locate the NTUSER.dat file and copy it to C:UsersDefault folder.
7. Use Windows 10 Safe Mode
Safe Mode is a special mode of Windows 10 that starts with default drivers and default software, and if you can’t log in to Windows 10, you should try using Safe Mode.
Users reported that in order to fix this problem you just need to log in to Safe Mode and the problem should be repaired automatically.
8. Use System Restore
You can solve The User Profile Serivce failed the logon error by restoring your system.
- Restart your PC and in the process of restarting, press F8 to open the Advanced Boot Menu. Select the Safe Mode with Networking.
- After you logged in in this manner, click the Start button and type system restore, then press Enter. Alternatively, open the Run command and type rstrui.exe, then click OK.
- After the program loads, check Show More Restore Points, then click Next.
- You need to select a restore point when the computer was working properly. Click Next and then Finish.
After rebooting, login to you computer normally.
The User Profile Service failed the logon can be a quite frustrating error because it prevents you from accessing Windows 10 with your user account, but we hope that you fixed this problem after using one of our solutions.
- Fix: The Account is Not Authorized to Login From This Station
- Fix: Service registration is missing or corrupt on Windows 10
- Skip Login at Start of Windows 10 [How to]
- Fix: PIN not working in Windows 10
- Users can’t log in after upgrading to the Anniversary Update