Last active
May 30, 2023 13:14
-
-
Save vinhjaxt/d9a0391488da950da8fd5ce7d3f66a0b to your computer and use it in GitHub Desktop.
Clear WinEVT Log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
WEVTUTIL EL > .\LOGLIST.TXT | |
for /f %%a in ( .\LOGLIST.TXT ) do WEVTUTIL CL "%%a" | |
del .\LOGLIST.TXT | |
timeout 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment