File: \Windows\system32\ntoskrnl.exe and a status code such as 0xc000000f or 0xc0000221. ntoskrnl.exe is the Windows kernel, but the file is often not actually gone — file-system errors, a damaged boot configuration, an interrupted update, or a failing disk produce the same screen. Boot into Windows Recovery (WinRE), run Startup Repair, and if that fails, check the disk and repair system files offline from Command Prompt (confirm the Windows drive letter first):
chkdsk C: /f /r
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
Then reboot. Don't download ntoskrnl.exe from a "DLL site" — it must match your exact Windows build.
Remove USB drives, SD cards, and external disks, then power on. If you recently overclocked the CPU or RAM or enabled an XMP memory profile, enter BIOS/UEFI setup and load the default settings. Save, reboot, and test.
Force three failed boots (power on, then hold the power button as the Windows logo appears, three times) to open Automatic Repair. If the PC stops at the error screen instead, boot from a Windows 10/11 install USB and choose Next → Repair your computer. Then go to Troubleshoot → Advanced options.
Choose Startup Repair and let it finish. If the error appeared right after a Windows Update, choose Uninstall Updates → Uninstall latest quality update instead. Both leave your files alone. Reboot and test.
Open Advanced options → Command Prompt. Drive letters in WinRE often differ from normal Windows, so run dir C:\Windows (then D:, E:…) to find the Windows volume. Then check it, replacing C: with that letter:
chkdsk C: /f /r
If chkdsk reports bad sectors, treat the drive as failing — copy your data off before going further.
System File Checker replaces damaged protected files, including the kernel, from the copy Windows keeps in its component store. Run it against the offline installation:
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
Wait for it to reach 100%. If it reports it found and repaired files, reboot and test.
If the files check out, the boot entry is the likely problem. On legacy BIOS machines, run:
bootrec /scanos
bootrec /rebuildbcd
Type Y when it lists your Windows installation. On UEFI machines, rewrite the boot files to the EFI System Partition instead (the small FAT32 volume in list vol):
diskpart
list vol
sel vol <EFI-FAT32-vol#>
assign letter=S:
exit
bcdboot C:\Windows /s S: /f UEFI
Look for "Boot files successfully created," then reboot. On UEFI, bootrec /fixboot often returns "Access is denied" — bcdboot is the right tool there.
Still failing? In Advanced options, choose System Restore and pick a restore point from before the error started; personal files are kept. If the error returns after a successful repair, the drive or RAM is the real fault — run the drive maker's diagnostic and a memory test, and plan a replacement.
chkdsk /r — it reads every sector and can push a failing drive over the edge. In diskpart, select only the EFI volume and never run clean, format, or delete partition for this error. Never run repairs on the only copy of irreplaceable data.
Usually, yes. WinRE lives on the broken PC itself — three failed boots open Automatic Repair, where Startup Repair, System Restore, and Command Prompt are available. If WinRE won't load, boot any Windows install USB and choose Repair your computer. The repair itself needs no second computer. (GRAM runs inside Windows rather than from boot media — use it once the machine boots to verify disk health and confirm the root cause.)
No. The kernel must match your exact Windows version and update level, and files from download sites can be the wrong build or tampered with. Offline sfc restores the correct copy from Windows' own component store, and the error is often caused by the disk or boot configuration rather than the file.
No. If Windows boots but blue-screens and a dump viewer lists ntoskrnl.exe, the kernel is usually just where the crash surfaced. The real cause is typically a faulty driver, unstable RAM, or an overclock. That's a crash-dump analysis job, not a boot repair.
Not on Windows 10/11. That Microsoft article covers the older "Windows could not start because the following file is missing or corrupt" message and notes it occurs on Windows versions before Windows 7. On current Windows, follow the repair steps above.
Related: winload.exe missing or corrupt · 0xc000000f boot error · All Windows boot error codes