Event Viewer One Click Clear

Page 3 of 11 FirstFirst 12345 ... LastLast

  1. Posts : 36
    Windows 7 64-bit
       #20

    OK Zardoc.... You DID get mine smaller, BUT.......

    Here is the even SMALLER version!
    Code:
    @echo off
    FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
    IF (%adminTest%)==(Access) goto theEnd
    for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
    goto theEnd
    :do_clear
    echo clearing %1
    wevtutil.exe cl %1
    goto :eof
    :theEnd
      My Computer


  2. Posts : 23
    Win7 x64
       #21

    Batch files are fun!!!
      My Computer


  3. Posts : 477
    Windows 7 Ultimate 32 Bit, Windows Developer Preview, Linux Mint 9 Gnome 32 Bit
       #22

    Wow, thanks for that. You know I had this problem of course. In XP, its much easier to clear the event viewer than Vista and Windows 7 because in those two, you have to manually clear every log category than in Windows XP that lets you clear all logs on just 4 categories.

    Maybe you guys can teach me with these command prompts hacks.
      My Computer


  4. Posts : 4
    Windows 7 Ultimate
       #23

    thanks for the share...
      My Computer


  5. Posts : 557
    Windows 7 x64 Ultimate SP1
    Thread Starter
       #24

    My Pleasure.

    Fun to save time.
      My Computer


  6. Posts : 1
    Windows 7 Ultimate x64
       #25

    Thats very helpful tool!!!! nice job!!!
      My Computer


  7. Posts : 557
    Windows 7 x64 Ultimate SP1
    Thread Starter
       #26

    THANK YOU.
      My Computer


  8. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #27

    Many thanks. I didn't even know that we had this until LasyB mentioned same.

    When testing, I like to get rid of the old events first and this is an excellent solution.
      My Computer


  9. Posts : 557
    Windows 7 x64 Ultimate SP1
    Thread Starter
       #28

    My pleasure.
      My Computer


  10. Posts : 303
    Win7 Win 10, Win 8.1
       #29

    I have been using My Event Viewer to view and clear the windows logs. You can choose to clear all or some of them. Plus many other options.

    Alternative to standard event viewer of Windows
      My Computer


 
Page 3 of 11 FirstFirst 12345 ... LastLast

  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 20:00.
Find Us