Download Clear-All-EventLog.cmd

»» 01.MAR.2024 / updated: ---/

Download Clear-All-EventLog.cmd

Event Viewer is a tool built into Windows that stores detailed and chronological records of system security, application notifications, and displays detailed information in the form of logs about Windows events, such as when a user logs on to computer, or when an application causes an error, or an error occurs during the installation of one or more drivers.


Windows 11 news in hungaryan language

Windows Blog-news

download Windows 10 ISO and updates

Windows 10 updates

download Windows 11 ISO and updates

Windows 11 updates


Quick Tip: For the advanced user, input interpretation can be useful when troubleshooting its Windows computer and other applications, where can check what the hardware or software problems are, but for the layman, it just increases the disk size completely unnecessarily.

Where is the Event Log in Windows:

1.) – Event Viewer, the Windows system utility, is called eventvwr.msc, and is located in the C:\Windows\System32 folder.

2.) – The Event Logs are stored in the C:\WINDOWS\system32\config\ folder.

Windows system utility

Caution: Incorrect handling of the Event Log, manual removal or cleaning of entries, can lead to errors, so it is recommended to create a restore point from which the original state can be restored.

Creating system restore point...

Let's begin:

There are two ways to clean the Windows Event Log of old, outdated, expired entries, which are also a security risk because they can expose your computer to malicious attacks.

1.) Manual cleaning of the Event Log:

To do this, open the Windows Event Log program built into Windows system.

(1) Type the command eventvwr.msc in the search field on the taskbar, then press the Enter button on keyboard. (2) In the left pane of the displayed Event Log, click the log you want to clear (eg.: Applications), (3) then click the event you want to delete in the middle of the window, (4) and click Clear Log... link on the right side of the Actions panel. (5) Finally, in the new small window that appears at the top, click the Clear button to confirm.

click the Clear button

2.) Automatic cleaning all Event Log:

Clearing events manually can take a long time and increase the chance of making an error during the operation, so use the Clear-All-EventLog.cmd file instead, which works safely, quickly and more thoroughly, of course, it is always recommended to make a backup copy. By clicking on the link below, you can download "Clear-All-EventLog.cmd" as a ZIP file, which you need to unzip.

Download "Clear-All-EventLog.cmd" file...

Important: The file must be run as administrator. If you have unzipped the compressed ZIP file, right-click the "Clear-All-EventLog.cmd" file, and left-click the "Run as administrator" link in the small mouse menu window that appears.

The file must be run as administrator

You immediately see in the command line window that the complete removal of events will begin. You can continue to work on the computer, it does not affect the automatic cleaning. The operation takes between 3 and 15 seconds, depending on the number of events found. Finally, the command prompt window closes automatically.

END