Lỗi Windows Script Host tại startup thường do virus/malware chèn script .vbs độc hại, hoặc file script hợp lệ bị hỏng/liên kết sai.
Các phương pháp khắc phục
Khuyến nghị: Tạo điểm khôi phục.
Phương pháp 1: Chạy SFC và CHKDSK
- Mở Command Prompt (Admin).
- Chạy:
sfc /scannowvàsfc /scannow /offbootdir=c:\ /offwindir=c:\windows(nếu vào Windows bình thường chỉ cần lệnh đầu). - Khởi động lại.
Phương pháp 2: Quét Microsoft Safety Scanner
Tải và chạy Microsoft Safety Scanner (tắt antivirus khác khi quét).
Phương pháp 3: Clean Boot
- Windows + R, gõ
msconfig. - Tab General: chọn Selective startup, bỏ chọn Load startup items.
- Tab Services: tích Hide all Microsoft services > Disable all.
- Tab Startup: Open Task Manager > Disable all.
- OK > Restart. Nếu lỗi mất, bật dần từng nhóm service/startup để tìm nguyên nhân.
- Sau khi xong, đặt lại Normal startup.
Phương pháp 4: Sửa giá trị mặc định .vbs trong Registry
regedit>Computer\HKEY_CLASSES_ROOT\.vbs- Sửa giá trị (Default) = VBSFile.
- Khởi động lại.
Phương pháp 5: Xóa VMApplet, WinStationsDisabled và sửa userinit
regedit>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon- Xóa các giá trị sau userinit (VMApplet, WinStationsDisabled...).
- Sửa userinit =
C:\Windows\system32\userinit.exe,(có dấu phẩy cuối). Cẩn thận: Sai đường dẫn sẽ khóa tài khoản! - Khởi động lại.
Phương pháp 6: Repair Install Windows 10
Nâng cấp tại chỗ từ USB cài Windows 10.