Share via

how to fix ERROR stop code :CRITICAL_PROCESS_DEAD(0Xef)

Jasmine Soh 0 Reputation points
2026-03-17T11:56:22.3433333+00:00

I have follow the steps given:

The first step is to confirm whether the error occurs consistently at boot or only intermittently during use. If it happens immediately at startup, boot into the Windows Recovery Environment (WinRE) by interrupting the boot sequence three times (power off during the spinning dots). From WinRE, run Command Prompt and execute:

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

This will check and repair system files in the offline image. Follow up with:

DISM /Image:C:\ /Cleanup-Image /RestoreHealth

to repair component store corruption.

to repair component store corruption.

When i type the prompt DISM /Image:C:\ /Cleanup-Image /RestoreHealth, it shows error 87

Windows for home | Windows 10 | Performance and system failures
0 comments No comments

3 answers

Sort by: Most helpful
  1. David-M 109.6K Reputation points Independent Advisor
    2026-03-17T12:35:37.2866667+00:00

    Hi. I'm David, and I'm happy to help you.


    DISM error 87 usually means the command syntax is incorrect or not supported in the environment you're running it.


    You may need to adjust the command syntax slightly. I'll guide you through that. But first, could you confirm whether Windows starts correctly in Safe Mode with Networking?

    https://support.microsoft.com/en-us/windows/windows-startup-settings-1af6ec8c-4d4a-4b23-adb7-e76eef0b847f

    At the "Startup settings" step, press 5 or F5 to start Windows in Safe Mode with Networking.


    If Windows starts in Safe Mode with Networking, see if your computer created minidump files.

    These files are in C:\Windows\Minidump.

    (If you don't have a Minidump folder, check if it is in the plural Minidumps.)

    Copy any files you have to your desktop and store them in a ZIP file. Then, upload the ZIP file to the cloud (OneDrive), choose to share it, and get the link.

    Then, post the link to the ZIP file here so I can have a look.


    Looking forward to your reply.

    Feel free to ask any questions you may have.

    0 comments No comments

  2. Jasmine Soh 0 Reputation points
    2026-03-17T12:10:07.2066667+00:00

    When i type in this: DISM /image:D:\ /cleanup-image /restorehealth

    It shows Error 2

    0 comments No comments

  3. Q&A Assist
    2026-03-17T11:56:52.95+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Error 87 with DISM usually indicates a syntax problem or that the command is not valid in the current environment.

    For a CRITICAL_PROCESS_DIED (0xEF) stop error where the system does not boot normally, the supported approach is:

    1. Boot into Windows Recovery Environment (WinRE).
      • If needed, start WinRE from Windows installation media, then select Repair your computerTroubleshootAdvanced optionsCommand Prompt.
    2. Identify the correct system volume letter in WinRE.
      • In Command Prompt, run:
             BCDEdit
        
      • In the Windows Boot Loader section, note the drive letter shown next to osdevice (for example, D:). This is the system volume to use in later commands. Do not assume it is C: in WinRE.
    3. Run Check Disk on the system volume.
      • Replace D: with the osdevice drive letter from the previous step:
             CHKDSK /f D:
        
    4. Run System File Checker (SFC) in offline mode against the same volume.
      • Again, replace D: with the correct drive letter:
             SFC /scannow /offbootdir=D:\ /offwindir=D:\Windows
        
    5. Run DISM /Cleanup-Image /RestoreHealth against the same offline image.
      • Use the same drive letter as above:
             DISM /image:D:\ /cleanup-image /restorehealth
        
      • Error 87 can occur if the path after /image: is wrong, missing the backslash, or points to a drive that does not contain a valid Windows image. Using the correct D:\ (or whatever osdevice is) avoids this.
    6. If DISM reports issues found and fixed, repeat the SFC scan:
         SFC /scannow /offbootdir=D:\ /offwindir=D:\Windows
      

    If the stop error persists even after successful SFC and DISM repairs, follow the advanced startup troubleshooting guidance for Windows boot issues, including checking for pending.xml and related registry entries, or collecting a memory dump for deeper analysis.


    References:

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.