How to Clear Event Viewer with One Click in Windows
InformationThis 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 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