มาพิจารณาข้อผิดพลาด Boot ของ Windows 10 อีกอย่างหนึ่งที่พบบ่อย ซึ่งเกิดจากไฟล์ winload.efi ที่เสียหายหรือหายไป ปัญหาแสดงออกในลักษณะดังนี้: Windows หยุด Boot พร้อม BSOD และข้อความข้อผิดพลาดปรากฏบนหน้าจอ Boot:
Recovery Your PC needs to be repaired The application or operating system couldn't be loaded because a required file is missing or contains errors. File: \Windows\system32\winload.efi Error code: 0xc000000f You'll need to use the recovery tools on your installation media. If you don't have any installation media (like a disc or USB device), contact your system administrator or PC manufacturer. Press Enter to try again Press F8 for Startup Settings Press ESC for UEFI Firmware Settings

หมายเหตุ Error Code อาจมีลักษณะดังนี้: Error code: 0xc0000225 หรือ 0xc0000001
ข้อผิดพลาดนี้เกิดขึ้นเมื่อ System Boot File \windows\system32\winload.efi หายไปหรือโครงสร้างของมันเสียหาย ปัญหานี้มักเกิดขึ้นหลังจากทำ System Update ผิดพลาด หาก Disk หรือ File System เสียหาย เมื่อ Repartition Disk โดยใช้ Third-party Tools การอัปเดต Antivirus หลังจาก Clone Windows Image ไปยัง Drive อื่น การเปลี่ยน Motherboard ของคอมพิวเตอร์ (หรือการเปลี่ยนแปลง Hardware อย่างมีนัยสำคัญ) ฯลฯ
ไฟล์ Winload.efi เป็น Executable File ของ EFI Environment พร้อม Bootloader ที่ Initializes Environment และเริ่มต้น Windows Boot หากไฟล์นี้เสียหาย หายไป หรือใน Boot Configuration มี Path ไปยัง Volume ที่ไม่มีอยู่จริงซึ่งมีไฟล์ winload.efi Windows 10 จะ Boot ไม่ได้
วิธีแก้ไขขึ้นอยู่กับว่าคุณเคยใช้ UEFI หรือ Legacy Boot Mode ก่อนที่ปัญหาจะเกิดขึ้น ต่อไป พิจารณาขั้นตอนพื้นฐานที่จะช่วยแก้ไขข้อผิดพลาดนี้และ Boot Windows 10 หรือ Windows Server 2016 ให้ถูกต้อง
เปิดใช้งาน Legacy Boot Mode (CSM) และปิดใช้งาน Secure Boot
คอมพิวเตอร์ส่วนใหญ่ที่รองรับ UEFI สามารถ Boot จากทั้ง GPT Partition Table Disks และ Legacy MBR Disks ได้
Key สำหรับเข้าสู่ UEFI Menu ขึ้นอยู่กับ Vendor ของอุปกรณ์ โดยปกติ Key เหล่านี้คือ F2, F8, Del หรือ Esc หรือกดปุ่ม ESC โดยตรงบนหน้าจอ Error

- ลองเปิดใช้งาน CSM Boot Compatibility Mode ใน UEFI Settings (ในบาง UEFI Firmware เรียกว่า Legacy Boot);
- หาและปิดใช้งาน Secure Boot Mode ใน UEFI Settings ตำแหน่งของ Setting นี้ก็ขึ้นอยู่กับ UEFI Firmware เช่นกัน ปกติแล้วเจอได้ใน Section Security, Authentication หรือ Boot Sections บน Laptop HP Secure Boot อยู่ภายใต้ Section Security เปลี่ยนโหมด Secure Boot เป็น Disabled หรือ Off;
Tip เราเคยพูดถึงว่า UEFI คืออะไรและทำไมต้องการ Secure Boot Mode น่าจะเป็นไปได้ว่า System Boot Error ที่เกี่ยวข้องกับการไม่พร้อมใช้งานของไฟล์ winload.efi จะถูกแก้ไขหลังจากปิดใช้งาน Secure Boot Mode ใน UEFI Settings - ตรวจสอบว่า Hard Disk ของคุณถูกเลือกเป็น Boot Device แรก; ตรวจสอบ Boot Device Priority ตรวจสอบว่า Windows Hard Drive ของคุณถูกเลือกเป็น Primary Boot Device ใน UEFI Settings;
- Save Changes และ Restart Computer;
- หาก UEFI Boot Menu พร้อมใช้งานเมื่อคอมพิวเตอร์ Boot ลองเลือก Entry OS Boot Manager (UEFI) – Windows Boot Manager ด้วยตนเอง

ใช้ Automatic Startup Repair เพื่อแก้ไข Windows Bootloader
ลองแก้ไขข้อผิดพลาดนี้โดยใช้ Automatic System Repair Tool ในการทำเช่นนั้น:
- Boot จาก Windows 10 Install Media (หรือ Bootable UEFI USB Flash Drive);
- คลิก Repair your computer หรือกด R;

- ไปที่ Troubleshoot -> Advanced options -> Startup Repair;

- Recovery Wizard จะเริ่มทำงาน จากนั้นปฏิบัติตามคำแนะนำของมัน
หากคุณไม่มี Windows Installation Disk คุณต้อง Restart Computer 3 ครั้งติดต่อกันโดยกดปุ่ม Power จนกว่าจะเห็นหน้าจอ WinRE Recovery Console เลือก See Advanced Repair Options จากนั้นปฏิบัติตามคำแนะนำด้านบน

ปิดใช้งาน Early Launch Anti-Malware Protection (ELAM) บน Windows 10
หากวิธีการก่อนหน้าไม่สามารถแก้ไขข้อผิดพลาดการโหลด winload.efi ได้ ให้ปิดใช้งาน ELAM (Early Launch Anti-Malware) Protection ซึ่งเปิดใช้งานโดย Default สำหรับ Windows Bootloader
หมายเหตุ ELAM อนุญาตให้ Antivirus ที่ได้รับการรับรองเริ่มต้นก่อน Software ของบุคคลที่สามทั้งหมด Antivirus สามารถทำ Early Antivirus Scanning และควบคุมการ Launch ของ Drivers และ Software อื่นๆ ได้
ในการทำเช่นนั้น:
- ทำ Step 1 และ 2 จาก Solution 2;
- ไปที่ Troubleshoot-> Advanced Options -> Startup Settings;
- Restart Computer ด้วยปุ่ม Restart;
- หลังจาก Boot ครั้งต่อไป System จะเปิด Startup Settings อัตโนมัติ (โดยทางอ้อม จากขั้นตอนนี้คุณสามารถเริ่ม Windows ใน Safe Boot Mode ได้);
- กด
F8เพื่อเลือก Item 8) Disable early launch anti-malware protection.

แก้ไข File System Errors และรัน System Files Integrity Check
ตรวจสอบ Disks ของคุณหาข้อผิดพลาด อาจมี Disk หรือ File System Errors บน Partition ที่มีไฟล์ winload.efi เพื่อตรวจสอบ Disks ทั้งหมดหาข้อผิดพลาดและแก้ไข ให้รันคำสั่ง:
chkdsk /f /r
หลังจากนี้ แนะนำให้ตรวจสอบ Integrity ของ System Files โดยใช้ Tool sfc เพื่อใช้ SFC Utility ใน Offline Mode คุณต้องระบุ Path ไปยัง System Drive และ Path ไปยัง Windows Folder คุณสามารถระบุ Drive Letter ที่กำหนดให้กับ Windows Partition ด้วยคำสั่ง:
Bcdedit /enum | find "osdevice"
สมมติ ในกรณีของคุณคือ Drive D: คำสั่งตรวจสอบ Integrity ของ System File จะมีลักษณะดังนี้:
sfc /scannow /offboot=d:\ /offwindir=d:\windows

คุณยังต้องดำเนินการ Offline Check ของ Windows Component Store โดยใช้ DISM คุณต้องเปรียบเทียบ Image ของคุณกับไฟล์ Wim ติดตั้งต้นฉบับของ Windows 10 Build ของคุณ (สมมติ Original Wim Image อยู่บน Drive E:):
Dism /image:D:\ /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim
Tip เพื่อเข้าใจว่า Drive Letters ใดถูกมอบหมายให้ Volumes ใน WinPe Environment ให้รันคำสั่ง:
Diskpart
List vol
จาก Labels และ Sizes ของ Disks คุณสามารถระบุ Drive Letter ของ Partition ที่ติดตั้ง Windows ได้
ซ่อมแซม BCD และไฟล์ Winload.efi สำหรับ UEFI Device
หาก Windows 10 ของคุณติดตั้งใน Native UEFI Mode บน GPT Disk เราแนะนำให้ปฏิบัติตามคำแนะนำเกี่ยวกับการสร้าง Windows 10 EFI Bootloader ใหม่บน UEFI Devices ผมแนะนำให้ใช้บทความที่ลิงก์ ไม่ว่าทุกอย่างจะอธิบายไว้อย่างละเอียด ที่นี่คือ Short Guide:
Boot อุปกรณ์ของคุณจาก Recovery/Install Media และเปิด Command Prompt:
- Execute Command:
diskpart - List Partitions บน Disks:
list volume - หา Partition ที่มี Label ESP หรือ EFI ขนาด 100 MB จำมันไว้ (ขนาดและชื่อ Partition อาจแตกต่างกันขึ้นอยู่กับ Windows Version แต่สิ่งสำคัญคือ File System ของมันต้องเป็น FAT32 เสมอ) หาก EFI Partition ถูกลบโดยไม่ได้ตั้งใจ สามารถกู้คืนได้ดังนี้;
- Select Partition นี้:
select volume 2 - Assign Drive Letter ให้ Partition:
assign letter=Z
- Exit Diskpart:
exit - ตอนนี้คุณต้องสร้าง Bootloader Configuration ใหม่ Copy Boot Files จาก Windows Directory:
bcdboot c:\Windows /s Z: /f ALL(แทนที่c:\ด้วย Drive Letter ที่คุณติดตั้ง Windows) หากคุณทำถูกต้อง ข้อความจะปรากฏ:Boot files successfully created; - Reboot อุปกรณ์ของคุณและตรวจสอบว่าปัญหา Boot กับไฟล์ winload.efi แก้ไขแล้วหรือยัง
Rebuild BCD และ Master Boot Record โดยใช้ Bootrec และ Bcdedit
หากคุณติดตั้ง Windows ใน Legacy BIOS Mode (ไม่ใช่ UEFI Mode) คุณสามารถ Rebuild Boot Records และ MBR Bootloader โดยใช้ Tool bootrec
- ทำตาม Steps 1 และ 2 จาก Solution 2;
- ไปที่ Troubleshoot > Command Prompt;
- ใน Command Prompt ให้รันคำสั่งต่อไปนี้ทีละอัน:
bootrec /FixMbr– เขียน MBR ไปยัง System Partition;bootrec /FixBoot– เขียน Boot Sector ใหม่ทับบน System Partition;bootrec /ScanOs– สแกน Disk หา OS ที่ติดตั้ง;bootrec /RebuildBcd– Rebuild Bootloader Configuration
- ปิด Command Prompt ด้วยคำสั่ง:
exit - Restart Computer ของคุณ

หากวิธีก่อนหน้าไม่ช่วย คุณต้อง Rebuild Boot Configuration File (BCD) สำหรับ MBR ใน Recovery Console Command Prompt:
bcdedit /set {bootmgr} device boot
bcdedit /set {default} device boot
bcdedit /set {default} osdevice boot
bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {default} path \windows\system32\winload.efi
Restart Computer และตรวจสอบว่าปัญหาแก้ไขแล้วหรือยัง