cmd-Administrator
This batch file is a bit more complex than yours,
but it ran perfectly on Win 7 and it runs fine in Win 8.
But again, assure you are running cmd as Administrator.
Also, your Win 8 Login Account should be set to Administrator.
It just cleans EVERY Event Log file know to man...so be sure you WANT that
to actually happen before you run it!!!
@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 Event Logs have been cleared! ^<press any key^>
goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
echo You must run this script as an Administrator!
echo ^<press any key^>
:theEnd
pause>NUL
I'm gonna make a batch of cookies myself
Cheers
Windunce