0XC000026B

STATUS_DLL_INIT_FAILED_LOGOFF (0xC000026B) Fixes

Windows Errors Intermediate 👁 7 views 📅 Jun 8, 2026

This error means a DLL failed to load during user logoff. Usually a corrupt system file or bad driver. Here's exactly how to fix it.

Cause 1: Corrupt System Files (the most common culprit)

Nine times out of ten, this error is because a core Windows DLL got corrupted. It often happens after a bad Windows update or a sudden power loss while the system was writing to the System32 folder. You'll see the error right when you click "Sign out" or "Shut down" — the screen freezes for a second, then pops up with 0xC000026B before you can finish logging off.

The fastest fix is to use the System File Checker (SFC) to find and replace the broken file. Here's the step-by-step:

  1. Press Win + R, type cmd, and then press Ctrl + Shift + Enter to run Command Prompt as administrator. You'll see a UAC prompt — click Yes.
  2. In the command prompt window, type sfc /scannow and press Enter. The scan will start, and you'll see a progress bar. It usually takes 15 to 30 minutes, depending on your drive speed.
  3. Once it finishes, you'll see one of three results:
    • "Windows Resource Protection did not find any integrity violations." — Good news, but you may need to try the next cause.
    • "Windows Resource Protection found corrupt files and successfully repaired them." — Perfect. Restart your PC and test the logoff. The error should be gone.
    • "Windows Resource Protection found corrupt files but was unable to fix some of them." — This means SFC couldn't repair everything. Don't panic. Move to the next step.

If SFC couldn't fix all the files, the next step is to use DISM (Deployment Image Servicing and Management). This tool fixes the system image that SFC relies on. Here's what you do:

  1. Still in the admin command prompt, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. The scan will start, and you'll see a progress bar that goes from 0% to 100%. It can take up to 30 minutes, so be patient.
  2. After that completes, run sfc /scannow again. This time it should find and fix any leftovers.
  3. Restart your PC. After the reboot, try logging off — the error should be gone.

Cause 2: Problematic Third-Party Driver or Service

Sometimes the error isn't from a Windows file, but from a third-party driver or service that tries to initialize during logoff and crashes. I've seen this with outdated graphics drivers (especially from AMD or NVIDIA), old printer drivers, and even some antivirus software like Norton or McAfee. The error code itself doesn't tell you which DLL failed, so you have to isolate the offender.

The most reliable way to test this is to perform a clean boot. This starts Windows with only the essential Microsoft services and drivers, which bypasses anything third-party. Here's how:

  1. Press Win + R, type msconfig, and press Enter.
  2. In the System Configuration window, go to the Services tab.
  3. Check the box that says Hide all Microsoft services. This is important — it hides the critical ones so you don't accidentally disable something Windows needs.
  4. Click Disable all. You'll see all the remaining third-party services get unchecked.
  5. Go to the Startup tab and click Open Task Manager.
  6. In Task Manager, select each startup item and click Disable. Disable everything in the list.
  7. Close Task Manager, go back to System Configuration, and click OK. Restart your PC when prompted.

After the reboot, try logging off. If the error doesn't appear, you've confirmed a third-party program is responsible. Now you need to find which one. Enable half of the disabled services and startup items, restart, and test again. Keep narrowing it down until the error returns. The last group you enabled contains the culprit.

Once you find it, you have options: update the driver or software to the latest version, uninstall it, or check the vendor's support site for a fix. I usually go straight to updating the graphics driver first — that's the most common offender in my experience.

Cause 3: Corrupt User Profile

If the error only happens when a specific user logs off (but other user accounts work fine), then the problem is likely a corrupt user profile. This can happen after a profile migration, a failed upgrade, or just random file corruption in the NTUSER.DAT file. The error will appear only for that one account, and you'll see it every time that user logs off.

The fix here is to create a new user profile and migrate the old data. Don't bother trying to repair the profile — it's not reliable. Here's the process:

  1. Log in as an administrator (not the problem user).
  2. Press Win + R, type sysdm.cpl, and press Enter.
  3. Go to the Advanced tab, and under User Profiles, click Settings.
  4. Find the problem user's profile, select it, and click Delete. This removes the corrupt profile but leaves the user's files in C:\Users\ folder.
  5. Now go to Settings > Accounts > Family & other users. Under Other users, click Add someone else to this PC.
  6. Enter the same username (or a new one) and set a password. This creates a fresh, clean profile.
  7. Log in as the new user. You'll see a brand new desktop. Now, from the old user's folder (C:\Users\OldUsername), copy the files you need — Desktop, Documents, Downloads, etc. Don't copy the NTUSER.DAT file; it's part of the corrupt profile and will reintroduce the problem.

After you've moved the files and set up the new user, test the logoff. The error should be gone. This is a bit of a hassle, but it's the only reliable fix for a corrupt profile.

Quick-Reference Summary Table

Cause Fix Time to try
Corrupt system files Run SFC /scannow, then DISM if needed 30–60 minutes
Third-party driver/service Clean boot to isolate, then update/remove the culprit 1–2 hours (including testing)
Corrupt user profile Delete and recreate the profile 30–45 minutes

Was this solution helpful?