Defender's DetectionHistory Folder Undeleteable


  1. Posts : 623
    Windows 10 Pro 19042 x64
       #1

    Defender's DetectionHistory Folder Undeleteable


    Hello,
    Sometime ago, wrote to you about how to delete Defender's "DetectionHistory" folder.
    In one answer I got, was mentioned the "UVK" program.
    Since then I used it and it made the job.
    Right now made three attempts with this program and all three failed.
    Here it a copy from the log file:
    "2024/04/30 20:50:04 Deleting C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory...
    C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory could not be recycled. Access to the file was blocked."
    Is there some more powerful tool to remove that stubborn folder ?
    Answers will be appreciated.
    Thanks
    Motim
    Windows 10 pro, 19045.4291 x64 22H2
      My Computer


  2. Posts : 815
    Windows 7
       #2

    Have you tried the latest version of @LesFerch's script?
    Clear Windows Security Center (Defender) Protection History
      My Computer


  3. Posts : 623
    Windows 10 Pro 19042 x64
    Thread Starter
       #3

    garlin said:
    Have you tried the latest version of @LesFerch's script?
    Clear Windows Security Center (Defender) Protection History
    Hello,
    Thanks for the answer.
    Well, it asked for a reboot, answered yes and.. it worked !
    Many thanks
    Motim
    Only one note: In "Properties" of the file, there is nothing mentioned as "Unblock", please see attached screenshot.
    But it worked. Defender's DetectionHistory Folder Undeleteable-properties-window.jpg
      My Computer


  4. Posts : 815
    Windows 7
       #4

    Depending on your browser's security settings, some downloaded files or scripts won't get Blocked.
      My Computer


  5. Posts : 6,900
    22H2 64 Bit Pro
       #5

    Motim said:
    Sometime ago, wrote to you about how to delete Defender's "DetectionHistory" folder.
    In one answer I got, was mentioned the "UVK" program.
    I mentioned UVK. It still worked for me if I select the option to delete on boot. I think you must have tried that. See the screenshot in this post. Note the checkbox.

    Clear Windows Security Center (Defender) Protection History

    If that did not work and you got access denied (on boot) then I don't know why. Maybe you would need to turn "tamper protection" off temporarily but that's just a guess.

    It seems that the folder is now better protected so although UVK can delete defender scan history on boot so can the modified script mentioned here:

    Clear Windows Security Center (Defender) Protection History

    It seems that you can use that at least for now.
    Last edited by Callender; 2 Weeks Ago at 16:07.
      My Computer


  6. Posts : 754
    Windows 10/11
       #6

    Also, downloaded files will not be blocked if your Downloads folder is on a non-NTFS volume.
      My Computer


  7. Posts : 6,900
    22H2 64 Bit Pro
       #7

    LesFerch said:
    Also, downloaded files will not be blocked if your Downloads folder is on a non-NTFS volume.
    Or possibly if you disabled saving zone information. (That's what I do).

    How to Disable Downloaded Files from being Blocked in Windows
      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 15:28.
Find Us




Windows 10 Forums