หาก Windows Search ทำงานผิดปกติ ลอง Reset Windows Search Settings กลับค่า Default ด้วย PowerShell Cmdlet

Reset Windows 11/10 Search
- Sign-in Windows ด้วยบัญชี Administrator
- ดาวน์โหลด Script ResetWindowsSearchBox.ps1 จาก Microsoft
- คลิกขวา Script > Run with PowerShell
- UAC ถามยืนยัน คลิก Open
- PowerShell Window เปิด
- ถาม Do you want to allow this app to make changes to your device คลิก Yes
- รอจนเสร็จ ปิด PowerShell
แก้ "Cannot be loaded because running scripts is disabled on this system"
หากเจอ Error นี้ รันคำสั่ง:
Get-ExecutionPolicy
อาจเห็น Restricted ให้เปลี่ยนเป็น Unrestricted:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
หลังเปลี่ยน Policy เรียบร้อย ลองรัน ResetWindowsSearchBox.ps1 ใหม่
หลัง Reset สำเร็จ ควรกลับ Execution Policy เดิม:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Restricted
กด Y แล้ว Enter ยอมรับการเปลี่ยนแปลง
Restore Windows Search Settings ด้วย Registry
- เปิด Registry Editor ไปที่:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search - เปลี่ยนค่า SetupCompletedSuccessfully จาก 1 เป็น 0
- เปิด Services Manager Restart Windows Search Service
Windows Search จะ Clear Custom Indexed Locations เพิ่ม Default Locations และ Rebuild Index
Restart เครื่อง ตรวจสอบ Windows Search ว่าทำงานปกติ
หมายเหตุ: หาก Windows Search Indexer ไม่ทำงาน ต้อง Rebuild Search Index ใช้ Indexer Diagnostics Tool ช่วยแก้ปัญหา Search Indexer ใน Windows 11/10
