ITTSB.EU Blog Forum

ITTSB Blog Specific => ITTSB General Discussion => PC computing hardware - software => Topic started by: Kiriakos GR on September 07, 2021, 12:24:27 PM

Title: How to clean Windows Event Viewer log - Manualy
Post by: Kiriakos GR on September 07, 2021, 12:24:27 PM
Windows Event Viewer log this is the most useful tool for operating system diagnosis and troubleshooting.

Usually they are recorded too many notification messages and a lesser quantity of system errors
Either way, over the years I did found one text based script (regular .BAT file), this described as Reset_Reliability_Monitor.bat

Copy the text bellow in to a new text file, then rename it to Reset_Reliability_Monitor.bat and run it.  :)

--------------------------------------------------------------------------------------------------------------


reg add "HKLM\SOFTWARE\Microsoft\Reliability Analysis\WMI" /v WMIEnable /T REG_DWORD /D 1 /F
del /f /S /Q /A "%ProgramData%\Microsoft\RAC\Outbound\*"
del /f /S /Q /A "%ProgramData%\Microsoft\RAC\PublishedData\*"
del /f /S /Q /A "%ProgramData%\Microsoft\RAC\StateData\*"
del /f /S /Q /A "%ProgramData%\Microsoft\RAC\Temp\*"
@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