search
HomeCommon ProblemHow to clear protection history in Windows 11: 2 methods

When your PC is running out of storage space, you can instantly view many folders to free up space. One of them that consumes a big part is Windows Defender protection history, but can you clear it in Windows 11?

Although not entirely necessary, deleting protection history can actually help clear some storage space on your system. For some users, these files take up 20-25 GB of space, which can be daunting if your computer is low on storage space.

So, let’s find out what protection history is, all the ways to clear it in Windows 11, and how to configure it to clear automatically after a set time.

What is historical preservation?

Microsoft provides built-in antivirus software Windows Defender to keep your system safe and protected from any threats and viruses.

To achieve this, Windows Defender will run periodic scans in the background, if it is enabled, and log the issues it identifies and the actions it takes. It will list potentially unwanted apps that have been blocked or removed, or if any critical services have been turned off.

These logs or information are called Windows Defender protection history or simply protection history. It classifies problems based on their severity. Keep in mind that you need administrator privileges to view the details of these operations.

Now that you have a decent understanding of the process, let us walk you through how to clear protection history in Windows 11.

How to clear protection history in Windows 11?

1. Use File Explorer

  1. Press Windows E to start File Explorer and change the following Paste the path into the address bar at the top and hit Enter. Alternatively, you can navigate this path, just make sure to make the hidden files visible: <strong>C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service</strong>在 Windows 11 中清除保护历史记录的 2 种方法
  2. Once there, press Ctrl A to select all the files, then hit Delete to clear them. 在 Windows 11 中清除保护历史记录的 2 种方法
  3. If a confirmation prompt pops up, please choose the appropriate response.
  4. Now, go this route<strong>:C:\ProgramData\Microsoft\Windows Defender\Scans </strong>
  5. Findmpenginedb.db file, right-click on it and select the Delete icon from the context menu. 在 Windows 11 中清除保护历史记录的 2 种方法
  6. Likewise, if a confirmation prompt appears, choose the appropriate response.
  7. When finished, press Windows S to launch the search menu, enter Windows Security in the text field, and click on the relevant search result. 在 Windows 11 中清除保护历史记录的 2 种方法
  8. Click Virus & Threat Protection from the options here. 在 Windows 11 中清除保护历史记录的 2 种方法
  9. Next, click Manage Settings under Virus & Threat Protection Settings. 在 Windows 11 中清除保护历史记录的 2 种方法
  10. Click the toggle button for Real-time Protection to disable it. 在 Windows 11 中清除保护历史记录的 2 种方法
  11. Click Yes on the pop-up UAC (User Account Control) prompt. 在 Windows 11 中清除保护历史记录的 2 种方法
  12. Likewise, disable Cloud-provided protection under it. 在 Windows 11 中清除保护历史记录的 2 种方法
  13. Wait a moment and then re-enable both features. 在 Windows 11 中清除保护历史记录的 2 种方法

Protection history in Windows 11 has been cleared successfully. Additionally, you now know where Windows Defender history is on your PC and can easily delete it next time.

2. Via Event Viewer

  1. Press Windows S to launch the search menu and enter Event Viewer## in the text field # and click the relevant search results. 在 Windows 11 中清除保护历史记录的 2 种方法
  2. Double-click
  3. Applications and Services Logs in the left navigation pane. <strong></strong>在 Windows 11 中清除保护历史记录的 2 种方法
  4. Now, expand
  5. Microsoft to see the options below it. 在 Windows 11 中清除保护历史记录的 2 种方法
  6. Next, double-click
  7. Windows. 在 Windows 11 中清除保护历史记录的 2 种方法
  8. Expand
  9. Windows Defender and click the Operational entry below it. 在 Windows 11 中清除保护历史记录的 2 种方法
  10. Click
  11. on the right to clear the log. <strong></strong>在 Windows 11 中清除保护历史记录的 2 种方法
  12. Now, choose the appropriate response from the confirmation prompt depending on whether you want to save its contents or delete it completely. We recommend the latter.
  13. 在 Windows 11 中清除保护历史记录的 2 种方法
Here's how you clear protection history using Event Viewer in Windows 11. This method is relatively simple and more efficient for those who regularly check the error logs in Windows 11.

Both methods help to clear protection history manually, but what if you want to clear it automatically? There are several ways to do this. Read the next section to find out.

How to set protection history to clear automatically?

1. Use Windows PowerShell

    Press
  1. Windows R to start the run command and enter wt## in the text field #, hold down the Ctrl Shift key, and click OK or hit Enter to launch an elevated Windows Terminal. <strong></strong>在 Windows 11 中清除保护历史记录的 2 种方法Click
  2. Yes in the pop-up UAC prompt.
  3. <strong></strong>在 Windows 11 中清除保护历史记录的 2 种方法Now, paste the following command into the
  4. PowerShell
  5. tab and hit Enter to execute it. Just make sure to replace the N here with the number of days you want your protection history to be automatically cleared. Set-MpPreference -ScanPurgeItemsAfterDelay N<strong></strong>For example, if you want the protection history to be automatically purged after 7 days, the command is as follows:
  6. Set- MpPreference -ScanPurgeItemsAfterDelay 7<strong></strong>在 Windows 11 中清除保护历史记录的 2 种方法
Expert Tip:

Some PC problems are difficult to solve, especially if the repository is corrupted or Windows files are missing . If you are having trouble fixing errors, your system may be partially corrupted. We recommend installing Restoro, a tool that can scan your machine and determine where the fault lies. Click here to download and start repairing.
This is probably the easiest way to automatically clear protection history in Windows 11 using PowerShell. But if you're not a big fan of the command line, try the next method.

2. Use the local Group Policy Editor (Gpedit)

  1. Press Windows R to start the run command and enter gpedit . msc in the text field and click OK or click Enter to launch the Local Group Policy Editor. 在 Windows 11 中清除保护历史记录的 2 种方法
  2. Expand Administrative Templates and double-click Windows Components. 在 Windows 11 中清除保护历史记录的 2 种方法
  3. Next, double-click Microsoft Defender Antivirus and then Scan under it. 在 Windows 11 中清除保护历史记录的 2 种方法
  4. Double-click the "Remove items from scan history folder" policy here . 在 Windows 11 中清除保护历史记录的 2 种方法
  5. Select Enable from the top, enter the number of days before history will be deleted, and click OK at the bottom to save changes. 在 Windows 11 中清除保护历史记录的 2 种方法

That's it! Protection history will now be cleared automatically after a set number of days. If you want to keep the protection history permanently, enter 0 as the number of days in the field.

If you're running the Home edition of the operating system, learn how to install Local Group Policy Editor in Windows 11.

Is it safe to clear protection history in Windows 11?

There is no harm in clearing protection history in Windows 11, and it certainly won’t affect the functioning of your PC in any way. What's more, these files will show up in Disk Cleanup if you run a scan.

And regardless of whether Windows Defender is now disabled and you are using third-party antivirus software, you can still clear old log files.

Additionally, if files have accumulated over time and their size has increased significantly, it may cause a crash each time you open Windows Defender Protection History. More reasons to clear your protected history

That’s what this concept is all about. Furthermore, the methods listed here also help to clear Windows Defender protection history in Windows 10 manually.

If virus and threat protection isn't working, learn how to fix it because the problem is common and without it, you won't be able to access protection history through Windows Defender.

Also, if your PC is low on resources, you may consider disabling the Antimalware Service Executable (Windows Defender process) as it is known to consume system resources.

The above is the detailed content of How to clear protection history in Windows 11: 2 methods. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:云东方. If there is any infringement, please contact admin@php.cn delete
修复:Windows 11 激活错误 0xc004f213修复:Windows 11 激活错误 0xc004f213Apr 13, 2023 pm 05:40 PM

激活 Windows 11 操作系统的过程变得非常简单。还有一种情况是密钥已预先编程到 BIOS 中,您不需要输入任何信息。但是,用户报告收到 Windows 11 激活错误 0xc004f213 消息。许可证密钥有助于确认您的操作系统副本是正版的,并且它没有安装在超过 Microsoft 软件许可条款允许的设备上。跟随我们将向您展示如何修复 Windows 11 激活错误 0xc004f213,就在我们看到为什么在您获得新的笔记本电脑/计算机后立即激活您的 Windows 副本很重要之后。跟上

无法在 Windows 11 中安装 RSAT?应用这些修复无法在 Windows 11 中安装 RSAT?应用这些修复Apr 15, 2023 pm 03:07 PM

RSAT或远程服务器管理工​​具是一个组件,允许管理员远程管理运行相同操作系统的其他计算机。但是,如果事情不正确,您可能无法在Windows11中安装RSAT。您在这里遇到了一堆错误,例如,RSAT安装程序遇到错误0x8024001d。不管是什么原因,有很多方法在每种情况下都证明是有效的。因此,如果您还无法在Windows11中安装RSAT,请执行下一节中列出的修复程序。如果我无法在Windows11中安装RSAT,我该怎么办?笔记请记住,RSAT仅适用于Windows

如何在 Windows 11 中清除桌面背景最近的图像历史记录如何在 Windows 11 中清除桌面背景最近的图像历史记录Apr 14, 2023 pm 01:37 PM

&lt;p&gt;Windows 11 改进了系统中的个性化功能,这使用户可以查看之前所做的桌面背景更改的近期历史记录。当您进入windows系统设置应用程序中的个性化部分时,您可以看到各种选项,更改背景壁纸也是其中之一。但是现在可以看到您系统上设置的背景壁纸的最新历史。如果您不喜欢看到此内容并想清除或删除此最近的历史记录,请继续阅读这篇文章,它将帮助您详细了解如何使用注册表编辑器进行操作。&lt;/p&gt;&lt;h2&gt;如何使用注册表编辑

5 个最好的免费 Windows 11 屏幕保护程序资源5 个最好的免费 Windows 11 屏幕保护程序资源Apr 13, 2023 pm 05:07 PM

优雅的屏保通常是一种被低估的艺术形式。这是一种耻辱,因为当您不使用它时,它们可以将您的计算机变成一个漂亮的工作室。屏幕保护程序很容易混淆壁纸,但这是一个错误。有一些区别,但最突出的是屏幕保护程序的动画性质。该动画是壁纸中的明显遗漏,壁纸通常是静态艺术作品。是时候赋予屏保他们真正应得的价值了。本文将探索一些最优雅的免费 Windows 11 屏幕保护程序,并向您展示它们为何非常适合您的计算机。在下载屏幕保护程序之前你应该知道什么?您将在本文中看到推荐的许多 Windows 11 屏幕保护程序,并且

如何在 Windows 11/10 上修复 FFMPEG.DLL Not Found 错误如何在 Windows 11/10 上修复 FFMPEG.DLL Not Found 错误Apr 14, 2023 pm 07:10 PM

最近,Windows用户报告遇到ffmpeg.dll文件丢失或未找到错误。基本上,此错误可能会在应用程序安装时、系统启动时或访问某些网站时引发。当系统文件损坏时,可能会出现ffmpeg.dll错误,从而使系统目录无法发现DLL文件。此错误还与MicrosoftTeams、Skype、Discord、适用于Windows的WhatsApp、Deezer等应用程序相关联。向用户显示的错误消息是:程序无法启动,因为您的计算机缺少ffmpeg.dll。尝试重新安装程序以解决此问题。如果

如何在 Windows 11 上反转颜色 [使用快捷方式]如何在 Windows 11 上反转颜色 [使用快捷方式]Apr 14, 2023 pm 02:43 PM

使用 Windows 电脑时,可能需要反转电脑的颜色。这可能是由于个人偏好或显示驱动程序错误造成的。如果你想要反转 Windows 11 电脑的颜色,本文为你提供了在 Windows 电脑上反转颜色所需的所有必要步骤。在本文中反转图像上的颜色是什么意思?简单来说,反转图像的颜色意味着将图像的当前颜色翻转到色轮上的相反色调。你也可以说这意味着将图像的颜色更改为负片。例如,蓝色图像将反转为橙色,黑色变为白色,绿色变为洋红色等。如何在 Windows 11 上反转颜色?1. 使用微软画图按键 + ,输

Windows 11 重启和关闭简易键盘快捷键Windows 11 重启和关闭简易键盘快捷键Apr 14, 2023 pm 01:10 PM

大多数用户可以通过使用键盘快捷键来节省使用系统的时间。这些快捷方式可用于打开运行命令框、打开文件资源管理器、激活设置程序、锁定屏幕等。有几种方法可以快速重启或关闭 Windows 操作系统。有时鼠标坏了,使用笔记本电脑上的触摸板可能会让使用快捷方式快速完成的任务感到不愉快。如果您想知道如何使用键盘快捷键关闭或重新启动计算机,本文将向您展示如何通过三种不同的方法进行操作。使用“开始”按钮上下文菜单重新启动和关闭键盘快捷键步骤 1:要打开任务栏上“开始”按钮的上下文菜单,请同时按下键盘上的Windo

如何在 Windows 11 上下载 Microsoft Money Sunset如何在 Windows 11 上下载 Microsoft Money SunsetApr 15, 2023 pm 12:34 PM

即使不再开发,MicrosoftMoneyPlusSunset仍然是Windows11上最受欢迎的财务软件之一。微软于2009年6月30日停止销售该程序,并于2011年1月限制对现有Money安装的在线服务的访问。MicrosoftMoneyPlusSunset是2010年发布的替代版本,使人们能够访问和编辑Money数据文件,但缺乏任何在线功能或支持。有两个版本:Deluxe和Home&Business。Money在2012年作为Wi

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use