Disable Defender Antivirus cache maintenance task
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: High
System Functionality / Data Loss Risk: High
This action improves privacy with high impact when you run the recommended script.
- Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script disables the Defender Antivirus cache maintenance task scheduled task.
Microsoft refers to this task as:
This task is a Defender Antivirus component 1 2. The task is scheduled to periodically maintain the cache used by Defender Antivirus 1.
Cache maintenance involves managing temporary files that Microsoft Defender is either scanning or has quarantined 5. Disabling this task prevents the system from automatically clearing the Defender cache 5.
Disabling this task may improve your privacy by preventing automatic removal of quarantined files or cached data without your explicit action. For example, when Defender mistakenly flag privacy scripts (such as privacy.sexy scripts 3) as a threat and quarantines it, the cache maintenance task may remove this file without your knowledge. By disabling the task, you prevent automatic deletion, giving you the opportunity to recover and review such files. This is useful for users who handle sensitive data and want full control over file management on their system.
Disabling this task is reported to optimize system boot speed 4, but it may lead to increased storage use by temporary files.
Disabling this task may lead to a buildup of unnecessary files, potentially affecting system performance over time.
Technical Details
It runs the command %PROGRAMFILES%\Windows Defender\MpCmdRun.exe -IdleTask -TaskName WdCacheMaintenance
1 2.
The MpCmdRun.exe
is a command-line tool used to perform various Defender Antivirus functions 6.
Overview of default task statuses
\Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance
1 2 4:
OS Version | Default status |
---|---|
Windows 10 22H2 | 🟢 Ready |
Windows 11 22H2 | 🟢 Ready |
- Not Advised
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
Consider creating a system restore point before doing any changes.
- Security Trade-off
This action prioritizes privacy over certain security features. It's not recommended and should only be used by advanced users after understanding its implications.
Increased Privacy
Enhanced privacy through reduced data collection and trackingDecreased Security
Some security features will be disabled or limitedThis script can be reversed, this action allows you to can restore the system security.
Sources
- nickel-x64/WinSxS/Manifests/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431.manifest at b3f8c9549e49f2a92b401b3809b210d5f78190ba · privacysexy-forks/nickel-x64. github.com. (2024).
Original: https://github.com/privacysexy-forks/nickel-x64/blob/b3f8c9549e49f2a92b401b3809b210d5f78190ba/WinSxS/Manifests/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431.manifest
Archived: https://web.archive.org/web/20240829205326/https://github.com/privacysexy-forks/nickel-x64/blob/b3f8c9549e49f2a92b401b3809b210d5f78190ba/WinSxS/Manifests/amd64_windows-defender-service_31bf3856ad364e35_10.0.22621.1_none_273bee824a8ac431.manifest - Very slow boot times - Provisioning Server for Datacenters - Discussions. discussions.citrix.com. (2023).
Original: https://discussions.citrix.com/topic/417772-very-slow-boot-times
Archived: https://web.archive.org/web/20231102111645/https://discussions.citrix.com/topic/417772-very-slow-boot-times/ - win10 windows defender schedulable tasks - what does each do? - Microsoft Community. answers.microsoft.com. (2023).
Original: https://answers.microsoft.com/en-us/windows/forum/all/win10-windows-defender-schedulable-tasks-what-does/968ddd6b-3a71-46ce-bc80-d2af11f7e1ae
Archived: https://web.archive.org/web/20231102111205/https://answers.microsoft.com/en-us/windows/forum/all/win10-windows-defender-schedulable-tasks-what-does/968ddd6b-3a71-46ce-bc80-d2af11f7e1ae - Use the command line to manage Microsoft Defender Antivirus. Microsoft Learn. learn.microsoft.com. (2023).
Original: https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/command-line-arguments-microsoft-defender-antivirus
Archived: https://web.archive.org/web/20231102111626/https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/command-line-arguments-microsoft-defender-antivirus?view=o365-worldwide - windows.fyicenter.com. (2023).
Original: http://windows.fyicenter.com/4439_Windows_Defender_Cache_Maintenance_Scheduled_Task_on_Windows_8.html
Archived: https://web.archive.org/web/20231102111550/http://windows.fyicenter.com/4439_Windows_Defender_Cache_Maintenance_Scheduled_Task_on_Windows_8.html - github.com. (2024).
Original: https://github.com/undergroundwires/privacy.sexy/issues/421
Archived: https://archive.ph/2024.10.28-143455/https://github.com/undergroundwires/privacy.sexy/issues/421
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable Defender Antivirus cache maintenance task" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage