16 lines
248 B
Batchfile
16 lines
248 B
Batchfile
@echo off
|
|
|
|
rem IF /I "%EVENTVIEWER%" NEQ "Y" GOTO END
|
|
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
|
|
echo.
|
|
echo All Event Logs have been cleared!
|
|
goto end
|
|
|
|
:do_clear
|
|
echo clearing %1
|
|
wevtutil.exe cl %1
|
|
goto :eof
|
|
|
|
:end
|
|
pause
|