Using wevtutil command under Windows – part 002.

In this tutorial, I make a script to clean all events.
The script is very simple and is just a run of wevtutil command and some printing messages.
Open your editor and save the script with the extensions bat or cmd.
Also, you need to have Administrator rights to run the script.
The script run FOR, IF and GOTO selections to run well with the admin.
First and second lines of code are for to run the batch file and throw up admin rights.
Let’s see the source code.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.