Wrote a song about it. Like to hear it? Here it goes!
via Command-Line (Run as Administrator)
for /f %e IN ('wevtutil el') do wevtutil cl "%e"
or via batch file (.cmd or .bat)
@echo off :: Clear all logs :: 10:55 AM 10/18/2011 Justin :: http://justin-bennett-msjc.blogspot.com/ :: :: echo Clearing all log files echo CRTL-C to abort within 10 secs. echo . ping 127.0.0.1 -n 11 > nul color 07 @echo on for /f %%e IN ('wevtutil el') do wevtutil cl "%%e"