How to clear the security log in Windows 10

How to clear the security log in Windows 10

Method 1: Registry Tools

Traditionally, security registry entries are removed through the plugin interface "Events viewer". This is the easiest and most obvious way for novice users.

  1. Open an internal app "Events viewer"., pressing the combination of Win + R to bring up the quick commands dialog, enter eventvwr and press the key I went into.
  2. In the left column of the log window that opens, expand the branch "Application and Service Logs""Microsoft Windows""Windows Defender".
  3. Highlight a subitem "Operational." and click on the right column of the plugin window "Clear log".
  4. Confirm the action in the dialog box that appears. If you want to save a copy of the entries, select the option «Save and delete».If you don't want a backup, you can select "Clear"..

Backup logs can be saved in EVTX, CSV, XML and TXT formats.

Method 2: "Explorer"

Security registry entries in Windows 10 are physically represented by a set of files stored in one of the system folders. Removing them will clear this section of the general event log.

  1. Ir a "Options". folders and searches and enable the display of hidden files, folders and drives.

    Read More: Turn on Show Hidden Folders in Windows 10

  2. Ir a "Explorer". in the deal C:\ProgramData\Microsoft\Windows Defender\Scans\History.
  3. Find the folder there. "Service" and delete it with all its content.
It may interest you:  Включение стандартного приложения "Просмотр фотографий" in Windows 10

Method 3: Automate the cleanup procedure

If you want, you can automate the cleaning procedure of the registry hive where the built-in antivirus saves its logs. Default "Windows Defender". keeps your records for 30 days, but you can reduce this period to one day.

  1. Run as administrator "Windows PowerShell".
  2. Run the command in the console Set-MpPreference -ScanPurgeItemsAfterDelay 1.

The amount «1» at the end of the command means that the protection log will be automatically cleared every day. Consequently, if the command is passed «2»Windows will start clearing the logs after a day.

We are glad that we were able to help you with your problem.

Describe what you cannot do.
Our specialists will try to respond as quickly as possible.

Has this article helped you?

More articles on this topic: