Chào admin! Mình đang cố bật Windows Defender trên Windows 10, nhưng ở "Windows Defender Security Center", thành phần "Virus & threat protection" hiển thị: "Threat service has been stopped. Restart it now". Nhấn nút restart thì báo lỗi lạ: "Unexpected error. Sorry, we ran into a problem. Please try again". Làm sao sửa Windows Defender Antivirus? Cảm ơn trước!

Đáp án
Xem xét các nguyên nhân điển hình khiến tính năng Virus & threat protection (Microsoft Defender Antivirus tích hợp) không hoạt động trên Windows 10. Kiểm tra lần lượt từng mục.
Lưu ý: Từ Windows 10 build 2004, Windows Defender Antivirus đổi tên thành Microsoft Defender Antivirus.
Microsoft Defender không hoạt động do Antivirus thứ 3
Kiểm tra xem máy có cài antivirus thứ 3 chặn Microsoft Defender không. Microsoft Defender Antivirus tự tắt nếu phát hiện antivirus thứ 3 cài đặt.
Quyết định dùng antivirus nào: thứ 3 hay Microsoft Defender. Nếu không cần antivirus thứ 3, tắt hoặc gỡ cài đặt.
Bật các dịch vụ Microsoft Defender Antivirus
Để Microsoft Defender hoạt động đúng trên Windows 10, kiểm tra các dịch vụ sau. Mở Services Management Console (services.msc) đảm bảo các mục sau có trong danh sách:
- Windows Defender Advanced Threat Protection Service (
Sense); - Microsoft Defender Antivirus Network Inspection Service (
WdNisSvc); - Microsoft Defender Antivirus Service (
WinDefend); - Security Center (
WSCSVC).
Kiểm tra trạng thái dịch vụ bằng PowerShell:
get-service Sense, WdNisSvc, WinDefend, wscsvc | select name,status,starttype
Kiểu khởi động phải là Manual cho Sense và WdNisSvc.
Security Center (WinDefend) và Microsoft Defender Antivirus (wscsvc) phải đang Running. Nếu bị Disable, không dùng được Microsoft Defender.
Đảm bảo kiểu khởi động là Automatic. Nếu dịch vụ nào Stopped, khởi động thủ công. Nếu tất cả Running, restart lại.
Bật Microsoft Defender qua Registry trên Windows 10
Trên Windows 10 trước build 2004, có thể tắt Windows Defender qua Registry bằng tham số DisableAntiSpyware. Thường OEM hoặc admin dùng khi muốn dùng antivirus thứ 3.
Chạy Registry Editor (regedit.exe) đến khóa HKLM\Software\Policies\Microsoft\Windows Defender. Nếu tham số DWORD DisableAntiVirus và DisableAntiSpyware xuất hiện (ít nhất một), xóa hoặc đổi giá trị thành 0.
Đôi khi thay đổi/xóa tham số này báo lỗi:
Cannot edit DisableAntiSpyware. Error writing the value's new contents.
Lý do: Windows Defender có driver kernel-mode (wdfilter.sys) đăng ký Registry callback filter bảo vệ khóa Registry của Defender.
Thử dừng tất cả dịch vụ liên quan Windows Defender trước khi sửa Registry.
Cũng thử Take Ownership khóa Registry HKLM\Software\Policies\Microsoft\Windows Defender và cấp quyền Full Control.
Sau đó thử restart Virus & Threat Protection bằng nút "Restart now". Dịch vụ phải khởi động đúng.
Vào Settings → Windows Security → Virus & threat protection → Turn on.
Kiểm tra Real-time protection bật ở Windows Security → Virus & threat protection → Manage settings.
Trên build Windows 10 hiện tại, không thể tắt Microsoft Defender Antivirus qua DisableAntiSpyware (lỗ hổng này từng bị malware khai thác).
Microsoft Defender tự tắt nếu Windows 10 phát hiện antivirus thứ 3. Nếu không cài antivirus thứ 3 mà muốn tắt Microsoft Defender, trước tiên phải tắt Microsoft Defender Tamper Protection. Tính năng này ngăn ứng dụng độc hại sửa cài đặt quan trọng của Defender (bảo vệ real-time, cloud protection). Tamper Protection chỉ tắt qua ứng dụng Windows Security, có prompt UAC xác nhận.
Cũng tắt Tamper Protection qua Registry: tạo DWORD TamperProtection giá trị 0 tại khóa HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features. Nhưng trước đó phải take ownership khóa Features.
Kiểm tra Microsoft Defender bật trong Group Policy
Mở Local Group Policy Editor (gpedit.msc) kiểm tra Microsoft Defender không bị tắt qua GPO. Vào Computer Configuration → Administrator Templates → Windows Components → Windows Defender Antivirus. Xác minh policy Turn off Microsoft Defender Antivirus là Not configured hoặc Disabled.
Trên Windows 10 2004+, mục GPO cài đặt Defender tên là Microsoft Defender Antivirus.
Đăng ký lại DLL Microsoft Defender
Thử đăng ký lại thư viện Windows Defender. Mở CMD quyền Admin chạy:
regsvr32 atl.dll
regsvr32 wuapi.dll
regsvr32 softpub.dll
regsvr32 mssip32.dll
Restart Microsoft Defender kiểm tra sự cố đã khắc phục.
Kiểm tra và cài đặt Windows Updates
Hiếm khi Microsoft Defender Antivirus ngừng hoạt động sau cập nhật hàng tháng Windows 10. Thử check cập nhật mới và cài qua Settings → Update & Security → Windows Update → Check for updates hoặc dùng PowerShell cài latest updates. Có thể sửa lỗi.
Nếu không giúp được, kiểm tra và sửa tính toàn vẹn image Windows và file hệ thống:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
Hy vọng hướng dẫn ngắn gọn này giúp giải quyết sự cố không thể khởi động (dừng) threat service trên Windows 10.