Clearing Eventlog. Another useful Action for administrators.
Sometimes you will have a look at Eventviewer. But there are thousands of old entries that you don't care about. You just want to see what has happend after the last reboot.
So you might open Eventviewer and delete all records. In WinXP there are just 5, so it's no problem. But in Win7 the events are in many different log files. So this might take a while.
I found a tool after a quick google search that does clear the whole eventlog.
Put this in a .cmd or .bat file:
@echo Clearing event logs...
@for /f %%i in ( 'wevtutil el' ) do wevtutil cl "%%i" >NUL 2>&1
wevtutil.exe cl "Microsoft-Windows-Diagnosis-DPS/Operational"
wevtutil.exe cl "Microsoft-Windows-User Profile Service/Operational"
wevtutil.exe cl "Microsoft-Windows-Windows Defender/Operational"
wevtutil.exe cl "Microsoft-Windows-Windows Defender/WHC"
wevtutil.exe cl "Microsoft-Windows-Windows Firewall With Advanced Security/Firewall"
wevtutil.exe cl System
wevtutil.exe cl "Kaspersky Event Log"
REM If Kaspersky isn't installed, it just quits with a information, that the eventlog of Kaspersky doesn't exist.
REM You can add several other Eventlogs, if present. Just take the name showed in Eventviewer
Put this File in your C:\Tools location an add your Action to TNI: