![Banishing Defender Tracings in Windows 10/11 Environments](https://thmb.techidaily.com/0f399835ae801930fc09d856b55526ca68007b6aa28f7cfc8442056063114a14.jpg)
Banishing Defender Tracings in Windows 10/11 Environments
![](/images/site-logo.png)
Banishing Defender Tracings in Windows 10/11 Environments
Windows Defender is Microsoft’s antivirus built into your Windows PC to protect you from viruses, malware threats, and attacks. It maintains a record of its scans and actions in its Protection History folder.
Though Protection History gets deleted after some time, you might want to have more control to clear it by yourself. So let’s see how you can clear Protection History in four ways.
What Is the Microsoft Defender Protection History? Why Should You Clear It?
One of the best antivirus for your PC, Windows Defender keeps getting better with some powerful upgrades . The detections made by Windows Defender appear on the Protection History page—which means you can view actions that Microsoft Defender Antivirus has taken on your behalf. These would be scans done to identify and block malware and other threats. And also the recommendations (highlighted in red or yellow) for actions you should take.
You also have access to all this information in a clear and easily understandable form, including Potentially Unwanted Apps that have been removed, or key services that have been turned off. The Protection History will also show the detections that appear while performing a Windows Defender Offline scan.
Though Windows Defender keeps the history of its detections for 30 days, you can clear it before that time if you need to—for example, when a lot of scan logs have accumulated. Clearing the Protection History would help you make space on your PC and keep Defender running smoothly. Remember, you must be signed in as an administrator to clear the protection history so do check if you have administrative rights .
Now let’s see four easy ways to clear Protection History in Windows 10 and 11.
1. How to Clear the Microsoft Defender’s Protection History Folder
You can manually clear the Protection History by deleting the contents of the Service folder in the Windows Defender folder using File Explorer. Here’s how:
- Press Windows + R keys to bring up the Run box.
- Copy and paste the path below and click on OK or hit enter: C:\ProgramData\Microsoft\Windows Defender\Scans\History
- You can also paste the C:\ProgramData\Microsoft\Windows Defender\Scans\History path in the File Explorer navigation bar and then hit enter.
Alternatively, you can navigate to the Defender Protection History folder using the above path in File Explorer. If you don’t see the ProgramData folder when you open the Local Drive, select View and then tick the box next to Hidden items. - Open the Service folder and select all the files inside it. Right-click and select Delete to clear all the files. Then exit File Explorer.
- Next, search for Windows Security and open it.
- Under Virus & threat protection click on Manage settings.
- Finally, toggle the button to Off and then to On again, for Real-Time protection and Cloud-delivered protection.
2. How to Clear the Microsoft Defender Protection History Using the Event Viewer
You can also manually clear the Defender Protection History via the Event Viewer —a useful app to analyze the event logs on your device. Here’s how:
- First, do a Windows search for Event Viewer and click on the app result under Best match to open Event Viewer.
- Under the Event Viewer (Local) on the left pane, expand the Applications and Services Logs.
- Under Applications and Services Logs, click on the down arrow next to the Microsoft folder.
- Click on Windows in the left pane to open the list of Windows files on the middle pane.
- Scroll down through the list of files on the middle pane to find Windows Defender.
- Double-click on Windows Defender.
- Then right-click on Operational and select Open to view all the past logs.
- Now you can right-click on Operational in the left pane and choose Clear Log. Or click on Clear Log on the right pane under Actions.
The BootIt Collection covers multi-booting, partitioning, and disk imaging on traditional PC’s using the standard BIOS and newer PC’s using UEFI. The collection includes BootIt Bare Metal (BIBM) for standard BIOS systems and BootIt UEFI (BIU) for UEFI system.
- Select Clear to clear the protection history. If you wish to save the protection history logs for future reference before clearing them, select Save and Clear.
TubeDigger - online video downloader from mostly any site
3. How to Clear the Microsoft Defender Protection History via PowerShell
What if you want the Protection History to clear automatically after a specific number of days? You can also use a PowerShell command to do that. Let’s see how to do this:
- Type PowerShell in the search bar. Right-click on Windows PowerShell under Best match and select Run as administrator. Or choose Run as administrator on the right search pane.
- Click Yes on the UAC prompt that appears.
- The Administrator: PowerShell window will open up. Type or copy and paste the following command and then hit enter:
Set-MpPreference -ScanPurgeItemsAfterDelay 7
The number 7 at the end of the command is the number of days after which the protection history logs will be cleared. Just change that number to specify when you want the protection history to be cleared. And it will be cleared automatically.
4. How to Clear the Microsoft Defender Protection History Using the Group Policy Editor
If you have a PC with Windows 10 Pro, Windows 11 Pro, or a higher version, you can also use the Group Policy Editor to clear the Defender Protection History automatically. Though there are solutions to access the Group Policy Editor on Windows Home too. But let’s see how to clear Protection History via Group Policy Editor in Windows Pro and higher versions:
- Press Win + R keys to open the Run box. Type gpedit.msc to open the Local Group Policy Editor. Or just type gpedit in the search bar and click on Edit Group Policy under Best match to open it.
- In the Local Group Policy Editor, on the left pane under Computer Configuration, expand Administrative Templates by clicking on the down arrow next to it.
- Inside the Administrative Templates folder, click on Windows Components and the list of its components would come up on the middle pane of the Group Policy Editor.
- Then scroll down to find Windows Defender Antivirus and double-click on it.
- In the list of Windows Defender items, double-click on the Scan folder.
- In the right pane, double-click on Turn on removal of items from scan history folder. Or click Edit policy setting in the middle pane. This policy setting defines the number of days items should be kept in the scan history folder before being permanently removed.
- Next, select Edit policy setting to open the policy window. It would be showing Not Configured by default. To set the number of days, toggle on the button next to Enabled. The default number of days, which is 30, would then be set. If you set the number of days to zero, items will be kept forever and will not be automatically removed. So just change the days to whenever you want the items to be removed. Finally, click Apply and then OK.
Now, you won’t need to manually clear Protection History every time—the items in the scan history folder would be deleted automatically after the days you’ve specified.
Clear the Microsoft Defender Protection History Whenever You Want
If you ever want to clear Defender Protection History, you know how easy it is to do it through any of the four ways discussed above. If you would want to refer to the Protection History logs later, you can use the Save and Clear option while clearing Protection History using Event Viewer.
Though Protection History gets deleted after some time, you might want to have more control to clear it by yourself. So let’s see how you can clear Protection History in four ways.
Also read:
- [New] 2024 Approved Leveraging Twitter's Video Capabilities for Instagram Audience
- [New] 2024 Approved YouTube Vs. Dailymotion Key Platform Distinctions
- [New] A Professional's Handbook to Blending Natural and Artificial Backgrounds
- [New] Breaking Down T-Series Income Mechanism on YouTube for 2024
- [New] Dealing with Copyright Infringement Notices on YouTube
- [New] Generating Income with Every Swipe Up for 2024
- [New] In 2024, Discovering Perfection An In-Depth Look at LG's 4K Screen
- [New] In 2024, Free, Easy HD Download of FB Media Library
- [New] In-Depth Review Complete CamStudio Screencap Suite
- [New] Innovative Virtual Engagement Harnessing the Power of Zoom in Gmail
- [Updated] From First Steps to Proficiency in iPhone Voice Memos
- [Updated] High Definition Excellence Leading the Recording Race
- [Updated] YouTube Equipment for Beginners [Ultimate Guide]
- 2024 Approved Drone Buying 101 Critical Facts for the Aspiring Owner
- 2024 Approved Virtual Adventure Awaits with These Top 12 PC Clickers
- Behind the Scenes How-To Create YouTube Trailers in Filmora for 2024
- Catch or Beat Sleeping Snorlax on Pokemon Go For Itel A60s | Dr.fone
- Counteracting Unforeseen Security Issues in Win10/Win11
- Demystifying Windows 11: The Intricacies of Its File System
- Digital Security Matters: Identifying Emerging Dangers in Tweets, Meta's Move Towards Enhanced User Trust with Verification, and Decoding the Power of ChatGPT-Next Generation AI Elaborated
- Does File Explorer Keep Crashing on Windows 11? Try These Fixes
- Efficient Screen Recording with Audio in the Latest Snipping Tool Update (Max 156)
- Fixing the Inability to Reach MB Services in Windows 11 Devices
- How to Enable Biometric Authentication in 11Th Gen Windows
- How to Reactivate Windows' Disabled Discord Overlay
- How to Reset your Nokia C02 Lock Screen Password
- How to Spy on Text Messages from Computer & Lava Blaze Pro 5G | Dr.fone
- In 2024, How to Factory Reset iPad or Apple iPhone SE without iCloud Password or Apple ID?
- In 2024, PixelMaster Elite OS X/Win Edition
- Mastering RDP Troubleshooting in Windows OSes
- Mastering the Reset for Mail & Calendars in W11
- Meet the New Wave - Exciting Laptops From IFA 2023
- Navigating the Network Nooks for Your WIndows 11'S MAC
- Overcoming Issues of Not Allowing File Writes on Windows 11
- Overcoming Stuck-On-Size Errors with Easy Solutions for Windows DiscoUsers
- Overcoming Windows Office Activation Roadblocks
- Privacy Measures: Eliminate Email From Logon Window
- Recmaster Pro In-Depth Analysis of the Latest Release
- Silent Speakers? Unveil Audio Steps Immediately
- Spruce Up Your Window's Mail & Schedule With Pics
- Strategies for Revealing Hidden Windows Drives
- Surgical Tweaks to the Android Resource Management System
- Syncing Calendars: IFTTT Meets Microsoft To-Do
- The Ultimate Beginner's Guide to Microsoft Copilot
- Unstuck From ChatGPT Glitches on Mobile? Top Fixes for iPhone Users
- Unveiling the Art of Size Calculation: PowerShell Ways
- Upgrading Old PCs: Less Windows, More Efficiency
- Why Your Samsung Galaxy A54 5G Screen Might be Unresponsive and How to Fix It | Dr.fone
- Win Sound Troubleshooting: Overcoming Silence Hurdles
- Windows 11 Screen Sharing: Disabling PIN During Cast
- Windows Explorer Excellence: The Ultimate Six Strategies for Copying File/Folder Paths
- Title: Banishing Defender Tracings in Windows 10/11 Environments
- Author: David
- Created at : 2024-08-15 23:13:33
- Updated at : 2024-08-16 23:13:33
- Link: https://win11.techidaily.com/banishing-defender-tracings-in-windows-1011-environments/
- License: This work is licensed under CC BY-NC-SA 4.0.