What is the Protection History in Windows Security?

Windows Defender is an antivirus developed by Microsoft. From time to time, it runs security checks on your system. You can also scan your system manually by using Windows Defender. The threats found by Windows Defender and the actions taken by it to resolve the threats are saved on the Protection History page of Windows Security.

Change Time to Clear Windows Security Protection History

The default time to clear Windows Security Protection History is 15 days. This means that the protection history of Windows Security will be cleared automatically after 15 days. You can view this default time on your computer by running a command in an elevated Windows PowerShell. Go through the following instructions to view the time to clear Windows Security Protection History.

You will see the time to clear Windows Security Protection History after the ScanPurgeItemsAfterDelay in the result. Do note that, there should be no space after the command, otherwise, you will get a blank result (see the above screenshot). Close Windows PowerShell (Admin) and launch it again as an administrator. Copy the following command and paste it into the Windows PowerShell (Admin). After that, hit Enter.

In the above command, replace days with the number of days after which you want Windows to clear the protection history of Windows Security automatically. For example, if you want to clear the protection history of Windows Security automatically after 60 days, type 60 in place of days in the above command. In this case, the command will be: If you want Windows to not clear the protection history automatically, type 0 in place of days in the above command. Hence, in this case, the command will be:

That’s it. You have successfully changed the time to clear the protection history of Windows Security. You can check this by executing the command used to view the time to clear protection history. I changed the time to clear the protection history of Windows Security on my computer to 120 days. You can view this in the above screenshot. Read: How to Enable or Disable Core Isolation and Memory Integrity in Windows.

How do I delete my Protected History in Windows?

You can delete the Protection History of Windows Security manually. Windows saves the protection history in the History folder locally on your C drive. You can view it by navigating to the following path: Here, you can manually clear the protection history of Windows Security. Alternatively, you can also execute a command in Windows PowerShell for the same. Hope this helps. Read next: How to read Windows Defender Event Log.