Hi,
Up until recently, we were able to manually clear Windows Defender's detection history. The scriptable solution was to delete C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service folder. This served as a way to ensure any history of detections in the GUI were ones I hadn't looked at yet.
It seems that as of the last few days, this folder is protected by Defender and can't be removed. Things I've tried:
- Run a command window as SYSTEM
- Ensure Tamper Protection is disabled
- Various local policies to temporarily disable Defender
- Using sysinternals MoveFile to set a delete on reboot
You'll still get an Access Denied attempting to tamper with these files in any way, and for some reason the GUI option to clear history was removed. Any idea how to make a history look all clear would be appreciated.