Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Tutorial | Clear Event Viewer (All System/Network Logs)


Got a LOT of requests for this after mentioning it on a thread somewhere for somebody.

So here it is. The extremely useful and anti-forensic batch code.

Proof:

Before: As you can see, over 4600 logs in one area alone (Security)
[Image: dcb642b04b8b6b0272263f3bdc6e8bb4.png]

After:[Image: fa558dd7fecc1f4738dc03867b345d20.png]

Quote:@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

If you don't know what to do beyond this point.. 😠
Save it in notepad and name it whateveryouwant.bat and then you may enjoy some privacy. I run this one a week + injunction with CCleaner DAILY.

Example:

[Image: 6H0wT.png]
❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️
Pls give quick love to all my posts❤️
I will love u long time ❤️
❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️
This is good, but you could just turn off event logging so nothing will be recorded in the first place. Also please add spoilers :P
(Feb 1, 2014 11:41 PM)Null Byte Wrote:  This is good, but you could just turn off event logging so nothing will be recorded in the first place. Also please add spoilers :P

It would still record about 80% of the logs there, as they are not displayed on event viewer.
❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️
Pls give quick love to all my posts❤️
I will love u long time ❤️
❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️
Noodle, you and your batch scripts for Windows eh 😝
Fiat justitia ruat cælum

My era of providing technical support and malware removal on HackForums is over, so you can stop PM'ing me about it. Sorry.
nice code mate, but quick question:
Cant you just use CCleaner to remove these logs? I have an option for "WIndows Events Logs" to be removed.
[Image: M7tJcZL.gif]
(Feb 2, 2014 09:44 AM)Jagster™ Wrote:  nice code mate, but quick question:
Cant you just use CCleaner to remove these logs? I have an option for "WIndows Events Logs" to be removed.

Ty it yourself and see what it cleans.

Cleaner is the worst anti forensic tool in history. It's a cleaner.
❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️
Pls give quick love to all my posts❤️
I will love u long time ❤️
❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️
Very useful batch file :P thanks for your guide


Possibly Related Threads...
Thread / Author Replies Views Last Post
by jasonnixJul 19, 2025 11:12 PM 0 85 Jul 19, 2025 11:12 PM
Last Post: jasonnix
by syan722438Jan 9, 2018 02:05 PM 2 239 Jan 9, 2018 02:05 PM
Last Post: syan722438
by 5chn4ppFeb 12, 2016 07:28 AM 7 164 Feb 12, 2016 07:28 AM
Last Post: 5chn4pp