Results 1 to 15 of 15
  1. #1
    2 Star Lounger
    Join Date
    Dec 2009
    Location
    Montana,USA
    Posts
    112
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Event Viewer shows more errors after cleaning

    I just re-booted after running just the cleaner part of CCleaner because I wanted things cleaned up before I install a new email program. Then just out of curiosity I checked Event Viewer to see if the Warning/Error that I've been getting about ReadyBoot (something about 'prefetch') was still there. I got a bigger surprise by all the new one's since re-boot. Do I have anything to worry about?
    Thank you,
    grits
    Attached Images Attached Images

  2. #2
    Super Moderator CLiNT's Avatar
    Join Date
    Dec 2009
    Location
    California & Arizona
    Posts
    5,481
    Thanks
    130
    Thanked 499 Times in 459 Posts
    You could try re-doing your indexing since you seem to have alot of errors generated within the search function.
    How to Rebuild the Windows 7 Index

    Use the batch script below to periodically purge the event viewer:
    @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
    Make the above a batch file by copy and pasting into note pad, ensure
    you have file type extentions visible.

  3. The Following User Says Thank You to CLiNT For This Useful Post:

    rmonroe36 (2012-04-23)

  4. #3
    4 Star Lounger
    Join Date
    Dec 2009
    Location
    Fishkill, New York, USA
    Posts
    411
    Thanks
    93
    Thanked 35 Times in 31 Posts
    Thanks Clint - didn't know about this one. Works beautifully!

    Rich

  5. #4
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    Pittsford,NY
    Posts
    708
    Thanks
    316
    Thanked 26 Times in 20 Posts
    Clint:
    I copied your script into notepad; gave it a vbs file extension; and when I execute it, I get a compilation
    error - line 1, character 1

    Help would be appreciated,
    Dick

  6. #5
    Gold Lounger
    Join Date
    Oct 2007
    Location
    Johnson City, Tennessee, USA
    Posts
    3,203
    Thanks
    37
    Thanked 215 Times in 202 Posts
    Dick,
    Think you have to make it a ".bat" Regards Fred
    Attached Images Attached Images
    PlainFred

    None are so hopelessly enslaved as those who falsely believe they are free (J. W. Von Goethe)

  7. #6
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    Pittsford,NY
    Posts
    708
    Thanks
    316
    Thanked 26 Times in 20 Posts
    Duh . . . Thanks, Fred. If I keep making enough mistakes I'll eventually learn/know something.

    Dick

  8. #7
    Gold Lounger
    Join Date
    Oct 2007
    Location
    Johnson City, Tennessee, USA
    Posts
    3,203
    Thanks
    37
    Thanked 215 Times in 202 Posts
    Dick...Me too!
    PlainFred

    None are so hopelessly enslaved as those who falsely believe they are free (J. W. Von Goethe)

  9. #8
    2 Star Lounger
    Join Date
    Dec 2009
    Location
    Montana,USA
    Posts
    112
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Fred, is your image in #5 supposed to be clickable? I was hoping to see something I might understand since I know nothing about 'batch' files, etc. as per Clints #2.

    Thanx.

  10. #9
    Gold Lounger
    Join Date
    Oct 2007
    Location
    Johnson City, Tennessee, USA
    Posts
    3,203
    Thanks
    37
    Thanked 215 Times in 202 Posts
    Quote Originally Posted by grits View Post
    Fred, is your image in #5 supposed to be clickable? I was hoping to see something I might understand since I know nothing about 'batch' files, etc. as per Clints #2.
    Hi grits,

    No, It's not "Click-able". To Use the "Script" #2... You need to "Copy and Paste" ( Or control+C \ control+V ) the whole script into the program "NotePad" (Accessories> NotePad) Then "save it as" "Clean Event Viewer.bat" (no Quotes) file ... to a folder of your choice (or create one ) Then when you click on( or right click and run as "Admin" etc.) it it will run the "Script" and clean up Event Viewer....Regards Fred
    Attached Images Attached Images
    Last edited by Just Plain Fred; 2012-04-23 at 15:21.
    PlainFred

    None are so hopelessly enslaved as those who falsely believe they are free (J. W. Von Goethe)

  11. #10
    New Lounger
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, I copied the script as you wrote and gave it a .bat file extension, however when the file is run it locks up after the line - clearing "DirectShowPluginControl" and I am unable to close the batch file even using Windows Task manager...
    The entire C:\Windows\System32\cmd.exe window is as follows,
    clearing "ACEEventlog"
    clearing "Analytic"
    clearing "Application"
    clearing "DirectShowFilterGraph"
    clearing ""DirectShowPluginControl"

    Any idea what may be causing the batch file to lockup and not finish the cleaning process; preventing even the Windows Task manager not to be able to close it? I am using Windows 7 Professional OS to run this file.
    Thanks.

  12. #11
    Gold Lounger
    Join Date
    Oct 2007
    Location
    Johnson City, Tennessee, USA
    Posts
    3,203
    Thanks
    37
    Thanked 215 Times in 202 Posts
    Quote Originally Posted by borgtrekker View Post
    Any idea what may be causing the batch file to lockup and not finish the cleaning process; preventing even the Windows Task manager not to be able to close it? I am using Windows 7 Professional OS to run this file.
    Thanks.
    "BT"

    Hello... Try this one...Regards Fred
    Attached Images Attached Images
    PlainFred

    None are so hopelessly enslaved as those who falsely believe they are free (J. W. Von Goethe)

  13. #12
    New Lounger
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "No, It's not "Click-able". To Use the "Script" #2... You need to "Copy and Paste" ( Or control+C \ control+V ) the whole script into the program "NotePad" (Accessories> NotePad) Then "save it as" "Clean Event Viewer.bat" (no Quotes) file ... to a folder of your choice (or create one ) Then when you click on( or right click and run as "Admin" etc.) it it will run the "Script" and clean up Event Viewer....Regards Fred "

    How do you copy and paste from a .png (picture) file? Trying to copy it manually, but all the spaces and symbols have to be exact.

    Clean Event Viewer .bat
    @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 goto theEnd
    :do_clear
    echo clearing %1
    wevtutil.exe cl %1
    goto :eof
    :noAdmin
    exit


    Two spaces after call in line 5?
    Last edited by jsalpha2; 2012-05-17 at 09:00.

  14. #13
    Gold Lounger
    Join Date
    Oct 2007
    Location
    Johnson City, Tennessee, USA
    Posts
    3,203
    Thanks
    37
    Thanked 215 Times in 202 Posts
    Quote Originally Posted by jsalpha2 View Post
    How do you copy and paste from a .png (picture) file? Trying to copy it manually, but all the spaces and symbles have to be exact.
    jsalpha2,

    Hello.. Sorry for my "Duh" moment.Clean Event Viewer .bat

    @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 goto theEnd
    :do_clear
    echo clearing %1
    wevtutil.exe cl %1
    goto :eof
    :noAdmin
    exit

    Regards Fred
    Last edited by Just Plain Fred; 2012-05-17 at 09:03.
    PlainFred

    None are so hopelessly enslaved as those who falsely believe they are free (J. W. Von Goethe)

  15. #14
    Super Moderator CLiNT's Avatar
    Join Date
    Dec 2009
    Location
    California & Arizona
    Posts
    5,481
    Thanks
    130
    Thanked 499 Times in 459 Posts
    Go here and download the batchfile. (Windows 7 Forums)
    The "Take Ownership" script is available here (How to Geek, author unknown)

  16. The Following User Says Thank You to CLiNT For This Useful Post:

    petrox (2012-05-17)

  17. #15
    Star Lounger
    Join Date
    Apr 2010
    Location
    Burlington ON , Canada
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks Clint, Sir. Works great as written. Much appreciated. Regards Peter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •