Tắt máy Windows không chỉ cắt điện; nó phải đóng tiến trình, lưu dữ liệu, giải phóng bộ nhớ. Nếu quá trình này kéo dài hàng phút, hãy thử các giải pháp dưới đây.
1. Vấn đề phần mềm (Software Problems)
Chương trình không phản hồi hoặc cần lưu dữ liệu sẽ chặn tắt máy. Khi hiện cửa sổ "Programs need to close", hãy Cancel → lưu thủ công → đóng app → tắt máy lại. Mở Task Manager (Ctrl+Shift+Esc) kiểm tra app nào ngốn RAM/CPU bất thường.
2. Xem chi tiết tiến trình tắt máy (Verbose Shutdown)
- Win+R →
regedit→ điều hướng:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - Tìm/ Tạo DWORD (32-bit) VerboseStatus = 1.
- Restart. Lần tắt máy sau sẽ hiển thị danh sách tiến trình đang đóng. Ghi nhớ tiến trình chậm → troubleshoot driver/app đó.
Cảnh báo: Sửa registry sai có thể làm hỏng hệ thống. Hãy backup registry trước.
3. Cập nhật Windows & Driver
- Settings → Update & Security → Windows Update → Check for updates.
- Cài đặt tất cả, restart.
4. Tắt xóa Page File khi tắt máy (ClearPageFileAtShutdown)
- Regedit →
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management - Tìm ClearPageFileAtShutdown → sửa giá trị = 0 (mặc định 1 = bật).
- Restart. Lưu ý: tắt tính năng này giảm bảo mật (page file có thể chứa dữ liệu nhạy cảm).
5. Kiểm tra lỗi ổ cứng (SSD/HDD)
- File Explorer → This PC → chuột phải ổ đĩa → Properties → tab Tools → Check (Error checking).
- Quét và sửa lỗi bad sector. Nếu hỏng vật lý → thay ổ cứng.
6. Xác định dịch vụ gây chậm qua Event Viewer
- Win+X → Event Viewer (hoặc Win+R →
eventvwr). - Đường dẫn:
Applications and Services Logs > Microsoft > Windows > Diagnostics-Performance > Operational - Chuột phải Operational → Filter Current Log → Event ID: 203 → OK.
- Xem cột General: tìm dòng "This service caused a delay in the system shutdown process". Ghi nhớ File Name và Friendly Name.
- Gỡ ứng dụng/dịch vụ tương ứng (Control Panel → Uninstall).
7. Kiểm tra WaitToKillServiceTimeoutValue
- Regedit →
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control - Tìm WaitToKillServiceTimeoutValue (mặc định 5000 = 5 giây).
- Nếu giá trị > 5000 (VD 20000 = 20s) → sửa về 5000.
- Không đặt dưới 5000 để tránh crash app.
Nếu vẫn không xong: kiểm tra antivirus (tạm tắt/gỡ), sửa lỗi hệ thống, hoặc clean install Windows.