How to Clear Windows Defender History in Windows 10

How to Clear Windows Defender History in Windows 10

Windows antivirus maintains a threat log you blocked. To get rid of the yellow exclamation point, you must clear Windows Defender history and here we will see how to do it.

You can see blocked items or detected threats in your Windows Defender protection history. Items will continue to appear there even if they have been marked for deletion or quarantine. This has a side effect as the Windows Defender icon in the system tray will display a yellow exclamation point.

Clear Windows Defender History

Windows Defender keeps detected items in its history for thirty days, which can be shortened or extended. If items older than thirty days are displayed, you can change how long they stay or you can just delete all history. We will detail both methods and it is up to you to choose the one that suits you best.

1. Change history duration

To set or change how longor an item is kept in protection history, follow these steps:

Open PowerShell with administrator rights.

Run the following command, replacing the number at the end with the number of days an item should remain in your protection history.

Set-MpPreference -ScanPurgeItemsAfterDelay 3
Clear Windows Defender history with PowerShell.

In this example, we set a duration of 3 days to preserve items in history. After the time expires, items older than the set number will be removed from the protection history.

Then, when the history is completely cleared, the yellow exclamation point will be removed from the Windows Defender icon.

READ  How to Run Applications with Keyboard Shortcuts in Windows

2. Clear Windows Defender history manually

If you don’t want to wait several days to clear your protection history, you can delete everything manually. You need admin rights to do this and you must follow these steps:

Open File Explorerand go to the next folder.

C:ProgramDataMicrosoftWindows DefenderScansHistory

Here you will find and delete the folder called √Ę ????Servicefor????.

Clear Windows Defender history manually from the folder.

After deleting the folder, open windows defender and I know will erase the protection history.

The folder Service it will be automatically recreated when Windows Defender detects a new threat. The system tray icon will no longer have a yellow exclamation point.

final words

Remember that protection history also presents active threats. Windows Defender automatically removes highly malicious files or applications, which is not always the case with low-level threats.

For this reason, before deleting history protection, make sure you fix all active threats. If you don’t remove, allow, or quarantine a threat, it will reappear in Windows Defender.

Deja una respuesta

Tu dirección de correo electrónico no será publicada.