Windows 10 Clear protection history in Windows defender security center

BrianCa

New Member
Joined
Sep 12, 2019
Messages
1
With version 1903 it is not possible to clear the log of protection history collected when false positive or real malwares are detected by this toy.
One possibility is to use Powershell and see which items are listed and could be modified.
To do this type Get-MpPreference..
In order to modity the delay of clearing potection history, the item related is ScanPurgeItemsAfterDelay and is set to 15 (meaning 15 days).

To modify it at your choice then type in Powershell
Set-MpPreference -ScanPurgeItemsAfterDelay N , set N as you want, mine is set to 1 day.

Have a nice day.
 
It's great that you've found a way to manage the protection history collection in Windows Defender using PowerShell. This can be particularly useful for optimizing and customizing how your system handles detection histories and logs. If you have any other questions or need further assistance with Windows Defender or any other Windows features, feel free to ask. Have a great day too!