Have you ever noticed the Windows Defender protection history? Do you have any idea how to clear protection history in Windows 10/11? This post from MiniTool provides you with several reliable ways to achieve this goal.

What Is Windows Defender Protection History

Windows Defender is antivirus software built into your PC that protects your computer from viruses, malware threats, and attacks. Information such as actions taken by Microsoft Defender Antivirus on your behalf, potentially unwanted applications that have been removed, or critical services that have been shut down are stored on the Protection History page.

Windows Defender keeps its protection history for 30 days by default. You can clear them before this date to improve computer performance by using the following ways.

How to Clear Protection History in Windows 11/10

Way 1. Using File Explorer (Manually)

Windows Defender stores protection history logs as accessing files on your computer. So, you can manually clear protection history through File Explorer.

Step 1. Press Windows + E key combinations to open File Explorer. Then move on to the View tab and check the checkbox next to Hidden items.

Step 2. Type C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service in the address bar and press Enter. Or you can navigate to this location layer by layer.

Step 3. Select all files and right-click to choose Delete.

select the button to delete files

How to Stop File Explorer From Showing External Drives Twice
How to Stop File Explorer From Showing External Drives Twice

External drive shows up twice in the File Explorer navigation pane? Read this post to stop File Explorer from showing external drives twice.

Read More

Way 2. Using Event Viewer (Manually)

Windows Event Viewer displays a log of application and system messages, including errors, information messages, and warnings. If you do not know how to clear protection history, you can use it by referring to the following steps.

Step 1. Type Event Viewer in the Windows search box and click it from the best match result.

Step 2. Expand Applications and Services Logs by clicking the inverted triangle button next to it. Then expand Microsoft > Windows. And then scroll down to expand Windows Defender.

Step 3. Click on Operational and choose Clear log from the right panel.

clear log

Step 4. In the pop-up window, click Clear or Save and Clear to clear the log.

How to Fix Virus and Threat Protection Engine Unavailable
How to Fix Virus and Threat Protection Engine Unavailable

When facing the virus and threat protection engine unavailable error, you can read this post to get a detailed guide to solve it.

Read More

Way 3. Using Windows PowerShell (Automatically)

Windows PowerShell is a command-line tool that is commonly used to automate system administration. Here you can set it to automatically clear Windows Defender protection history.

Step 1. Type Windows PowerShell in the Windows search box and right-click it to select Run as administrator.

Step 2. In the pop-up window, select Yes to allow this app to change your computer.

Step 3. Type this command: Set-MpPreference -ScanPurgeItemsAfterDelay N and press Enter (N refers to the days after which you want the protection history to be automatically cleared).

For example, if you want the protection history to be automatically cleared after 5 days, you need to type this command line: Set-MpPreference -ScanPurgeItemsAfterDelay 5.

type the correct command to clear protection history

How to Make Windows Defender Scan USB Automatically
How to Make Windows Defender Scan USB Automatically

Now you can learn why Windows Defender does not scan USB flash drives for viruses automatically and how to make Windows Defender scan USB automatically.

Read More

Way 4. Using Local Group Policy Editor (Automatically)

Local Group Policy Editor is a Microsoft Management Console (MMC) snap-in. You can configure and modify group policy settings through this tool. Also, it can help you clear protection history automatically.

Step 1. Press Windows + R keyboard shortcuts to open Run.

Step 2. Type gpedit.msc in the input box and press Enter.

type gpedit.msc

Step 3. Expand the following folders one by one: Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus.

Step 4. Under the Windows Defender Antivirus section, select Scan.

Step 5. On the right panel, double-click Turn on removal of items from scan history folder.

choose Turn on removal of items from scan history folder

Step 6. Select Enabled in the new window. Then set up the number of days that items should remain in the scan history folder before being permanently deleted, and click Apply.

enable automatic removal

Now, all operations have been done, and you won’t need to clear protection history manually. The system will automatically clear Windows Defender protection history according to the number of days you set.

Tips:

Tip: Sometimes your files may be deleted by Windows Defender. In this case, what if you want to recover them? Here professional data recovery softwareMiniTool Power Data Recovery is recommended to you. You can use this easy-to-use tool to get your deleted files back for free (No more than 1GB of data). For detailed steps, you can refer to this post: Windows Defender Deleted Files, How to Get Back Easily.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

Recover Virus Infected Files From USB Flash Drive & Remove Virus
Recover Virus Infected Files From USB Flash Drive & Remove Virus

This post mainly talks about how to recover virus infected files from USB flash drive and how to protect USB drives from virus infection.

Read More

Bottom Line

In a word, this article talks about how to clear protection history in Windows 10/11. You can choose your favorite way to clear it for the best computer performance. For more information about Windows Defender, welcome to visit MiniTool News Center.

  • linkedin
  • reddit