Clear protection history in Windows defender security center- Windows 10

Discussion in 'Windows 10' started by coleoptere2007, Sep 7, 2019.

  1. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,313
    1,938
    120
    #1 coleoptere2007, Sep 7, 2019
    Last edited: Sep 7, 2019
    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. Coleo. :)
     
  2. stoppen

    stoppen MDL Junior Member

    Jun 10, 2012
    96
    21
    0
    Nice find. I was wondering how I could clear that history.
     
  3. stoppen

    stoppen MDL Junior Member

    Jun 10, 2012
    96
    21
    0
    Thank you for that link. I will be spending a lot of time here playing with stuff.
     
  4. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,685
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...