Clear Windows Security Center (Defender) Protection History

Page 2 of 8 FirstFirst 1234 ... LastLast

  1. Posts : 8
    Windows 10 Pro
       #11

    Steve C said:
    The Microsoft solution you like appears to be the same as the one I proposed by changing the setting in Group Policy
    The Group Policy setting defines the number of days before items are removed from history, in which the minimum is one day.
    This does not allow one to delete the history immediately but rather enables the history be cleared every 24hrs automatically.
    Again, the objective is to find a way to delete now in the same manner as the "Clear history" button functioned in previous Windows OS versions.
      My Computer


  2. Posts : 8
    Windows 10 Pro
       #12

    Virtik said:
    It appears I might have discovered a little "chink in the armour" as this method doesn't seem to work IF you have any detections listed in the protection history from the controlled folder access feature... if enabled.
      My Computer


  3. Posts : 1
    Windows 10
       #13

    Start CMD from Troubleshoot.

    Clear Windows Security Center (Defender) Protection History-proxy.duckduckgo.png

    -Type your Windows Password
    -Wait CMD
    -Type;

    Code:
    del "C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory\*"
    del "C:\ProgramData\Microsoft\Windows Defender\Scans\mpenginedb.db"
    DetectionHistory: Clear detected malware history.
    mpenginedb.db : Clear others (risk action blocked, controlled folder access)
      My Computer


  4. Posts : 8
    Windows 10 Pro
       #14

    Thanks for the info matrix.
    From your post I was able to create a powershell bat file and place a shortcut in my start menu to clear protection history in Windows Security.
    powershell -Command "Remove-Item 'C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory\*' -Recurse -Force"
    Now FYI, I have admin rights, show hidden folders activated, and ownership for access purposes, so the command may not work for some.
    Perhaps Shawn or someone can make a final (cmd/bat/powershell) type file to post in a tutorial or sticky thread for all to use.
      My Computer


  5. Posts : 4
    Windows 10 pro/OSX Mojav
       #15

    Clearing Windows Defender history


    Delete folder Service.
    Type C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service in the address bar and delete all files and folders. After deleting the folder Service, off and turn on (OFF>ON) Real-Time protection and Cloud protection.

    Works a treat
      My Computer


  6. Posts : 1
    Windows 10
       #16

    mccnavy said:
    I recall on older versions of Windows Defender (now Windows Security Center) that you could clear the threat history. I have found no such way in current versions of Windows Security Center. Is there a way to do this? I am on Windows 10 1903.
    Hey, what you need to do is so simple, just follow the steps below exactly in order:
    1. Turn OFF Real-time Protection
    2. Turn OFF Cloud-delivered Protection
    3. Go to this folder C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service
    4. Delete the contents in the folder
    5. Turn ON Real-time Protection
    6. Turn ON Cloud-delivered Protection

    That's it... Now check protection History, it's empty.
    Done!
      My Computer


  7. Posts : 1
    Windows 10 Home
       #17

    I am using Windows 10 Home build 1909

    I have tried every method in this thread, but the protection history is still shown, nothing works
      My Computer


  8. Posts : 1
    Win
       #18

    ZaneCEO said:
    I found this topic Googling for the same issue. The "Clear history" button is now gone, so there isn't an easy-to-spot solution right there. I tried with CCleaner (Windows Defender checked) but got no luck.
    Found this topic and the answer a yr later googling the same thing.

    Delete "Service" folder, C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service .
      My Computer


  9. Posts : 181
    Windows 10 Pro x64
       #19

    Virtik said:
    It works (Windows 10 2004).

    This is how I did it:
    1) temporarily disabled Real-time detection + Cloud detection in the UI settings
    2) from an Admin command prompt:
    Code:
    rmdir /S "C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory"
    (command to delete dir and its subdirs, confirm and proceed)
    3) re-enabled Real-time detection + Cloud detection


    Defender is quite buggy: if you manually delete a suspicious file (detected as PUP or false positive malware), then Defender's warning will stay forever because it won't find the detected file anymore failing to remove it , and you have no option to clear detection history: Defender will show "your system might be unsafe, please start a scan" warning "forever"... (or at least I didn't want to wait 15 or 30 days to see if it got automatically purged)
    Last edited by hexaae; 21 Apr 2022 at 15:43. Reason: added /S option for rmdir and updated path
      My Computer


  10. Posts : 87
    Win 10
       #20

    I find that going to C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory and removing the sub-folders removes the history.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:59.
Find Us




Windows 10 Forums