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
    2,630
    1,356
    90
    #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 Novice

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

    stoppen MDL Novice

    Jun 10, 2012
    31
    6
    0
    Thank you for that link. I will be spending a lot of time here playing with stuff.