Clear the Windows OS Event Viewer with One Click – .bat
Clear the Windows OS Event Viewer with One Click – .bat
In this article we will guide you that if you have to delete your Event Viewer log with one click so see below script.
Copy this script to your notepad & save it as .bat file.
@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
Hope this will help to all of you and resolved your all query if you have any query or question so you may ask on email our email account (onlinenetworkssolution@gmail.com) or leave comment on page.
Tags:
Event Viewer
Window O/S
0 comments
Please leave your comments...... Thanks