TechBuzzPro

Disable Automatic Removal of Scan History Windows 10

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can disable the automatic removal of scan history items in Windows 10 by adjusting settings in Windows Security, specifically within the Virus & threat protection section. This prevents Windows from automatically clearing past antivirus scan records, which can be useful for troubleshooting, auditing, or verifying previous scans. This guide walks you through the exact steps using built-in tools only—no third-party software required. Note that menu labels may vary slightly depending on your Windows 10 version, device manufacturer, or region, but the core navigation remains consistent.

What You'll Need

  • A Windows 10 PC with administrator access
  • Active internet connection (recommended, to ensure system is up to date)
  • Windows Security enabled (default antivirus on most Windows 10 systems)

Step-by-Step

  1. Click the Start menu and select Settings (the gear icon). Alternatively, press Windows + I on your keyboard to open Settings directly.
  2. In the Settings window, click Update & Security. This section manages system updates, recovery, and security features.
  3. From the left-hand menu, select Windows Security. This opens the main security dashboard, including virus protection, firewall, and device performance monitoring.
  4. In the Windows Security window, click Virus & threat protection. This section displays your current antivirus status, scan options, and protection history.
  5. Under the Current threats section, click Protection history. This opens a log of all recent scans, detected items, and actions taken by Windows Defender (now part of Windows Security).
  6. At the top-right corner of the Protection history window, click the Settings (gear) icon. This opens a small menu with options related to how scan data is managed.
  7. Locate the toggle labeled Clear history automatically (or similar wording such as Automatically remove old protection history). This setting controls whether Windows removes scan logs after a period of time.
  8. Toggle this setting to Off. When disabled, Windows will no longer delete your scan history items automatically, and all past scans will remain visible in the log.
  9. Close the Settings window and the Protection history tab. The change takes effect immediately—no restart is required.
  10. To verify the setting is active, return to Protection history after a few days and confirm that older scan entries are still visible.

Common Mistakes

One common mistake is confusing quarantined items with scan history. Disabling automatic history removal does not prevent Windows from deleting or cleaning infected files—it only preserves the log of what was scanned and when. Another error is looking for this setting in the main Windows Security dashboard instead of within the Protection history tab’s Settings menu. Some users also assume this setting applies system-wide immediately, but if the PC was offline during the change, sync delays might temporarily affect visibility. Finally, toggling the setting back on later will not restore previously deleted history—only future logs will be preserved once the toggle is off.

Tips

Regularly review your protection history to monitor for repeated threats or suspicious activity. Export or screenshot important scan logs if long-term archival is needed, since Windows does not offer a built-in export feature for this data. If you manage multiple devices, apply this setting on each one individually, as it does not sync via Microsoft account. Consider combining this with full system scans scheduled weekly to maintain consistent logs. For advanced users, PowerShell cmdlets like Get-MpThreatDetection can retrieve scan data programmatically, though this requires scripting knowledge and elevated permissions.

Troubleshooting

If the Clear history automatically toggle does not appear, ensure your Windows 10 is updated to at least version 1909 or later—older builds may not include this option. Restart Windows Security or the PC and check again. If the issue persists, run Windows Security > Open Windows Security and verify no third-party antivirus is interfering; some security suites disable or hide Windows Defender features. Reset Windows Security via Settings > Apps > Apps & features > Windows Security > Advanced options > Reset (note: this does not delete personal files but may reset other security preferences). If the setting is grayed out, group policies or organizational management tools (common in workplaces) may be enforcing automatic cleanup—contact your system administrator. As a last resort, use the Event Viewer (eventvwr.msc) to check Microsoft-Windows-Windows Defender/Operational logs for manual audit trails.

Frequently Asked Questions

Does disabling automatic removal affect system performance?

No, keeping scan history has negligible impact on performance. Logs are small and stored locally.

Can I recover scan history already deleted by Windows?

No, once removed, scan history cannot be recovered through Windows Security. Always disable the setting before logs are purged.

Is this setting available on Windows 11?

Yes, a similar option exists in Windows 11 under the same path, though menu layout may differ slightly.

Does this prevent Windows from removing threats?

No, this only affects the log retention, not the detection or removal of malware during scans.

Can I set a custom retention period instead of turning it off?

No, Windows does not offer a customizable time frame. You can only choose to keep logs indefinitely or allow automatic removal.

Will this setting survive Windows updates?

Yes, the setting is preserved across updates, but it’s wise to verify after major system changes.