.

Clear all event logs

Here is a batch file to do so:

clearAllEventLogs

 

 

Disclaimer: run at own risk!

content of file:

WEVTUTIL EL > .\LOGLIST.TXT
for /f %%a in ( .\LOGLIST.TXT ) do WEVTUTIL CL "%%a"
del .\LOGLIST.TXT
timeout 30

or shorter:

for /f %%a in ('WEVTUTIL EL') do WEVTUTIL CL "%%a"
timeout 30

What's your thoughts on this?

*

Protected by WP Anti Spam