How to fix The User Profile Service failed the logon error on Windows 10

Milan Stanojevic avatar. By: Milan Stanojevic
8 minute read
logon error windows 10

Home » Fix » How to fix The User Profile Service failed the logon error on Windows 10

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.

The User Profile Service failed the logon on Windows 10, how to fix it?

  1. Change the registry
  2. Create a new user account
  3. Delete the SID and create a new profile
  4. Copy the Default folder from a different Windows 10 PC
  5. Check your registry
  6. Replace the NTUSER.dat file
  7. Use Windows 10 Safe Mode
  8. Use System Restore

Solution 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:

  1. Restart your PC few times during the boot sequence to start Automatic Repair process.
  2. Choose Troubleshoot > Advanced options > Startup Settings. Click the Restart button.
  3. 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:

  1. Press Windows Key + R and enter regedit.
  2. When Registry Editor opens, navigate to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList key in the left pane.
  3. 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.
  4. 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:
  5. 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
  6. 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
    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.
  7. 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.
  8. 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.

Solution 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:

  1. Open the Settings app and go to Accounts section.
  2. Go to Family and other users tab and click Add someone else to this PC.
  3. Click on I don’t have this person’s sign-in information.
  4. Click Add a user without a Microsoft account.
  5. 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.

Solution 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:

  1. Press Windows Key + S and enter view advanced. Select View advanced system settings from the list of results.
  2. When System Properties window opens, go to Advanced tab and in the User Profiles section click the Settings button.
  3. Select the profile you want to remove and click Delete.
  4. After you do that, start Registry Editor.
  5. Go to the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList key in the left pane.
  6. 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.
  7. 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.

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:

  1. Go to the working Windows 10 PC and navigate to C:Users folder.
  2. Look for Default folder. If this folder isn’t available, click the View tab and then check View hidden items option.
  3. Copy the Default folder to your USB flash drive.
  4. 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.
  5. 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.
  6. Paste the Default folder from your USB flash drive to your computer.
  7. After pasting the Default folder restart your PC and try to log in with your main account.

Solution 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:

  1. Open Registry Editor and go to the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList key in the left pane.
  2. 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.
  3. Close Registry Editor and try to login with your user account again.

Solution 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.

If you’re still having issues on your PC or you simply want to avoid them for the future, we recommend you to download this tool (100% safe and tested by us) to fix  various PC problems, such as missing or corrupted files, malware and hardware failure.

Solution 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.

To see how to enter Safe Mode, check Solution 1 for detailed instructions.

Solution 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 retore”, 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.


Editor’s Note: This post was originally published in August 2016 and has been since updated for freshness, and accuracy.


Next up

Windows Media Player cannot change album art [FIX IT LIKE A PRO]

Tashreef Shareef avatar. By: Tashreef Shareef
3 minute read

Windows Media Player allows you to add album art to your favorite tracks with a simple drag and drop function. Sometime, this function may not […]

Continue Reading

Windows 10 v1903 bugs: Display brightness won’t change

Rabia Noureen avatar. By: Rabia Noureen
2 minute read

Microsoft finally released the much-awaited Windows 10 May 2019 Update today. The update stayed in the Release Preview ring for about a month so that […]

Continue Reading

Discord won’t open on Windows 10 [EASY GUIDE]

Vlad Turiceanu avatar. By: Vlad Turiceanu
3 minute read

Despite a great development team behind Discord, some peculiar keep surfacing up. Constant updates and fairly fast bug fixes don’t always solve the problem, as […]

Continue Reading