Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- TITLE EV0LVE WINDOWS LOG CLEANER BY 101-UNITED
- COLOR F0
- echo SCRIPT BY 101-United
- echo Shortened by Flo
- echo version 1.0b
- goto :admincheck
- :admincheck
- net session >nul 2>&1
- if %errorLevel% == 0 (
- echo Script executed with admin rights, starting the process.
- goto :cleanlogs
- ) else (
- goto :noadmin
- )
- :cleanlogs
- for /F "tokens=*" %%G in ('wevtutil.exe el') DO (wevtutil.exe cl "%%G" > nul 2> nul)
- goto :success
- :noadmin
- CLS
- COLOR F4
- echo.
- echo ###############################################################
- echo # You have to run this script as an administrator. exiting... #
- echo ###############################################################
- timeout 4 >nul
- EXIT
- :success
- EXIT
Advertisement
Add Comment
Please, Sign In to add comment