Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

ล้าง Event Logs ทั้งหมดใน Event Viewer Windows 10: คู่มือสมบูรณ์

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

  1. Win + R → eventvwr.msc
  2. Event Viewer (Local) → Windows Logs → Application (หรือ Security, System, หรือ Windows Logs ทั้งหมด)
  3. คลิกขวา Log → Clear Log (หรือ Actions panel → Clear Log)
  4. คลิก Save and Clear หรือ Clear

วิธีที่ 2: Clear All Logs ด้วย Command Prompt (Admin)

  1. Win + X → Command Prompt (Admin)
  2. รัน: for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
  3. คำเตือน: ลบทุก Log ใน Event Viewer ทันที

วิธีที่ 3: Clear All Logs ด้วย PowerShell (Admin)

  1. PowerShell (Admin) → รัน:
    Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
    หรือ
    wevtutil el | Foreach-Object {wevtutil cl "$_"}
  2. รอจบ → 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 เรียบร้อย หากมีคำถาม ถามได้ในความคิดเห็น