Lets Make It EasyLets Make It Easy
    Lets Make It EasyLets Make It Easy
    • Home
    • Related To PC
      • Computer Tips & Tricks
      • General Tips
      • Game Tricks And Fixes
      • Windows Tricks
    • Build a PC

      Best AMD Processors with Integrated Graphics | Best AMD Ryzen CPU with Integrated Graphics (Radeon™ Vega Graphics)

      December 9, 2022

      Best Wired Gamepad for PC Under ₹2000 in India | Best Wired Controller/Joystick for PC Gaming Under ₹2000

      December 9, 2022

      Best Wireless Gamepad for PC Under ₹3000 in India | Best Wireless Controller/Joystick for PC Gaming Under ₹3000

      December 9, 2022

      Best Budget Gaming PC Build Under ₹50000 in India With Super Cool Performance (60 FPS)(2K,1080 FHD)

      December 9, 2022

      Best Gaming PC Build Under ₹60000 in India With Ultra Performance (60 FPS)(2K,1080 FHD)

      December 9, 2022
    • Blogger Tips

      How To Create a Perfect Custom Robots.txt File in Blogger?

      January 11, 2023

      How to Disavow Backlinks in Google Search Console?

      December 9, 2022

      How to Find and Remove the Bad/Toxic/Spammy Backlinks that affects your SEO Badly from Google?

      December 9, 2022

      How to Verify Google Search Console for WordPress Using DNS Verification? | Google Search Console DNS Verification ( Domain )

      December 9, 2022

      Google Search Console : 4 Simple Methods To Verify your Site Ownership For WordPress and Blogger

      December 9, 2022
    • WordPress Tips

      How to Hide/Remove Theme Name in WordPress?

      March 7, 2023

      How to Repair a Corrupted MySQL Database Table?

      March 2, 2023

      How to Get Quick Adsense Approval for WordPress Blog/Website?

      February 27, 2023

      How to Update/Clear Google Amp Cache?

      January 28, 2023

      How to Get a Free Domain and Hosting for Educational/Testing Purposes?

      January 25, 2023
    • Youtube Tips And Tricks
    • More Topics
      • Andriod Tricks
      • Mobile Tricks
      • Publisher’s Spot
      • Internet Tricks
    Lets Make It EasyLets Make It Easy
    Home » How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?
    Computer Tips & Tricks

    How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?

    Vasantharaj R NBy Vasantharaj R NDecember 9, 2022Updated:December 9, 2022No Comments3 Mins Read
    How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?

    Hi Guys, Today I am Going to tell you How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?

    Check Out This: How to Install & Run Google Playstore in Windows 11 Without Using any Emulators?

    Are you Looking for the Commonly Searched Term “How to Clear Event Viewer Logs in Windows 7,8,8.1,10 & 11” (or) “How to Delete All Event Logs in Windows System”?

    Trending
    How to Fix Command Prompt Opens And Closes Immediately in Windows 10? | Why CMD.exe Closes Immediately Whenever I Tried to Open it?

    You are at the Right Place to Get Your Answers & Solve the Issue/Error.

    Let’s See About it. 

    Steps For How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?

     

    Method 1: Delete All Event Viewer Logs Using BAT file

    Step 1: Copy-Paste the Below Given Code into the Notepad and Save it as Filename.bat file on your Desktop.

    @echo off
    
    FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
    IF (%adminTest%)==(Access) goto noAdmin
    for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
    echo.
    echo All Event Logs have been cleared!
    goto theEnd
    
    :do_clear
    echo clearing %1
    wevtutil.exe cl %1
    goto :eof
    
    :noAdmin
    echo Current user permissions to execute this .BAT file are inadequate.
    echo This .BAT file must be run with administrative privileges.
    echo Exit now, right click on this .BAT file, and select "Run as administrator".  
    pause >nul
    
    :theEnd
    Exit

    How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?

    Step 2: Right-click on the .bat file and Run it as Administrator.

    A New Command Prompt Window will Appear to Clear the event logs and it will automatically close when finished.

    (or)

    Simply Download the .bat File via the below given link.

    Clear Events Viewer Logs.bat

     

    Method 2: Delete All Event Viewer Logs Using Command Prompt

    Step 1: Search for Command Prompt and Run it as Administrator and Copy-Paste the Below Given Code into the Command Prompt and Press Enter.

    for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"

    How to Clear Event Viewer Logs Using PowerShell or Wevtutil in Windows 7,8,8.1,10 & 11?

     

    Method 3: Clear Individual Event Viewer Logs Using Event Viewer 

    Step 1: Press the Win + R keys to open the Run Program and type eventvwr.msc and click OK to open Event Viewer.

    (or)

    Step 1: Goto Windows Search and Enter Event Viewer and Run it.

    Step 2: Now Click on the Windows Logs and Right Click on a Log (Example: Application) and Select the Clear Log Option and Hit the Clear Button When Confirmation Windows Prompts.

    (or)

    Step 2: Now Click on the Windows Logs and select a Log (Example: Application) and Select the Clear Log Option from the Right Action Panel and Hit the Clear Button When Confirmation Windows Prompts.

     

    Method 4: Clear All Event Viewer Logs Using Powershell

    Step 1: Search for Windows Powershell and Run it as Administrator and Copy-Paste the Below Given Code into the Command Prompt and Press Enter.

    Get-WinEvent -ListLog * | where {$_.RecordCount} | ForEach-Object -Process { [System.Diagnostics.Eventing.Reader.EventLogSession]::GlobalSession.ClearLog($_.LogName) }
    

    (or)

    Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log } 
    

    (or)

    wevtutil el | Foreach-Object {wevtutil cl "$_"}
    

     

    That’s It. You’re Done. Have a Nice Day.

    @@@ Leave Comments @@@

    ##Stay Safe Guys And Live Happily ##

    Vasantharaj R N

    Basically an Instrumentation Engineer But Very much Interested in Blogging. I'm a Passionate Blogger and an Expert in Search Engine Optimization And Always Looking Forward to Learn New Things. I Would Fix & Provide Solution to the Most Common Issues Related to PC,Laptops,Mobiles,OS, Hardwares and Softwares.

    Related Posts

    How to Fix The specified framework ‘Microsoft.NETCore.App’, version ‘2.2.0’ was not found?

    March 23, 2023

    How to Fix The Framework ‘Microsoft.Windowsdesktop.app’ version ‘5.0.0’ was not found Error in Windows 7,8,8.1,10 & 11?

    March 22, 2023

    How to Fix The framework ‘Microsoft.AspNetCore.App’, version ‘3.1.0’ was not found?

    March 20, 2023

    How to Fix The framework ‘Microsoft.AspNetCore.App’, version ‘3.1.3’ was not found Error?

    March 19, 2023
    Add A Comment

    Leave A Reply Cancel Reply

    Lets Make It Easy
    Copyright © 2021 Letsmakeiteasy LLC. All Rights Reserved. Letsmakeiteasy® is a registered trademark.WordPress hosting by Hostinger | Crafted With Love | Designed By Vasanth

    Type above and press Enter to search. Press Esc to cancel.