Event Viewer One Click Clear

How to Clear Event Viewer with One Click in Windows


   Information
This will show you how to create a command line shortcut that will clear all of the Event Viewer logs in one click.



Here is a batch file that can help you clear the event viewer in one click.

Download


Download this file above..

Unzip on your desktop.

You can use the task scheduler to give it a high priority so you won't get a UAC prompt

See Brink's Tip HERE

Or, just copy this script and paste in notepad and save as Clean Viewer.BAT

Right click, and click on Run as administrator to run the file
Code:
@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

:geek:






 
Last edited by a moderator:
Clean Viewer.bat

Thank you very much, it worked and I am glad you guys exists ! Cheers !
 

My Computer My Computer

At a glance

Windows 7 Professional x64i5Kingston KVR16N11/8mobo
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Windows 7 Professional x64
CPU
i5
Motherboard
ASUS Z97M Plus
Memory
Kingston KVR16N11/8
Graphics Card(s)
mobo
Hard Drives
SSD Crucial 500 MB
Browser
IE
Very useful. Thank you for providing the script. Now I don't have to wade through useless warnings from years ago and have a short log to observe the errors in an easy way.
 

My Computer My Computer

At a glance

Microsoft Windows 7 Professional 64-Bit 7601 ...Intel(R) Core(TM) i7-3930K CPU @ 3.20 Steppin...Kingston KHX1600C9D3K4/16GX 16 GB DDR3 9-9-9-27AMD FirePro V4900 (FireGL V)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build 01/06/2012, rebuilt 10/24/2014
OS
Microsoft Windows 7 Professional 64-Bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i7-3930K CPU @ 3.20 Stepping 6 Revision C1
Motherboard
ASUSTeK COMPUTER INC. P9X79 BIOS 4608
Memory
Kingston KHX1600C9D3K4/16GX 16 GB DDR3 9-9-9-27
Graphics Card(s)
AMD FirePro V4900 (FireGL V)
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defini
Monitor(s) Displays
HP LP2475w
Screen Resolution
1920 x 1200
Hard Drives
(1) ATA SAMSUNG HD204UI SCSI Disk Device
(2) ATA SAMSUNG SSD 830 SCSI Disk Device
PSU
CORSAIR HX650W
Case
fractal design DEFINE R4
Cooling
Noctua NH-D14 SE2011 and 2 x NF-A14 PWM
Keyboard
FILCO Majestouch 2 Ninja
Antivirus
Microsoft Security Essentials
Browser
IE11
Other Info
TP-LINK 150Mbps-Wireless-N-PCI-Adapter TL-WN751ND
Whew, second chance ! ... Thank you ^_~
 

My Computer My Computer

At a glance

Windows 7 Eternity based on Ver 6.1.7600 32 b...Various PentiumVarious combinationsVarious ATI & Invidia
Computer Manufacturer/Model Number
Multi Sony, HP, & Dell Systems ...
OS
Windows 7 Eternity based on Ver 6.1.7600 32 bit ...
CPU
Various Pentium
Motherboard
Various
Memory
Various combinations
Graphics Card(s)
Various ATI & Invidia
Sound Card
Audiophile 2496 & others
Monitor(s) Displays
Sony, HP, Viewsonic, & Visio
Hard Drives
Seagate & WD in various combinations
PSU
PC Power & Cooling, Antec & Mfg stock
Case
Mfg Stock & Antec
Cooling
All air ...
Event Viewer One Click Clear- Windows 7 Help forums

Hello -

Thank you so much for the download program. It worked great in clearing my Event Viewer!!
 

My Computer My Computer

At a glance

Windows7 Pro
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compaq
OS
Windows7 Pro
Browser
Chrome
Hi. This script clear all events in the Event viewer? Works with Windows 7 32 bit? No problem with this script? thanks so much.
 

My Computer My Computer

At a glance

Windows 7 Ultimate 32 bit
Computer type
Laptop
Computer Manufacturer/Model Number
Sony Vaio VGN-FZ38M
OS
Windows 7 Ultimate 32 bit
Hello djzero83, :)

Correct, no issues for both 32-bit and 64-bit.
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top