• Event Viewer shows more errors after cleaning

    Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » Event Viewer shows more errors after cleaning

    Author
    Topic
    #482851

    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

    Viewing 5 reply threads
    Author
    Replies
    • #1329971

      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! ^
      goto theEnd
      :do_clear
      echo clearing %1
      wevtutil.exe cl %1
      goto :eof
      :noAdmin
      echo You must run this script as an Administrator!
      echo ^
      :theEnd
      pause>NUL

      Make the above a batch file by copy and pasting into note pad, ensure
      you have file type extentions visible.

      • #1332800

        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:WindowsSystem32cmd.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.

        • #1332810

          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…:cheers:Regards Fred

          • #1332985

            “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?

            • #1332988

              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

              :cheers:Regards Fred

    • #1330026

      Thanks Clint – didn’t know about this one. Works beautifully!

      Rich

    • #1330050

      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

    • #1330061

      Duh . . . Thanks, Fred. If I keep making enough mistakes I’ll eventually learn/know something.

      Dick

    • #1330068

      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.

      • #1330070

        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

    • #1332994

      Go here and download the batchfile. (Windows 7 Forums)
      The “Take Ownership” script is available here (How to Geek, author unknown)

      • #1333041

        Thanks Clint, Sir. Works great as written. Much appreciated. Regards Peter

    Viewing 5 reply threads
    Reply To: Event Viewer shows more errors after cleaning

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: