Event Viewer แสดง Log ของ Application และ System (Error, Warning) ใช้ Troubleshoot Error Windows Log: บันทึกกิจกรรม (Sign-in, App Error) มีประโยชน์แต่อาจต้องการ Clear Logs บ้าง System Log และ Application Log สำคัญที่สุด
วิธี Clear All Event Logs ใน Event Viewer Windows 10
แนะนำ: สร้าง Restore Point ก่อน
วิธีที่ 1: Clear Log แบบรายตัวใน Event Viewer
- Win + R →
eventvwr.msc - Event Viewer (Local) → Windows Logs → Application (หรือ Security, System, หรือ Windows Logs ทั้งหมด)
- คลิกขวา Log → Clear Log (หรือ Actions panel → Clear Log)
- คลิก Save and Clear หรือ Clear
วิธีที่ 2: Clear All Logs ด้วย Command Prompt (Admin)
- Win + X → Command Prompt (Admin)
- รัน:
for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1" - คำเตือน: ลบทุก Log ใน Event Viewer ทันที
วิธีที่ 3: Clear All Logs ด้วย PowerShell (Admin)
- PowerShell (Admin) → รัน:
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
หรือwevtutil el | Foreach-Object {wevtutil cl "$_"} - รอจบ → Exit PowerShell
บทความแนะนำ:
- เปิด/ปิด Windows Error Reporting ใน Windows 10
- เข้ารหัสไฟล์/โฟลเดอร์ด้วย EFS ใน Windows 10
- เปิด/ปิด Indexing Of Encrypted Files ใน Windows 10
- Back Up EFS Certificate and Key ใน Windows 10
เรียนรู้ 3 วิธี Clear All Event Logs ใน Event Viewer Windows 10 เรียบร้อย หากมีคำถาม ถามได้ในความคิดเห็น