How To Clear Administrative Events Log - Event Viewer

Page 2 of 2 FirstFirst 12

  1. Posts : 1
    Windows 7 Home Premium 64bit.
       #11

    How to clear events viewer.


    Hi

    To clear events log, go to the following webpage and Download the Tool to your desktop and run as Administrator, then close the event log and re-open and the events log should be clear.

    Event Viewer One Click Clear
      My Computer


  2. Posts : 6
    Dual-Boot WinXPP (x32), Win 7 Ent (x64)
       #12

    Whines get better with age?


    OK, not whining- Just expressing appreciation that threads like this are still maintained. This issue isn't critical for me, but it was still a nuisance seeing all those Administrative Events that I couldn't delete directly from the list.

    I tried the script provided by Greg S and it worked beautifully! Thank you! Happy Camper and all that...
      My Computer


  3. Posts : 1
    32
       #13

    View the Windows events by Event Log Explorer


    1. Try Event Log Explorer , it's free for personal use.
    2. If you need to clear a log on a local computer, this computer will be listed in the tree.
    If you need to clear a log on a remote computer, add this computer by pressing Add computer button.
    3. Double click on the computer in the tree to expand event logs.
    4. Find the log you need to clear, click right mouse button on it and select clear.
    5. Confirm clearing.
    6. Double click on the log to open it to make sure thay the log contains no events.
    Last edited by saidurcse; 17 May 2016 at 13:19.
      My Computer


  4. Posts : 10
    Windows 7 64Bit
       #14

    It's a long time since I looked at any code.
    Can anyone add comments to each lin of this code to help me understand
    how it works?

    Code:
    @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 Event Logs have been cleared! ^<press any key^>
    goto theEnd
    :do_clear
    echo clearing %1
    wevtutil.exe cl %1
    goto :eof
    :noAdmin
    echo You must run this script as an Administrator!
    echo ^<press any key^>
    :theEnd
    pause>NUL
    Last edited by Severity7; 09 May 2021 at 06:14.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:28.
Find Us