SOLVED: The User Profile Service failed the logon

When you attempt to login to your account on Windows you receive the following error The User Profile Service failed the logonwhich is due to your user profile being corrupt after a windows update or a malware. Not only you, but many others are affected by this issue. The fix is pretty easy and simple for this issue.

To fix this issue please follow the steps below. Before you begin, please bookmark this page so you can access it during the steps because it requires restarting system and re-accessing this page.

Restart your computer and repeatedly tap F8 until you see the Advanced Boot Menu. If you do not see this menu, start over again and repeatedly tap F8 key on your keyboard until you see this. When you see this select Safe Mode with Networking. You will be able to login into safe mode fine.

On the Advanced Boot Menu, select Safe Mode with Networking using the arrow keys on your keyboard. Hit Enter to start computer in Safe Mode with Networking. The picture below shows Safe Mode only, but you need to select “Safe Mode with Networking”


After you have logged in again in the safe mode with networking, Click the Start button and type system restore in the Start Menu‘s search and hit Enter OR open run and type rstrui.exe then Click OK. You can open run by holding windows key and pressing R.

Click the System Restore option from the search.

After it loads up, place a check on Show More Restore Points and click Next.


Select a restore point by looking at the dates when your computer was working fine. Click Next and Finish.

If there are no restore points available, then follow this approach->  adding user via command line

The computer will begin a system restore, and will reboot. After it has rebooted, login to your computer in the normal mode.

Now download Reimage Plus by clicking the here and run the program. It will take a while for it finish scanning. Once it has scanned, and if it has found problems, repair them using the program. Once this is done, Click Start and type cmd in the search box. Right click cmd and select run as administrator. This will open a black command prompt, inside the black prompt type : sfc /scannow and hit enter. A system file check scan will begin which will finish in about 30 to 50 minutes.


Your issue should now be completely resolved after the system file check has finished.

Method 2: Changing Registry Configurations

It is possible that certain Registry Configurations might be corrupted/misconfigured. Therefore, in this step, we will be changing certain Registry Configurations after booting into safe mode. In order to do that:

  1. Restart your computer and repeatedly press “F8” until the “Advanced Boot Menu” shows up.
  2. Use the arrow keys to navigate down and highlight the “Use Safe Mode with Networking“.
  3. PressEnter” to select the option and wait for the computer to restart.
  4. Once restarted, login to your account and the Computer will boot into the Safe Mode.
  5. Click on “Start” and type in “regedit“.
  6. Navigate to the following address
    HKEY_LOCAL_MACHINE>Software>Microsoft>Windows NT>Current Version>Profile List
  7. In this folder, there should be two profiles with the same name except one of them will have “.bak” at the end.
  8. Right-click on the file with “.bak” at its end and select “Rename“.
  9. Remove the letters.bak” from its name and press “Enter“.
  10. Now rightclick on the second file that didn’t have the letters “.bak” in its name.
  11. SelectRename” and add the letters.bak” at the end of its name.
  12. Now click on the folder from which you just removed the letters “.bak“.
  13. In the right pane, right-click on “State” and select “Modify”.
  14. Change the “Value Data” from “8000” to “0” and click on “OK”.
  15. After this, rightclick on “RefCount” and change the Value Data to “0“.
  16. Click on “OK” and close the Registry Editor.
  17. Restart your computer and check to see if the issue persists.


  1. My Sony Vaio Laptop (Windows 7) did not let me log on this morning. I was thinking of bringing my Laptop to a Computer repair Shop but I tried searching in the Internet for a possible solution. Thanks a lot for your help, Kevin. I followed your instruction and now it’s working properly again. Muchos gracias, Sir.

  2. I m stuck at point 5. No previous restore point available on my system as it was disabled previously. Please point out an alternative.

  3. You will need to follow the Microsoft guide in this case, or you can create a new user account from safe mode and copy data from your previous account to it.

  4. I had this issue with user profile service failed the logon and I use the microsoft windows fix and ended up loosing all the photos, docs, and everything. I have been told my photos are in there somewhere. I had to create another profile. So now I have 2. I tried doing a search with *jpeg and they aren’t coming up. What to do?

  5. Kevin…my system restore doesn’t have any restore points available…? Can you please provide a step by step guide to solve this and get mu user profile working again??? Many thks.

  6. Hey kevin arrows. I am usung windiws 7 home version. I am stucked at no. 5.
    No option like. “show more restore points”. Help me for the same

  7. Great, my The User profiles service failed the logon solved in single attempt. Thank you

  8. Thank you very much, I’ve forgotten about this option to restore to an earlier time, and it worked, I appreciated.

  9. Sometimes the problem is related to a file in the Default user folder that fails to copy into the a new user account, and nothing to do with malware or corrupted registry ProfileLists.
    In my case removing .sqm files like C:UsersDefaultAppDataLocalMicrosoftVSCommon12.0SQMsqmdata00.sqm solved my “The User Profile Service service failed the logon. the user profile cannot be loaded” error.

    Administrative Tools->Event Viewer listed errors under the Custom Views->Administrative Events group as a Warning in the “User Profile General” Source column, Event ID 1509, like this:

    Windows cannot copy file
    to location \?C:UsersClassic .NET
    This error may be caused
    by network problems or insufficient security rights.

    DETAIL – Access is denied.

    So you may want to look for 1509 errors in the Event Viewer.

  10. This wont work if your admin profile account is the one corrupted and with password on it.

  11. My computer managed to restore, however I am unable to download the link malware because my internet browsers aren’t acting correctly. Google Chrome has turned into a command prompt program and internet explorer isn’t loading pages. What should I do?

  12. I am having an issue where no matter what time I try to restore to I can’t seem to get it to actually work, it will fail each time trying to restore. I goes through the entire thing reboots and I get the same error

  13. Worked! Thank you so much!!! They need to hire people like you at microsoft. Their website was no help at all!

  14. I got all the way to the last scan and its says “Windows Resource Protection found corrupt files but was unable to fix some of them” Any suggestions for what else I should do?

  15. It works perfectly, thanks. Also it was much better and easier your solution than the one in the windows page. Why does that happens? I have to be honest, i was scared.

  16. I first went on the Microsoft help program, spent an hour deciphering
    it, never worked, spent 15 minutes on your instructions and it worked. Thank you for taking the time for posting great advice

  17. This fix worked perfectly for 2 machines on our network, once I located the .sqm file that came up under the 1509 Event ID and deleted it. Thank You!!

  18. An even better answer without having to install crappy programs.

    When you create a new user
    account and try to logon to it, Windows uses the Default user profile as
    a template to construct the files for the newly created user account. If, for
    some reason Windows can’t access the Default folder or if the Default
    folder isn’t present in C:Users location, the user profile cannot load.
    Here are the instructions to reinstate the Default folder in the Users

    1. Log on as an administrator.

    2. Open the folder C:Users using Windows Explorer.

    3. Click Organize, click Folder and search options, and click the View tab

    4. Click Show hidden files, folders and drives, and click OK.

    5. If the Default user profile folder already exists under C:Users, rename it to Default.OLD

    6. Copy the Default folder from a working computer.

    7.Paste the folder and contents to C:Users

    The newly copied Default folder should inherit the permissions from its parent folder, C:Users. That is, the SYSTEM and Admninistrators are assigned full control, and
    “Users” and “Everyone” have Read permissions. You may want to verify if the permissions are assigned correctly. To do so, right-click the folder C:UsersDefault and click Properties, and select the Security tab. Inspect the permission entries there.

    It’s all set now! Try logging on to the new user account and check if the problem is resolved.

  19. Thank you! It was my first time to encounter this problem but you really helped me out! It’s working again, I really appreciate your effort to post this on the internet. 🙂 Cheers to you!

  20. When I ran the final scan, with the cmd command, it said that corrupt files were found but that it was unable to fix some of them. What would I do in that situation?

  21. I tried that and it said that it doesnt recognize the command-line option “cleanup-image”

  22. I tried it again this morning and now it says:
    The restorehealth option is not recognizedin this context

  23. Since your user profile is severely corrupt it would be best to create a new user account via Safe Mode (as per the command line) instructions above and then migrate old data to the new profile.

  24. Hello Kevin,

    in my situation, under Windows 7, the account gets created but nothing gets written to registry and the default folder structure is also not created. I can’t login to thew newly created account due to the “User Profile Service failed the logon” error. The account does exist as it is visible at command prompt.

    Tried all suggestions but can’t get the account to work. Any other thoughts?

  25. I found a solution for this problem.
    you just have to go to your bios and enable usb legacy mode, and your keyboard will start working

  26. Hi ,

    I am facing similar issue, When I am tapping F8 key nothing is happening . please suggest what to do.
    Laptop Details: Dell Inspiron 5 , Windows 7

  27. Hi, I am using Windows Vista. I tried the methods as above but I can’t access to Safe Mode Page. Everytime I selected the safe mode with networking, it will go back to the same restart page. How should I solve this problem? Thanks

  28. i have put a password on my comp when i put password it comes user profile service failed the logon then what should i do??

  29. I have got to safe mode with networking but I cannot find the start button to continue. Any suggestions please.

  30. Thanks so much, I’m very much a dinosaur when it comes to tech, this was a great help, and easy to follow, thanks again !

  31. Thanks … U saved my life. I had assignments I have to submit by weekend. The steps worked like a dream. Haven’t yet downloaded malwarebytes tho.

  32. ion

    Occasionally, Windows might not read your user profile correctly, such as if your antivirus software is scanning your computer while you try to log on. Before you follow the methods here, try restarting your computer and logging on with your user account again to resolve the issue. If you restart your computer and it does not resolve this issue, use the following methods to resolve this issue.

    Note You must be able to log on to an administrator account to fix your user profile or copy your data to a new account. Before you resolve the issue, log on to Windows by using another account that has administrative permissions, or restart in safe mode to log on with the built-in administrator account. For more information about how to start in safe mode, visit the following Microsoft website:

    Start your computer in safe mode

    Method 1: Fix the user account profile

    To fix the user account profile, follow these steps:

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

    322756 How to back up and restore the registry in Windows How to back up and restore the registry in Windows

    Click Start, type regedit in the Search box, and then press ENTER.

    In Registry Editor, locate and then click the following registry subkey:

    HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList

    In the navigation pane, locate the folder that begins with S-1-5 (SID key) followed by a long number.

    Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.

    If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with.bak, you have to rename the .bak folder. To do this, follow these steps:

    Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.

    Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

    Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.

    If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.

    Click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.

    Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.

    Close Registry Editor.

    Restart the computer.

    Log on again with your account.

  33. Yes, it work for me. MUST follow all the steps. Save my life. I use window 7. I was very frustrated for a few days and tried other ways that does not work. This one actually work. THANK YOU!

  34. Thanks Kevin, I can now login to my computer. Your instructions were so easy to follow, I really appreciate your help.

  35. I have a HP laptop windows 7 Home Premium. When I enter my password I get the user profile service failed the logon. I have tried shutting down taking out the battery restarting. Is my fhe is in the upper left hand corner of a ti did the shift nfak I tried to use the Fn key function key with the number 8 I tried to control if a tight right off of fate and none of those will let me into the FA function in order to do the Advanced Boot menu safe mode with networking as you suggest in the solution.
    Any other suggestions for me?

  36. Hey Kevin…thanks. My company IT department, DELL & Microsoft couldn’t fix this issue. My wife was able to do with your help! So very grateful!

  37. I solved the user profile problem by watching a youtube video. However, now it seems my music files, photos, and other documents are gone. Can I do anything about this? Thanks.

  38. I need your help again, Kevin. I think I really blew it this time. I cannot log on to my laptop anymore as the Administrator. Here’s what happened:

    As usual, I needed go through the whole Restore Point routine; which I did. But this time, a notification that there wasn’t enough room on the C Drive to create/access a Restore Point popped up.

    I decided to do a wipe of my C Drive using CC Cleaner in hopes that this would clear up some space. After that, I made the seriously regretted step of wiping the Recovery (D) Drive? (I guess I thought, why stop at one drive when you can wipe two?) :oP I know. Ridiculous.

    It was after that point that I noticed that there was no longer an option to go back to any Restore Point and have not been able to log on to my laptop since. Please help!

    And MANY many “Thanks” in advance.

  39. Hi Kevin,

    I just wanted to Thank You for your article. My PC came up with the following error message: The User Profile Service failed the logon…and I could not log in no matter what I did.
    I am usually pretty smart when it comes to computers. However, when it comes to the technical stuff I am not so knowledgeable…
    so the first thing I did was type into my cell phone search engine the error message along with my operating system which is Windows 7.
    I’ll be honest…I never expected to find anything that could help me with this. Then I came across your article. I followed your instructions step by step and it worked like a charm!!! Just AMAZING…Thank You so much!!!:-) You have saved me a lot of time and money. Without seeing your article I don’t think I could have ever figured this out on my own.

  40. Please follow command line steps to create new admin account from safe mode, then login to it and copy old profile to th new profile.

  41. I am having the same problem…. never created restore point. … I started laptop in safe mode and networking…. and follow first three step but don not found “choose a different restore point”. Still facing the same problem. Please help me … my contact details is, +918409019634.

  42. You are too kind. I was able to successfully create a new admin profile by following your instructions. Thanks again for all of your help. :o)

  43. Hi Kevin, I just wanted to say thank you! You have really helped me out. Bless you for this kindness!

  44. Kevin,
    1. Should I delete my original admin profile?
    2. You are a gift. I don’t have much, but I would love to donate something to you/your site. Without a doubt, you have saved many of us a lot of expense trying to get our systems back up and running without seeking the help of local paid pros.

  45. Success and most grateful. Tapped F8 repeatedly whilst opening and got safe mode. Followed the instructions through to restore and got everything back. Thank you so much.

  46. power off the system, and as soon as press the power button to turn it on, start pressing f8 continuously until you see the menu to go to safe mode.

  47. Thanks, Kevin, I was about to chuck my beloved laptop in the trash bin. I followed your simple path from f8 to an option to restore a version before 2 major windows updates and now my laptop is alive again! You rock, buddy… and saved me hundreds… thanks again.

  48. Log Name: Application
    Source: Microsoft-Windows-User Profiles General
    Date: 12/30/2016 11:33:43 AM
    Event ID: 1509
    Task Category: None
    Level: Warning
    User: DOMAINusername
    Windows cannot copy file \?C:UsersDefaultAppDataLocalMicrosoftWindowsTemporary Internet FilesSQMiesqmdata_setup0.sqm to location \?C:UsersusernameAppDataLocalMicrosoftWindowsTemporary Internet FilesSQMiesqmdata_setup0.sqm. This error may be caused by network problems or insufficient security rights.

    DETAIL – Access is denied.

    needed to delete C:UsersDefaultAppDataLocalMicrosoftWindowsTemporary Internet Files folder

  49. Hey so I had fixed the issue using your steps thank you so much but 2 weeks later the same thing happened to the second user I created. Will this continue to happen after fixing the issue again?
    Thank you for your help

  50. Thanks a lot for posting this, it helped resolve me a problem with a brand new imaged laptop and the first time user logon.

Leave a Reply

Your email address will not be published.