Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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 sont au Paradis! ^<Press any Key // Presse une Touche^>
- goto theEnd
- :do_clear
- echo effacement %1
- wevtutil.exe cl %1
- goto :eof
- :noAdmin
- echo You must run this script as an Admin!
- echo ^Press any Key // Presse une Touche^>
- :theEnd
- pause>NUL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement