When you enter your password and press Enter, sometimes you may get User Profile Service failed the logon error. This error appears as a result of corrupted user profile. In this article we will show you How to fix a corrupt user profile in Windows: The User Profile Service failed the logon.
Important Note: Before you go ahead with the fix, perform the following steps:
- Create a backup of your hard disk, or files that you can’t afford to lose in case the stored files gets deleted in the process to fix the error.
- Take a backup of the Registry by logging into the PC in Safe Mode.
How to fix The User Profile Service failed the logon error in Windows
Option 1. This is to create a new user profile
Before you proceed,
- If another account is configured on your PC, then log into the system using it. Then follow the steps below to create a new user account.
- If there are no other users profiles configured in your system, the boot the PC in Safe Mode and then follow the steps.
- Log into Safe Mode.
- Restart your PC
- Press F8 before the Windows loading screen appears
- Select Safe Mode from the menu that appears
- If that too does not work, then enable the hidden admin account.
- Run CMD as administrator
- Then type the command:
net user administrator /active:yes - The message The command completed successfully will be displayed
- Reboot your PC
- Administrator account as well as your corrupt account will be displayed
- Log into the admin account and follow the steps mentioned below. While using the admin account, you don’t to enter a password.
- Open Control Panel
- Click User Accounts and Family Safety (or similar)
- Click on User Accounts
- Click Manage another account and type in the password (if prompted)
- Click Create a new account
- Type the name. (This must be different from the account which is corrupt)
- Restart your PC
- Copy user files to the new profile
- Log in as Administrator or Guest to enable the account created
- Now click Start, Go to Computer
- Open (Double-click) the drive on which Windows is installed
- Go to Users folder
- Locate the folder containing your old user account
- Open the folder and then go to My Documents
- Now it is advisable to copy files across the contents of sub-folders separately.
- However, if you do not wish to do so, enable hidden files and folders and then make sure the following files:
- dat
- dat.log
- ini
- However, if you do not wish to do so, enable hidden files and folders and then make sure the following files:
- After copying all the files, reboot your PC
- Now log onto the new profile
Option 2: This will fix a corrupt user profile
- Log into Safe Mode.
- Restart your PC
- Press F8 before the Windows loading screen appears
- Select Safe Mode from the menu that appears
- Once you are logged in, click Start
- Type regedit into the search box
- Press Enter
- Registry Editor windows opens
- Locate the key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList - Click each S-1-5 folder
- Double-click the ProfileImagePath entry. This will help you to find out which user account it relates to.
- After you have located the folder for the corrupt profile (it does not have a .bak extension), double-click RefCount
- Change the Value data to 0
- Click Ok
- Double-click on State
- Make the Value data as 0
- Click Ok
- Close regedit windows
- Reboot your PC
- Now your profile will work fine
Now the issue with the user profile will be resolved.
You may also be interested in: How to Install and Enable Hyper-V on Windows 10