Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Event Viewer One Click Clear

14 Mar 2010   #20

Windows 7 64-bit

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

Here is the even SMALLER version!
@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
echo clearing %1
wevtutil.exe cl %1
goto :eof

My System SpecsSystem Spec
15 Mar 2010   #21

Win7 x64

Batch files are fun!!!
My System SpecsSystem Spec
21 Mar 2010   #22

Windows 7 Ultimate 32 Bit, Windows Developer Preview, Linux Mint 9 Gnome 32 Bit

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 System SpecsSystem Spec
21 Mar 2010   #23

Windows 7 Ultimate

thanks for the share...
My System SpecsSystem Spec

22 Mar 2010   #24

Windows 7 x64 Ultimate SP1

My Pleasure.

Fun to save time.
My System SpecsSystem Spec
15 Jul 2010   #25

Windows 7 Ultimate x64

Thats very helpful tool!!!! nice job!!!
My System SpecsSystem Spec
17 Jul 2010   #26

Windows 7 x64 Ultimate SP1

My System SpecsSystem Spec
13 Aug 2010   #27

MS Windows 7 Ultimate SP1 64-bit

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 System SpecsSystem Spec
15 Aug 2010   #28

Windows 7 x64 Ultimate SP1

My pleasure.
My System SpecsSystem Spec
15 Aug 2010   #29
Dixon Butz

Win7 Win 10, Win 8.1

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 System SpecsSystem Spec

 Event Viewer One Click Clear

Thread Tools

Similar help and support threads
Thread Forum
How To Clear Administrative Events Log - Event Viewer
Hi: Does anyone know how to clear the Administrative Events log listed under Custom Views in the Event Viewer? All the logs listed under the Windows logs have options to clear, but the above does not. Thanks, ColTom2
Performance & Maintenance
Event errors (11, 7000, 7026), intellipoint and event viewer freeze.
Hi, keep getting the errors above every startup regarding; 11 - "Custom dynamic link libraries are being loaded for every application. The system administrator should review the list of libraries to ensure they are related to trusted applications." 7000 - "The Crypkey License service...
General Discussion
Event Viewer: Clear All Events
How to Clear all Event Logs in Event Viewer using Windows PowerShell This tutorial will show you how to quickly clear all event logs in Event Viewer with a one line PowerShell script. This one line command clears each log in the Event log list one at a time. wevtutil el gets the Event log...
After BSOD Event Viewer Logs Event ID 3012 and 3011 every time I boot
I was running 3DMark06 and got a BSOD code 124. After that every time I boot Event Viewer logs Error Codes ID 3012 and 3011. Attached are screenshots of both. I googled this and found two different threads where someone suggested to rebuild the performance counters. Both responses were...
BSOD Help and Support
WHEA-Logger event 18/19 errors in Event Viewer (W7 Home Premium)
Hi, I was hoping somebody could offer an insight on the below, as searching around I've not found much to go on other than "overheating" Basically my laptop has been having very high temperatures for a long time (usually ~60C for CPU and often 100-110 for GPU...insanely high, in other words)...
Hardware & Devices

Our Sites

Site Links

About Us

Find 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 15:52.
Twitter Facebook