Tổng Quan Lỗi DISM Error 87
Khi chạy DISM /RestoreHealth để sửa ảnh Windows, thường gặp "Error: 87 - The parameter is incorrect". File log: C:\WINDOWS\Logs\DISM\dism.log. Lỗi thường chỉ xảy ra với DISM /RestoreHealth (không phải CheckHealth/ScanHealth) do DISM cần Windows Update cung cấp file sửa chữa. Các mã lỗi khác: 112, 11, 50, 2, 3, 1910, 0x800f081f.
DISM Là Gì?
Deployment Imaging Servicing Management (DISM) có sẵn trên Win 8.1/10, dùng sửa chữa/chuẩn bị ảnh Windows (Recovery Environment, Setup, PE), sửa ảnh khôi phục và ổ cứng ảo. Dùng khi SFC (sfc /scannow) thất bại.
Cách Sửa Lỗi DISM Error 87 Trên Windows 10
Giải Pháp 1: Sử Dụng Lệnh DISM Chính Xác (Quan Trọng)
Phải có khoảng trắng giữa DISM và / :
DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth
Thiếu một khoảng trắng cũng gây Error 87. Chạy Command Prompt Admin.
Giải Pháp 2: Hoàn Tác Windows Update Và Dọn Dẹp Component Store
- Command Prompt Admin: dism.exe /image:C: /cleanup-image /revertpendingactions (hoàn tác cập nhật đang chờ).
- Reboot (hoặc vào Safe Mode).
- Chạy: dism.exe /online /Cleanup-Image /StartComponentCleanup (dọn dẹp WinSxS).
- Reboot lại.
Sau đó chạy DISM và SFC lại bình thường.
Giải Pháp 3: Chạy Windows Update Troubleshooter
Settings > Update & Security > Troubleshoot > Windows Update > Run the troubleshooter. Sửa lỗi cập nhật liên quan DISM.
Giải Pháp 4: Sử Dụng Tùy Chọn /Source (Nâng Cao)
Tránh dùng Windows Update bằng cách cung cấp file nguồn sạch:
- Chuẩn bị file install.wim từ PC khác hoặc tải Windows 10 ISO (cùng version, edition, language).
- Command Prompt Admin chạy: DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim Hoặc giới hạn truy cập Windows Update: DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess (Thay đường dẫn phù hợp).
- Reboot.
DISM sẽ sửa file hỏng không cần Windows Update. Kiểm tra lại lệnh DISM.