Fix: The User Profile Service service failed the logon. [Step by Step]

By Camilla Mo in Common Errors Tags: Windows 7

When you are trying to log on to Windows 7 with your account, if you receive this error message: The User Profile Service failed the logon. User profile cannot be loaded, use the solution in this post to fix the problem. This solution has been proved to work for many Windows 7 users who have encountered this issue like you.

When you run into this problem, restart your PC and try again. Sometimes restarting would be tricky to resolve the issue.

If the problem persists, try the following solution:

First, start Windows in Safe Mode. If you are not sure how to enter Safe Mode in Windows 7, see How to Enter Safe Mode in Windows 7.

The solution is to fix the user account profile, which requires you to modify the registry. You need to follow the steps carefully, as modifying registry incorrectly might cause serious problems. It is recommended that you back up the registry before you get started, so you can restore it if a problem occurs. For more information about how to back up and restore the registry, visit here.  

Then follow these steps:

1) Press Win+R (Windows logo key and R key) at the same time. A Run dialog box will open.

2) Type regedit  and click on OK button. This is to open Registry Editor utility.

3) In Registry Editor, locate and then expand the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

4) Under this subkey, locate the folders that begin with S-1-5 followed by a long number. 

In most cases, there are two such folders: One ends with .bak and the other one ends with none.).

If this is your case, click on each folder and locate the ProfileImagePath entry in the right details pane. 

Double-click on the ProfileImagePath to make sure that this is the user account profile that has the error. You can tell it from the Value data which shows the user account.

After that, follow these:

1) Right-click on the folder without .bak, and then click Rename. Type .ba at the end, and then press Enter key.

2) Right-click on the folder that ends with .bak, and then click Rename. Remove “.bak” and then press Enter key.

3) Right-click on the folder that ends with .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press Enter key.

4) Reboot your PC and see if you can log on to the computer.

If you have only one folder starting with S-1-5, followed by long numbers and ends with .bak. Right-click on the folder and select Rename. Remove .bak and then press Enter key.

5) Click on the folder, double-click RefCount, type 0 in the Value data box, and then click OK button.

6) Click on the folder again, double-click State, type in the Value data box, and then click OK button.

7) Reboot your PC and you should log on successfully.

  • Staci Shields

    Thank you sooooo much! Problem solved. I am mow logged on my account. You rock! 🎉👍🤗😄

  • Stephanie Galven

    So i’m trying to fix my cousin’s windows 7 Home premium laptop and the problem is this “User Profile Service service failed the logon message”

    So just to give a quick summery of things. There were three accounts total on the laptop

    Admin(belongs to his sister) Standard(his account) and a guest account. His account and the guest account are the two that won’t work.

    I’ve tried to restore the laptop to a previous working state, but that doesn’t seem to help.

    I’ve tried to logging into the admin account in safemode and editing the registry, changing the corrupted S-1-5 file to .bak/ changing the state and Refcount value to 0 , but still nothing.

    I even tried making him a new admin account, but even that account doesn’t allow me to log in normally. However, i can log into that account using safemode, but i get a Location is not available error (C:Windowssystem32configsystemprofileDesktop

    Note: I’ve seen videos where the S-1-5 files have two identical file names and simply by changing one to .bak it seems to fix the problem, but for me there are two different file names with each belonging to my cousin and his sister’s accounts

    I’m completely at a lost here? Any help would be really appreciated.

    • Yusuf

      I am in to same situation, did you got it fixed? can u please share the solution.

  • el bright

    Solved my problem

  • Sd

    Thanks a ton. It worked perfectly.
    From India.

  • Sudeepreddy Chandupatla


  • Josef Martínek

    Hello i have this error right after installation and after restart it wont even consider to find the hard disk and just loops. is there anyway to fix this issue ?

  • Karen See

    Will this method recommended work for Vista?

    • Camilla Mo

      Hi Karen,

      Thanks for your comment. The method also works for Vista. But please note the steps might be a little different.

  • Papoe Jusselly Henry

    Thanks.! Really helpful

  • Sergio Andres Pinzon Sarmiento

    Ive been having this problem with some of the coomputers in my job, we have that kind of enviornment and I just cant log on with any user account, the only thing we usually apply to resolve is resttoring windows.

    Do you have any recommendation?

  • Errol Mae

    Thank you very much! The instructions were pretty straightforward and easy enough to follow even for a technologically-challenged person like myself. This solved my problem. ?

  • Richard Harrison

    Wow! Thanks man! Saved me hours of work here. Seriously, you deserve a beer on me ?

  • Rhea

    I have the one folder, but it doesn’t have .bak on it. I can sign into my account, but when I go to make a new account, the account I make cannot be logged into, local or normal. I’ve tried everything…

  • zuka

    man your a life saver… it worked.. thanks alot

  • GN

    Wow! Thought I was doomed. Thanks for sharing your did.

  • Sunil

    Thanks it helps

  • Rachel

    Really helpful. Prolem fixed. Thank you

  • Saurabh Negi

    Thanks a lot helped for me

  • Thando

    problem solved…Je vous remercie

  • Solomy

    Thanks a lot.
    It has helped me.
    Working fine.

  • Jacob Porter

    Many thanks for the fix!

  • manu Juma

    Thank you so much. The post was helpful to me

  • Lily

    Very helpful. Problem fixed. Thank you.