remove recent events from Protection History


I have read many ways to remove recent items from Defender's protection history but none work or only apply to Windows 10.
When I reboot these items are still listed.
I have built up quite a list over time.
Or am I better off leaving them there. I wonder why others can but I cannot; I suspect something wrong may be wrong with my system; I did get a reply from M.S. that some users are having trouble with this task but a cumulative update just came out and I still cannot remove them.
I prefer not to hack the reg as my skill level is not that good. I did follow file explorer 's folders to the end of the chain and deleted as told.
Is there some way to accomplish this?
 

My Computers

System One System Two

  • OS
    Win 11 Pro & 🐥.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
    CPU
    AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
    Motherboard
    ASUSTeK COMPUTER INC. X509DA (FP5)
    Memory
    12GB
    Graphics Card(s)
    RX Vega 10 Graphics
    Monitor(s) Displays
    Generic PnP Monitor (1920x1080@60Hz)
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    Samsung SSD 970 EVO Plus 2TB NVMe 1.3
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
Did you execute batch script while Security Center opened, i have mind always closed while executing the batch script.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Security centre closed and tamper protection off.
 

My Computers

System One System Two

  • OS
    Win 11 Pro & 🐥.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
    CPU
    AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
    Motherboard
    ASUSTeK COMPUTER INC. X509DA (FP5)
    Memory
    12GB
    Graphics Card(s)
    RX Vega 10 Graphics
    Monitor(s) Displays
    Generic PnP Monitor (1920x1080@60Hz)
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    Samsung SSD 970 EVO Plus 2TB NVMe 1.3
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
I have no idea why script won't work for you, it always works for me.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
I have no idea why script won't work for you, it always works for me.
I think that something, a program or app, broke something in Defender a while ago and so the protection history is now stored in a different location. It has to be, otherwise it wouldn't record it. Question is where?
It's still recording.

Screenshot_7.png
 

My Computers

System One System Two

  • OS
    Win 11 Pro & 🐥.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
    CPU
    AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
    Motherboard
    ASUSTeK COMPUTER INC. X509DA (FP5)
    Memory
    12GB
    Graphics Card(s)
    RX Vega 10 Graphics
    Monitor(s) Displays
    Generic PnP Monitor (1920x1080@60Hz)
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    Samsung SSD 970 EVO Plus 2TB NVMe 1.3
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
Just to compare which makes me wonder if I should clear all after scans?
Since I did a repair I have no history or service.

I tested the windows security fix and restore. I restarted the pc. After that, History\Service\DetectionHistory is still there.
You could try an in-place upgrade to fix it.

Repair Install Windows 11 with an In-place Upgrade Tutorial

Personally, I probably wouldn’t do that if the protection and scanning worked normally.

Edit: I tested that batch script which was in the first post, and it also deleted the DetectionHistory folder, not just history files
After that, I created DetectionHistory folder myself. I restored the history folders and files I deleted there. After that the defender shows up again in the protection history events. In other words, you could also try to create the folders you need there yourself, but that may not fix the original problem
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro 23H2 (22631.3155)
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600X
    Motherboard
    Asus TUF Gaming B550-Plus
    Memory
    Kingston 16GB (2 x 8GB) DDR4 3200MHz
    Graphics Card(s)
    Gigabyte Radeon RX 580 AORUS 8GB GDDR5
    Monitor(s) Displays
    Samsung
    Screen Resolution
    1920X11080
    Hard Drives
    Samsung 970 EVO Plus NVMe M.2 500GB (OS)
    Samsung 980 NVMe 1TB (Games)
    Samsung 860 EVO 250GB
    Samsung 850 EVO 250GB (Music)
    PSU
    Super Flower / Leadex 750W 80Plus Titanium
    Cooling
    SilentiumPC Fortis 3 HE1425 v2
    Keyboard
    Logitech K520
    Mouse
    Logitech G700S
    Internet Speed
    50mbps/10mbps
    Browser
    Firefox, Chrome, Edge, Opera
    Antivirus
    Windows Defender
I tested the windows security fix and restore. I restarted the pc. After that, History\Service\DetectionHistory is still there.
You could try an in-place upgrade to fix it.

Repair Install Windows 11 with an In-place Upgrade Tutorial

Personally, I probably wouldn’t do that if the protection and scanning worked normally.

Edit: I tested that batch script which was in the first post, and it also deleted the DetectionHistory folder, not just history files
After that, I created DetectionHistory folder myself. I restored the history folders and files I deleted there. After that the defender shows up again in the protection history events. In other words, you could also try to create the folders you need there yourself, but that may not fix the original problem
No it does not batch script only delete "C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service" folder.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Before

Windows protectionhistorydelete.jpg

Those numbered folders are the ones where the actual files are.

After batch script

windows protectionhistorydelete2.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 (22631.3155)
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 5600X
    Motherboard
    Asus TUF Gaming B550-Plus
    Memory
    Kingston 16GB (2 x 8GB) DDR4 3200MHz
    Graphics Card(s)
    Gigabyte Radeon RX 580 AORUS 8GB GDDR5
    Monitor(s) Displays
    Samsung
    Screen Resolution
    1920X11080
    Hard Drives
    Samsung 970 EVO Plus NVMe M.2 500GB (OS)
    Samsung 980 NVMe 1TB (Games)
    Samsung 860 EVO 250GB
    Samsung 850 EVO 250GB (Music)
    PSU
    Super Flower / Leadex 750W 80Plus Titanium
    Cooling
    SilentiumPC Fortis 3 HE1425 v2
    Keyboard
    Logitech K520
    Mouse
    Logitech G700S
    Internet Speed
    50mbps/10mbps
    Browser
    Firefox, Chrome, Edge, Opera
    Antivirus
    Windows Defender
Oh i think i know why it does not work i have upgraded from Windows 10 maybe that is the reason script works for me.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Oh i think i know why it does not work i have upgraded from Windows 10 maybe that is the reason script works for me.
I don't think so as all, except one, of my laptops have been upgraded. None have had a clean install of Win 11.
 

My Computers

System One System Two

  • OS
    Win 11 Pro & 🐥.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
    CPU
    AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
    Motherboard
    ASUSTeK COMPUTER INC. X509DA (FP5)
    Memory
    12GB
    Graphics Card(s)
    RX Vega 10 Graphics
    Monitor(s) Displays
    Generic PnP Monitor (1920x1080@60Hz)
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    Samsung SSD 970 EVO Plus 2TB NVMe 1.3
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    25 Mbps
    Browser
    Edge
    Antivirus
    Defender
Here is the result of the batch script on my side.

2022-01-21_9-11-47.png
2022-01-21_9-13-08.png
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
@FreeBooter
I realize I am raising the dead here but wish to clear those recent entries in protection history. -you seem successful.
Apparently you were able to clear the recent entries in protection history.
In post 16 I have the same as fabler, do you? On my last click after service I see a gray , "unknown" and delete it. I cannot clear the recent entries. I wonder if your file explorer chain is the same as fabler and mine. If so we should be able to clear it. If not there is a problem out of my control.
 

My Computer

System One

  • OS
    11 pro
    Computer type
    PC/Desktop
    CPU
    Intel Core i5- 8400 6 core 2.8 G
    Motherboard
    Asus Tuf Z390-Plus Gaming WI FI
    Memory
    Corsair 16 GB DDR4-2400
    Graphics Card(s)
    EVGA GeForce GTX 1050 TI SC 4GB
    Hard Drives
    Samsung 500GB 860 EVO
    PSU
    EVA 650 W
    Case
    Corsair Carbide Series 100R Mid
    Antivirus
    Defender primary with MBAM free secondary
2022-01-31_0-22-37.png
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
As I once said Microsoft told me there is the problem with some people not being able to clear protection history's recent issues.
I suspect that many who can were using 10 and upgraded not clean install. I could be wrong.
Thanks all-I guess case closed unsolved.
 

My Computer

System One

  • OS
    11 pro
    Computer type
    PC/Desktop
    CPU
    Intel Core i5- 8400 6 core 2.8 G
    Motherboard
    Asus Tuf Z390-Plus Gaming WI FI
    Memory
    Corsair 16 GB DDR4-2400
    Graphics Card(s)
    EVGA GeForce GTX 1050 TI SC 4GB
    Hard Drives
    Samsung 500GB 860 EVO
    PSU
    EVA 650 W
    Case
    Corsair Carbide Series 100R Mid
    Antivirus
    Defender primary with MBAM free secondary

Latest Support Threads

Back
Top Bottom