Re: effacer les journaux Windows

Publié par Anonyme le 19/03/2015 13:11:35
merci pour ce bon conseil, mais j'utilise maintenant avec beaucoup de satisfaction un fichier .bat trouvé avec le lien référencé par jakez:

@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


bien cordialement

Cette contribution était de : http://www.gratilog.net/xoops/newbb/viewtopic.php?forum=14&topic_id=11729&post_id=162843