Share via

User Profile Service Error 1512: Access Denied During Startup or Shutdown

MovelessMove-0585 210 Reputation points
2026-03-12T14:38:42.33+00:00

Hello, I am using Windows 11 25h2.

Version: 26200.0837

Feature: Home

When shutting down or turning on the computer, the following error is logged to eventvwr.msc:

Windows cannot remove your registry file. The memory used by the registry could not be freed. This problem usually occurs because of services running with a user account. Try configuring the services to run with the LocalService or NetworkService account.

DETAILS - Access denied.


The eventvwr.msc log shown above appears twice, reflecting this event when the computer is shut down or started up.

The following steps were followed during installation:

• The official Windows 11 download page was used.

• Windows Media Tools was used.

• Once the OOBE screen was reached, CMD was opened by pressing Ctrl + F10 and the following command was entered:

C:\Windows\System32> start ms-cxh:localonly

• After completing the setup with the local account, I made the necessary settings. The settings are as follows:

| Fast Startup and hypersleep were disabled.

| Signed in with Microsoft Account.

• However, even after these steps, this error continued to appear. As a solution, I did the following:

C:\Windows\System32> net user UserName /add

| Then,

C:\Windows\System32> net localgroup Administrators UserName /add

After these settings, I logged into the account and definitively deleted everything related to the old account from the Settings menu, and no old data remained.

After logging in as the new user, I logged back in with the Microsoft Account.

However, I observed that this error persisted in eventvwr.msc.

The following commands were run for system integrity:

C:\Windows\System23> Dism /Online /Cleanup-Image /Checkhealth

C:\Windows\System23> Dism /Online /Cleanup-Image /ScanHealth

C:\Windows\System23> Sfc /Scannow

• All of these commands confirmed that there were no problems.

• For a more in-depth diagnosis, the following commands were run:

Get-content -path "C:\Windows\Logs\CBS\CBS.log" -Tail 150
Get-content -path "C:\Windows\Logs\DISM\DISM.log" -Tail 150

Logs from both PowerShell instances were reviewed, and no system integrity issues were observed.


The error I mentioned above has been present since installation.

It is located in Eventwvr.msc at:

• Windows Logs -> Application

Based on what I've done, could you please provide information on why this error might have occurred on the system and what steps should be taken to resolve it?

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
0 comments No comments

1 answer

Sort by: Most helpful
  1. Brian Huynh 2,965 Reputation points Microsoft External Staff Moderator
    2026-03-13T05:49:14.9233333+00:00

    Hello MovelessMove-0585, Event ID 1512 occurs when an application or background service fails to release its lock on your user registry hive (NTUSER.DAT) during sign-out or shutdown. Because the file is locked, Windows cannot cleanly unload your profile. This is caused by third-party services—such as antivirus/cloud sync tools—running under your personal user account rather than as a system service.

    Here are my suggested solutions:

    1. Change Service Log On Accounts

    • Press Win + R, type services.msc, and press Enter.
    • Locate any third-party services running under your personal user account.
    • Right-click the service > Properties > Log On tab.
    • Change the account to Local Service or Network Service, apply the changes, and restart your computer.

    2. Disable Fast Startup

    • Open Control Panel > Hardware and Sound > Power Options.
    • Click Choose what the power buttons do.
    • Click Change settings that are currently unavailable.
    • Uncheck Turn on fast startup, then Save changes.

    3. Perform a Clean Boot

    • Press Win + R, type msconfig, and press Enter.
    • Go to the Services tab, check Hide all Microsoft services, and click Disable all.
    • Restart your computer. If the error is resolved, you can re-enable services one by one to identify the specific software causing the conflict.

    I am happy to follow up with you until we get this fixed, so please reply and let me know how it goes.

    If this solution resolves your problem, please click "Accept answer." Doing so helps other community members find this fix quickly.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.