none
Can't clean Windows Defender's protection history RRS feed

All replies

  • You can use the below PowerShell cmdlet to clear the history:

    Set-MpPreference -ScanPurgeItemsAfterDelay <NO OF DAYS>

    Example: Set-MpPreference -ScanPurgeItemsAfterDelay 3

    Replace <NO OF DAYS> with the number of days for which you want the items to be stored in the scan log folder. After this time, Windows Defender deletes the items. If you specify a null value, Windows Defender will not remove items.

    Hope this helps.

    • Proposed as answer by Ben.Paul Wednesday, August 14, 2019 7:33 AM
    Wednesday, August 14, 2019 7:33 AM