Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Created by FreeBooter
- :: www.dost-tech.com
- @Echo Off & Cls
- Call :NoAdmin
- Mode CON LINES=33 COLS=85
- For /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
- Echo.
- Echo Event Logs Have Been Cleared!
- Ping -n 5 127.0.0.1 >Nul
- Goto :eof
- :do_clear
- Echo clearing %1
- wevtutil.exe cl %1
- Goto :eof
- :NoAdmin
- Reg query "HKU\S-1-5-19\Environment"
- If Not %ERRORLEVEL% EQU 0 (
- Cls & Mode CON LINES=5 COLS=48 & Color 0C & Title .....................- WARNING -.......................
- Echo.
- Echo.
- Echo YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE
- Pause >Nul & Exit
- )
- Cls
- Goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement