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

Most Windows errors occur after you log in to your computer. However, the "User Profile Service Failed the Logon" error doesn't allow you to log in at all, which is why it's harder to fix than other Windows errors.

The "User Profile Service Failed the Logon" error occurs due to a corrupted NTUSER.DAT file, a corrupted registry entry or core system file, or an improperly configured User Profile Service. However, you can use the following steps to effectively diagnose and fix the problem.

Enable the built-in admin account using Windows Recovery Environment

The first thing you should do is enable the built-in admin account if you can't log in with your account. All other fixes won't be possible without this hidden account.

There are many ways to enable the built-in administrator account in Windows, but the traditional methods won't work here. So we'll use the Windows Recovery Environment (WinRE) to open an instance of Command Prompt and modify the registry to enable the account.

Warning : Before proceeding with the steps mentioned below, manually backup the system registry to USB using the Export option in Registry Editor, if possible.

Follow these steps to enable the admin account:

1. Click the Power icon .

2. Hold down the Shift key and click on the Restart option .

3. After your PC restarts, click Continue .

4. Select Troubleshoot .

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

5. Click Advanced Options > Command Prompt .

6. Type regedit into the Command Prompt window and press Enter .

7. Click on the HKEY_LOCAL_MACHINE key on the left.

8. Click File > Load Hive .

9. Select the This PC option .

How to fix The User Profile Service failed the logon error on Windows 10
Modify the binary value F in the registry to enable the admin account

10. Click Windows > System 32 > config .

11. Find the SAM file and double-click it.

How to fix The User Profile Service failed the logon error on Windows 10
Select the SAM file to load Hive in Registry Editor

12. Name the key REM_SAM and click OK .

13. Navigate to the following registry key:

HKEY_LOCAL_MACHINE\REM_SAM\SAM\Domains\Account\Users\000001F4

14. Double-click the binary value F.

15. Go to entry 00000038 in the first row.

16. Modify the value 11 in the second column of row 00000038 to 10 .

17. Click OK .

18. Exit the registry editor window.

19. Close Command Prompt.

20. Click Continue to boot into the lock screen. You will see an additional admin account on the lock screen.

Boot into Safe Mode

After enabling the built-in admin account, the first thing you should do is boot Windows into Safe Mode . Safe Mode essentially starts Windows with the bare minimum of features and programs needed to function.

Replace the NTUSER.DAT file

The NTUSER.DAT file stores data about user accounts and if it is corrupted, you will need to replace it. Log in to the admin account that you enabled earlier. Then repeat the following steps:

1. Press Win + E to open File Explorer .

2. Click View > Show > Hidden items .

How to fix The User Profile Service failed the logon error on Windows 10
View hidden items in File Explorer

3. Open the Default folder . Click on the NTUSER.DAT file and rename it to “NTUSER.DAT.OLD”.

4. Press Backspace. Go to the Administrator folder and copy the NTUSER.DAT file.

5. Go back to the Default folder and paste the copied file there.

How to fix The User Profile Service failed the logon error on Windows 10
Copy the NTUSER file to the Default folder

6. Restart your PC to apply the changes.

Use SFC to scan for corrupted files

The most likely cause of the "User Profile Service Failed the Logon" error is a corrupted user file. This can happen for a variety of reasons, from an antivirus scan at startup to a sudden power loss when you turn on your computer.

Fortunately, Windows has a number of built-in utilities that can help you automatically find and repair corrupt Windows files. One such utility is called System File Checker (SFC), and it is executed using the Command Prompt.

Restore computer to previous state

Windows has a useful feature called System Restore that allows you to undo changes to your computer and restore it to an earlier point in time.

Before proceeding, you should know that this feature is not enabled by default and you have to create restore points manually unless you configure Windows to create restore points daily.

If you remember creating a restore point before the error appeared, follow these steps:

How to fix The User Profile Service failed the logon error on Windows 10
System Restore Wizard in Windows 10
  1. Press Windows key + R to launch the Run dialog box .
  2. In the Run box , type rstrui.exe and press Enter .
  3. On the System Restore dialog box, click Next .
  4. Select a restore point from the list.
  5. On the next window, double check everything and click Finish .
  6. Windows will restore itself to its previous state and you can now log in without any trouble.

You should back up any important data or applications they may have installed after creating a restore point.

Change registry configuration

Another way to fix the "User Profile Service Failed the Logon" error is to make some changes to the registry. This is an advanced troubleshooting method and you should create a system restore point before proceeding.

Do the following to configure the registry properly:

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

1. Boot into Safe Mode using the steps in the first section of this article.

2. Press Windows key + R to open the Run prompt. Type regedit and press Enter .

3. In Registry Editor, using the navigation bar on the left, go to:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Profile List

4. Here you will see two files with the same name, but one will have the .bak extension.

5. Right-click on the file with the .bak extension and select Rename . Delete the .bak extension but do not touch the file name and press Enter .

6. Now right click on the original file without the .bak extension and add .bak at the end of the file.

7. In the folder containing the renamed file from step 5, right-click State , then select Modify .

8. Change the value in Value data from 8000 to 0 (zero).

9. Then right-click on the RefCount entry and change the value in Value data to 0 (zero).

10. Confirm the changes and close Registry Editor.

11. Restart your computer and log in.

What if you can't find the .bak file in Registry Editor?

This is unlikely, but your computer may not have created a file with the .bak extension. In this case, open Windows Explorer and go to:

C:\Users\Default\AppData\Local\Application Data

If you find another folder named Application Data in the folder you are using, delete it and restart your computer. It should fix the problem.

Enable User Profile Service

In certain cases, the User Profile Service can become disabled. Usually, a third-party application is the culprit. Luckily, you can enable it by running a simple command in a Command Prompt window:

How to fix The User Profile Service failed the logon error on Windows 10
Command Prompt in Windows 10
  1. Boot your computer into Safe Mode.
  2. In the Start menu search bar, type cmd . From the search results, right-click Command Prompt > Run as administrator .
  3. In the Command Prompt window, type sc config ProfSvc start= auto and press Enter .
  4. Then, type sc start ProfSvc and press Enter .
  5. Close Command Prompt and restart your computer.

Some of these methods are also useful for diagnosing many other common Windows errors, so it's helpful to keep them in mind when you encounter other problems on your computer.

Good luck!

See more articles below:

Tags: #System
Sign up and earn $1000 a day ⋙

Leave a Comment

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.