User profile service failed the sign-in after factory reset

When logging into your account on Windows, the Operating System uses the user profile files in the C drive to load your Windows account. If these user profile files are corrupted, the OS cannot log in to your account. So, when the OS cannot access the desired user profile, we get the error message “The User Profile Service service failed the sign-in.”

The OS will prompt us to the sign-in screen when we get this error message. Here, we have options to sleep, restart, or shut down our computer. If we have another account and the OS can access its User Profile Service, we can log in to that account.

Now, let us see what causes this error and how to fix it.

This error is often because the OS is unable to access user profile files. Now let us see what stops the OS from accessing the required files.

  • Permission on default profile is changed
  • Incorrect values in the registry
  • Corrupted user profile files
  • Issue With Windows update
  • Error while managing partition
  • Antivirus may block a user profile file

How to Fix “The User Profile Service Service Failed the Sign-in” Error?

Now we know some complications in accessing the user profile files that cause this error; let’s see how we can fix these issues.

One simple solution can be using a different account to access Windows. If the computer has multiple user accounts, we can try logging in through another account. However, if the computer only has one account, you can follow these solutions to fix the problem.

To perform any of the solutions mentioned below, we need access to Windows. So, we will enter the account that we cannot access using Safe Mode. 

Entering Safe Mode

The OS uses the minimum number of drivers and resources to start in Safe mode. Therefore, using this feature, there is a high probability that we may be able to access the account.

Tip: If you have any issues that stop you from accessing Windows or Windows user accounts, we can use the Safe mode feature to bypass this error and try some solutions.

You can follow these processes to get in Safe mode.

  1. When you are in the Windows log-in screen, search for the power icon on the bottom-right section of the screen.
  2. Here, press and hold the Shift key and click on Restart.
  3. Once the computer restarts, go to Troubleshoot > Advanced Options > Startup Settings.
  4. Then, click on Restart.
    startup settings restart
  5. Once the computer restarts, select Enable Safe Mode with Networking. You can choose this by pressing 4 or 5, or F4 or F5. The computer will restart again. 

After the restart, log in to the account that causes the problem. You now should be able to access your files. However, there may be an error message warning that says, “We can’t sign in to your account.” Ignore this message by clicking Close.

When on Safe Mode, sometimes, the user cannot access the Start Menu. If this happens, we can use Task Manager to open tasks like Command Prompt and Registry Editor.

Run Startup Repair

The first thing you might want to try is using a feature named Startup Repair tool offered by Windows. The Startup Repair tool deals with any issue that comes up during the Operating System startup. 

This tool will fix any system corrupted files and user profile files. Therefore, the Startup Repair tool can fix any, if not most, problems within these files. You can follow these steps once you get the error message.

  1. Click on OK once you get the error message.
  2. It will prompt you to the sign-in screen. Here, click on the power icon
  3. Then, hold the Shift key and click on Restart simultaneously.
  4. Once the computer restarts, you will be sent to a blue screen that says Choose an option.
  5. Select Troubleshoot. Then, click on Advanced options.troubleshoot-advanced-options
  6. Here, select Startup Repair.startup-repair
  7. Wait for the computer to restart.
  8. Then, choose the user account which is causing the problem.
  9. Enter the password for this account.
  10. The computer will now start to diagnose your computer.
  11. If it displays “Startup Repair couldn’t repair your PC,” click on Shut down and continue with the following solutions mentioned below.

Create New Admin User

We can create a new admin user if we still cannot log in to the account despite running the System Repair. As we know, a corrupted user profile file can cause “The User Profile Service service failed the sign-in.” So, creating a new admin user will have new user profile files, which can fix the problem we face.

Please follow these steps to create a new admin user. 

  1. Open your computer in Safe Mode. Follow the steps mentioned in Entering Safe Mode.
  2. Press the Windows + R key and press Ctrl + Shift + Enter to open Command Prompt as administrator.
    cmd
  3. Type the following command and press Enter.
    net user /add
    add new user from command
  4. Replace and with any username and password respectively. The above command will add a new Windows user account.
  5. Again, type the following command and press Enter.
    net localgroup administrators /addchange normal user to admin
  6. Replace with previously created username. The above command will give administrative privilege to the account named

If you still get the same message, “The User Profile Service service failed the sign-in” when creating a new user, we need to replace the NTUSER.DAT file. 

Replace NTUSER.DAT File

When the NTUSER.DAT file gets corrupted or missing, we will get the error message, “User profile cannot be loaded.” This file contains user profile settings, configurations, preferences, etc., and is located in C:\Users\Default. 

ntuser.dat file

Note: We need the file explorer to show the hidden item to locate this folder.

Whenever we create a new user account in Windows, the NTUSER.DAT file is copied to the new profile from the Default Profile folder. Therefore, if this file in the Default profile gets corrupted, all new user profiles will get the same error message.

Replacing the NTUSER.DAT file is fairly simple. Just copy the NTUSER.DAT file from any other account from C:\Users, preferably Guest, then paste it inside the user profile folder causing the issue. 

Change User Profile Registry Values

The Registry in Windows is like a database that stores the Operating System’s necessary information to configure the system settings for users’ profiles, applications, and hardware. 

These registry values are very sensitive as a change in the wrong value can cause the OS to perform poorly. Therefore, please read every step carefully beforehand and do not change any unnecessary registry values.

You can follow these steps to change the user profile registry values.

  1. Open your computer in Safe Mode. You can follow the steps mentioned in Entering Safe Mode
  2. Once you are in Safe Mode, press the Ctrl + Alt + Del key simultaneously.
  3. Select Task Manager.
  4. Then, click on File and select Run new task.run-new-task
  5. Type “Regedit” without quotation mark and check Create this task with administrative privileges. Press Enter.
  6. Now, navigate toComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileListprofile-list
  7. Once you expand ProfileList, you will see a list of folder with a set of number, this is the SID (Security Identifier) of all the users account. Read How to Determine the SID of a User Account to know the SID of the user account that gives the error message.
  8. Locate the user account folder that is causing the error with the SID.
  9. There should be two folder with the same SID. You can see that these one folder has a .bak extension.  bak-extension
  10. Now, we need to exchange their names. Rename the folder that has no extension by adding .bak at the end and rename the next folder by removing the extension .bak.
  11. Once we have renamed these two files, double-click on the folder that has no extension. 
  12. On the right panel, right-click on State and select Modify.
  13. Set Value data as 0, then press OK.edit-dword
  14. To save the value that we just changed, restart your computer.
  15. If you cannot press the Start menu, open the Task Manager and click on the power icon to restart.

After the restart is complete, try logging into the user profile that showed the error message. If you can log in without any issue, the problem is solved. However, Windows may still give you an error message saying, “We can’t sign in to your account.” If so, we can follow these steps to resolve them.

  1. Follow the above steps to open Registry till step 6.
  2. Double-click on the folder that has the same SID without .bak extension.
  3. On the right panel, right-click State and select Modify.
  4. Again, set the Value data to 0, then click OK.
  5. Restart your computer to save changes.

Once the computer restarts, the OS may prompt you to a screen that says, “Choose privacy settings for your device.” Choose your desired privacy settings and click on Accept.

Once you complete all these steps, the computer should go back to normal.

How to Determine the SID of User Account?

To know the Security Identifier of a user account, please follow these steps.

  1. Press the Windows Key + R simultaneously.
  2. Type “cmd“ and press Ctrl + Shift + Enter to open Command Prompt as administrator.
  3. type the following command and press Enter.
    wmic useraccount get domain,name,sidlist of user command
  1. This command will display the domain name, account name and SID of all user account.

Perform a System Restore

Performing a System Restore will revert all your computer’s application and registry values to a point where you created a Restore Point. A Restore point is basically a picture of your computer settings that the Operating System uses to undo previous settings. 

That being said, we can only perform a System Restore if, previously, we created a System Restore Point.

To perform a System Restore, you can follow these steps.

  1. Press the Windows + R key.
  2. Type “rstrui.exe” without quotation marks and press Enter.
  3. Once the System Restore dialog box opens, click on Next.system-restore-point
  4. Select a restore point, then click on Next.system-restore-point-date
  5. Click Finish. Then select Yes.confirm-restore-point

The system will restart, reverting all system settings, applications, and any changes in Registry values.

Reset PC

If none of the above-mentioned solutions work, we may have to reset our PC. Resetting the Operating System will install a fresh set of system files, including user profiles. 

Although this solution should be your last resort, it is most probable that resetting the PC will solve the issue with the User Profile Service.

To reset your PC, follow the steps mentioned below.

  1. In the Windows user profile selection screen, press the power icon on the lower-right side of the screen. 
  2. Press and hold the Shift key and click on Restart.
  3. Once the computer restarts, go to Troubleshoot > Reset this PC.reset-this-pic
  4. Click on Keep my files.
    keep my files
  5. Select Local reinstall. Click Next if it gives you any warning.
  6. Once the PC is ready to reset, click Reset.

Why does my PC say the user profile Service failed the sign in?

If the error The User Profile Service failed the sign-in appears when you first log in to the computer under a new account, it means that the Default profile is corrupted or the permissions on the Default profile folder have been changed.

What causes a corrupted user profile?

Causes of a Corrupt User Profile in Windows 10 Failed Windows Updates. Compromised system or user files. Corrupted user account active directory. Damaged hard drive file system caused by power outages, disk write errors or virus attacks.