How to Fix Critical Process Died on Windows 11 [Fix]

How to Fix Critical Process Died on Windows 11 [Fix]

CRITICAL_PROCESS_DIED, stop code 0xEF, means a core Windows process ended when it should never end, so Windows stopped itself to protect the system. If the PC will not reach the desktop, every fix below starts in the Windows Recovery Environment, the repair area that loads before Windows does. Work in order: recovery first, then the log, then the repair the log points to.

A critical process is one Windows cannot run without. Microsoft lists csrss.exe, wininit.exe, logonui.exe, smss.exe, services.exe, conhost.exe, and winlogon.exe, and the bug check fires when one of them terminates or its state is corrupted or damaged. The usual triggers are damaged system files, a bad driver, a failing drive, a broken update, or a damaged boot configuration. On Windows 11 version 24H2 and later the crash screen is black rather than blue. Microsoft documents the stop code on its bug check reference page. See Microsoft Learn: Bug Check 0xEF CRITICAL_PROCESS_DIED.

First, work out how far your PC gets

  1. It crashed once and has worked fine since. A restart resolves most one-off stop code errors, so only work through this guide if the same stop code comes back.
  2. It reaches the desktop, then crashes later. Skip to the desktop section near the end of this guide.
  3. It never reaches the desktop, or it crashes during startup. Start with the recovery environment section below.
  4. It restarts on its own without ever showing a stop code or a crash screen. That is a different fault. Our guide to fixing a PC that randomly restarts with no error covers that case instead.
Flowchart: a single crash needs no fix, a crash after reaching the desktop goes to the desktop section, a crash during startup goes to the recovery environment, and a restart with no stop code is a different fault

Before touching anything, unplug any hardware you added just before the first crash: a new drive, a USB device, a docking station. If the PC boots cleanly with the device removed, the device or its driver is the cause.

Get into the Windows Recovery Environment

The Windows Recovery Environment, usually shortened to WinRE, is a small repair copy of Windows stored on your drive. It loads before normal Windows and does not depend on your apps, drivers, or account, which is why it still works when Windows itself will not start.

  1. Interrupt the startup twice. Turn the PC on, and as soon as the Windows logo or the manufacturer logo appears, press and hold the power button until the PC shuts off. Turn it on again and repeat the forced shutdown. On the third start, select Advanced options on the Automatic Repair screen.
  2. Use Shift and Restart from the sign-in screen. If the PC reaches the sign-in screen, hold Shift, select the Power icon, then select Restart, and keep holding Shift until the blue Choose an option screen appears. Select Troubleshoot, then Advanced options.
  3. Use Settings if Windows still loads. Open Settings, select System, then Recovery, then select Restart now next to Advanced startup. The PC restarts into the same recovery menu.
  4. Boot from Windows installation media if the recovery partition itself is broken. On another working PC, create Windows 11 installation media with the Media Creation Tool, boot the broken PC from the USB drive, then select Repair your computer instead of Install now.

If a BitLocker recovery screen appears, stop and find the 48-digit recovery key first, usually saved in the Microsoft account the PC is linked to. The recovery tools cannot read an encrypted drive without it. If the recovery menu never appears at all, check in the firmware settings that the internal drive is still detected.

Run Startup Repair, then read its log before doing anything else

From the recovery menu, select Troubleshoot, then Advanced options, then Startup Repair. It checks the boot files, the boot configuration, and the disk. Let it finish, then restart and see whether Windows loads. If it does, you are done. If Startup Repair reports that it could not repair the PC, do not run it again. Read the log it leaves behind first: the log names the failing piece and tells you which repair to run next.

  1. From the recovery menu, select Troubleshoot, then Advanced options, then Command Prompt.
  2. Check which drive letter holds Windows in this session. Type bcdedit and press Enter, then look for osdevice under Windows Boot Loader.
  3. Open the log with Notepad by typing notepad C:\Windows\System32\LogFiles\Srt\SrtTrail.txt and pressing Enter, using the drive letter you just confirmed if it differs.
  4. Scroll to the end of the log and look for the line that starts with Root cause found. That line, and the file or test named just above it, is the diagnosis. If no root cause is named, work through the repairs below in order.
See also  How to Allow Saved Credentials for Remote Desktop Connection
What SrtTrail.txt namesWhat it usually meansGo to
A boot file or the boot configurationBoot files are damaged or missingRepair the boot files, next section
A corrupt system fileWindows files are damagedRepair system files with DISM and SFC
Disk errors or bad sectorsThe drive is struggling to readCheck the disk with chkdsk first
A driver file ending in .sysA driver is crashing the bootSafe Mode, then remove or roll back that driver
No root cause namedNothing specific foundWork the sections below in order
Diagram of reading the Startup Repair log: open SrtTrail.txt from the recovery Command Prompt, find the Root cause found line, then branch to the repair it names

SrtTrail.txt itself never breaks anything, so never delete or edit it. If the file is missing, Startup Repair never ran to completion: skip to the disk check, and if that cannot read the drive either, the drive is the problem.

Repair the boot files the right way for your firmware

When the log names a boot file or the boot configuration, or when Startup Repair fails with no cause named and the PC still cannot start, the boot files are the next suspect. Which command repairs them depends on the firmware type. Windows 11 requires UEFI firmware that is Secure Boot capable, so a PC that shipped with Windows 11 uses UEFI, and the repair tool for UEFI boot files is bcdboot. The older bootrec commands repair BIOS and MBR boot records, for PCs set up in Legacy BIOS mode. Check with diskpart, then list disk: an asterisk in the GPT column means a GPT disk, which goes with UEFI.

On a UEFI PC, rebuild the boot files with bcdboot

Bcdboot copies boot-environment files from the installed Windows image to the system partition and creates a new BCD store, adding a firmware entry that points to Windows Boot Manager. Use the drive letter you confirmed earlier if Windows sits elsewhere in recovery.

  1. In the recovery Command Prompt, type diskpart and press Enter, then type list volume and press Enter. Find the small FAT32 partition labelled System, note its number, then type select volume N, assign letter=S, and type exit.
  2. Type bcdboot C:\Windows /s S: /f UEFI and press Enter. The /s switch points bcdboot at the EFI System Partition you just lettered, and /f UEFI tells it to build UEFI boot files.
  3. Wait for the message that the boot files were successfully created, then close Command Prompt, remove any installation media, and select Continue to restart into Windows. If Windows reaches the sign-in screen, the boot files were the problem. If it still crashes, move on to undoing the last change.

On a BIOS PC, repair the boot records with bootrec

Use this branch only if the disk shows no GPT asterisk, which means MBR and Legacy BIOS mode. On such a PC, bootrec rewrites the boot records. Run the commands in this order, then restart.

  1. Type bootrec /fixmbr and press Enter. This writes a new master boot record.
  2. Type bootrec /fixboot and press Enter. This writes a new boot sector to the system partition.
  3. Type bootrec /scanos and press Enter. This scans the disks for Windows installations that the boot configuration does not list.
  4. Type bootrec /rebuildbcd and press Enter. If it finds your Windows installation, confirm with Y when it asks whether to add it to the boot list.
Firmware and diskRepair toolCommand
UEFI with a GPT diskbcdbootbcdboot C:\Windows /s S: /f UEFI
Legacy BIOS with an MBR diskbootrecbootrec /fixmbr, /fixboot, /scanos, /rebuildbcd

Do not run bcdboot and bootrec on the same PC: they build different boot layouts, and mixing them can leave the PC unable to find Windows at all.

See also  Best Screen Recorders for Windows 10 and 11 (2026)

Undo the last change from WinRE

If the first crash followed an update or a new program, undoing that change is the fastest fix.

  1. If the crash started after a Windows update, select Troubleshoot, then Advanced options, then Uninstall Updates, then Uninstall latest quality update. Removing it does not affect personal files or installed applications. Use the feature update option only if the problem began after Windows installed a new Windows 11 version.
  2. Restart after the uninstall and test. If the crash returns, the update was not the cause.

If no update is to blame, or the update uninstall did not help, use System Restore. From the recovery menu, select Troubleshoot, then Advanced options, then System Restore, and pick a restore point dated before the first crash. System Restore rolls back system files, registry settings, and installed programs to that point, without affecting personal files. This is also the correct answer for a corrupt registry hive: Microsoft stopped automatically backing up the registry to the RegBack folder starting with Windows 10 version 1803, so the files in C:\Windows\System32\config\RegBack are 0 KB placeholders on a modern PC, and copying them over the live hives would replace working files with empty ones. If the restore point list is empty, skip this section and go to system file repair.

Repair system files and the disk from WinRE

When the boot files are fine and no recent change explains the crash, suspect the Windows files. Run these repairs from the recovery Command Prompt, against the offline Windows installation, in this order: check the disk first if the log named disk errors, then repair the Windows image with DISM, then repair the system files with SFC. Run DISM before SFC, because SFC draws its replacement files from the component store DISM repairs.

  1. Check the disk. Type chkdsk C: /f /r and press Enter. The /f switch fixes errors, and /r locates bad sectors and recovers readable information, which includes the work /f does. On a large drive this can take an hour or more. If it reports bad sectors, back up your files first, because bad sectors usually get worse.
  2. Repair the Windows image. Type DISM /Image:C:\ /Cleanup-Image /RestoreHealth and press Enter. The /Image switch points DISM at the offline Windows installation, not the running recovery environment. If the loop began during or right after an update, use DISM /Image:C:\ /Cleanup-Image /RevertPendingActions instead, which rolls back update actions that never finished.
  3. Repair the system files. Type sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows and press Enter. The two offline switches point SFC at the Windows installation on that drive. Wait until verification reaches 100 percent.

SFC ends with one of four messages, and each one means something different:

  • Windows Resource Protection did not find any integrity violations. The system files are fine: move on to the driver checks.
  • Windows Resource Protection found corrupt files and successfully repaired them. Restart and test.
  • Windows Resource Protection found corrupt files but was unable to fix some of them. Run the DISM command again, then run SFC again. The details are in C:\Windows\Logs\CBS\CBS.log, in the entries tagged [SR].
  • Windows Resource Protection could not perform the requested operation. The scan could not run at all. Run the disk check again first, then retry DISM and SFC once.

If DISM reports that it cannot find source files, it cannot reach Windows Update from the recovery environment. Boot from installation media instead, or move on to the reset option. A repair that fails twice with the same error means the damage is deeper than file repair can reach.

If Windows boots again, finish the job from the desktop

Once the PC reaches the desktop, the crash can still come back if the cause is still installed. First, make sure this is the right error: if what you see is a black screen with a cursor and no stop code text at all, that is a display or sign-in problem, not a stop code crash, and our guide to fixing a black screen with a cursor after login on Windows 11 covers it. See Microsoft Support: Troubleshooting Windows unexpected restarts and stop code errors.

See also  Safely Delete the System Reserved Partition in Windows
Checklist diagram for after Windows boots again: read the crash in Event Viewer, check Device Manager, install updates, free up space, then test the memory

Find the crash in Event Viewer

Open Event Viewer from the Start menu, expand Windows Logs, and select System. Look for errors logged in the same time window as the crash, and for the BugCheck entry, Event ID 1001, which records the stop code. Note any driver file or process name it mentions: that name is the lead for the next step.

  1. Right-click Start and select Device Manager. Look for any device marked with a yellow exclamation point.
  2. Right-click the marked device and select Update driver, then Search automatically for drivers. If updating does not help, right-click it again and try Disable device, restart, and test. If the crashes stop, get that driver from the PC maker support site for your exact model.
  3. If a driver update started the crashes, roll it back from the Driver tab in the device properties.

Next, install every pending Windows update, including optional driver updates, from Settings, Windows Update. Then check free space: Microsoft recommends keeping 10 to 15 percent of the drive free, because Windows needs room for swap files and update work.

If the stop code changes every time, or the crashes look random with no pattern, suspect the memory. Press Win plus R, type mdsched.exe, and select Restart now and check for problems. If it reports hardware errors, the memory module is faulty and needs replacing: no software repair will fix bad RAM. If the crashes continue with no pattern, run a clean boot from msconfig: hide all Microsoft services, disable the rest, and re-enable them a few at a time until the crash returns.

When nothing in WinRE works

If Startup Repair, boot repair, System Restore, and the offline DISM and SFC repairs all fail, the installation is damaged beyond what the built-in repairs can reach. Before these options, back up your files to a USB drive from the recovery Command Prompt.

  1. Reset this PC while keeping your files. From the recovery menu, select Troubleshoot, then Reset this PC, then Keep my files. This reinstalls Windows and keeps personal files, but installed applications and settings are removed.
  2. Repair install with the latest Windows 11 ISO. Download the current Windows 11 ISO from Microsoft, then run setup and choose the upgrade option that keeps files and apps.
  3. Clean install as the last resort. Boot from installation media, choose Install now, and install Windows fresh. This erases everything on the system drive, which is why the backup step above comes first. If a clean install still crashes the same way, the cause is hardware, and the PC maker support team is the next step.

Keep it from coming back

  • Install Windows updates when they arrive, and do not interrupt an update halfway through.
  • Get drivers from the PC maker or the device maker for your exact model, and avoid driver updater tools and third-party driver sites.
  • Keep 10 to 15 percent of the system drive free.
  • Take a repeated stop code seriously the second time it appears. A single crash can be a fluke, but the same code twice means something is wrong.

The fix follows a clear order: get into the recovery environment, let Startup Repair try, read the log it leaves, repair the boot files with the tool that matches the firmware, undo the last change, then repair the system files and the disk. Work the order, test after each step, and stop as soon as Windows boots and stays up.

Pradeep S.
Scroll to Top