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
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Event Viewer shows more errors after cleaning
Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » Event Viewer shows more errors after cleaning
- This topic has 14 replies, 8 voices, and was last updated 12 years, 11 months ago.
AuthorTopicWSgrits
AskWoody LoungerApril 22, 2012 at 10:37 am #482851Viewing 5 reply threadsAuthorReplies-
WSCLiNT
AskWoody LoungerApril 22, 2012 at 3:07 pm #1329971You 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 IndexUse 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>NULMake the above a batch file by copy and pasting into note pad, ensure
you have file type extentions visible. -
Wade Townsend
AskWoody PlusMay 15, 2012 at 5:07 pm #1332800Hi, 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. -
WSJust Plain Fred
AskWoody LoungerMay 15, 2012 at 6:24 pm #1332810 -
WSjsalpha2
AskWoody LoungerMay 17, 2012 at 7:43 am #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
exitTwo spaces after call in line 5?
-
WSJust Plain Fred
AskWoody LoungerMay 17, 2012 at 8:00 am #1332988How 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
-
-
-
-
-
WSrmonroe36
AskWoody Lounger -
WSDick-Y
AskWoody Lounger -
WSJust Plain Fred
AskWoody Lounger
-
-
WSDick-Y
AskWoody Lounger -
WSJust Plain Fred
AskWoody Lounger
-
-
WSgrits
AskWoody Lounger -
WSJust Plain Fred
AskWoody LoungerApril 23, 2012 at 2:16 pm #1330070Fred, 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
-
-
WSCLiNT
AskWoody Lounger -
WSpetrox
AskWoody Lounger
-
Viewing 5 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Uninstalr Updates
by
jv16
3 hours, 52 minutes ago -
Apple zero days for April
by
Susan Bradley
27 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
4 hours, 40 minutes ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
16 hours, 29 minutes ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
1 hour, 14 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
6 hours, 53 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
1 day, 1 hour ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
1 day, 3 hours ago -
0patch
by
WSjcgc50
4 hours, 58 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
21 hours, 21 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
1 day, 6 hours ago -
Problem opening image attachments
by
RobertG
1 day, 8 hours ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 23 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
1 day, 3 hours ago -
Android 15 require minimum 32GB of storage
by
Alex5723
2 days, 4 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
2 days, 4 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
2 days, 4 hours ago -
Firefox became sluggish
by
Rick Corbett
2 days, 1 hour ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
2 days, 8 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
2 days, 9 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
1 day, 6 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours, 24 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 day, 7 hours ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
1 day, 8 hours ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
3 days ago -
The time has come for AI-generated art
by
Catherine Barrett
2 days, 4 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 days, 13 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days, 20 hours ago -
April’s deluge of patches
by
Susan Bradley
1 day ago -
Windows 11 Windows Updater question
by
Tex265
14 hours, 47 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.