Et la on triche ! un .bat …
Je ne maîtrise pas son contenu, mais il est très pratique, il efface l’intégralité de tous les journaux Windows.
Ça a plusieurs utilités 😉
1 2 3 4 5 6 7 8 9 10 11 12 |
@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 |
Faites-en bon usage.