Disable Defender Antivirus scheduled scan task
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Windows onlyThis script improves your privacy on Windows
- Impact: HighSystem Functionality 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.
- 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 scheduled scan scheduled task.
Microsoft refers to this task as:
This task is a component of Defender Antivirus 1 2 6. It performs automatic regular antivirus scans 1 6.
Disabling this task may enhance your privacy by giving you more control over when and how often your system is scanned. It may also improve system performance by reducing background processes.
However, regular scans are a key part of maintaining system security. Disabling this task means your computer will not automatically perform scheduled antivirus scans, which may leave your system more vulnerable to malware if you don't manually run scans regularly.
This action may leave your computer more vulnerable to malware if you don't follow good security practices or manually run antivirus scans regularly.
Technical Details
This task executes the following command:
%PROGRAMFILES\Windows Defender\MpCmdRun.exe Scan -ScheduleJob -ScanTrigger 55
2 3 4.
The MpCmdRun.exe
is a command-line tool used for various Defender Antivirus functions 5.
Overview of default task statuses
\Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan
2 3 4 6:
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 allows you to restore the default system security.
Sources
- Stay protected with Windows Security - Microsoft Support. support.microsoft.com. (2023).
Original: https://support.microsoft.com/en-us/windows/stay-protected-with-windows-security-2ae0363d-0ada-c064-8b56-6a39afb6a963
Archived: https://web.archive.org/web/20231103171802/https://support.microsoft.com/en-us/windows/stay-protected-with-windows-security-2ae0363d-0ada-c064-8b56-6a39afb6a963 - 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 - Malware scan of MpCmdRun.exe (Microsoft Malware Protection) bb31a13a0eeecfab745d4aa221ee222d5021e9d8 - herdProtect. herdprotect.com. (2023).
Original: https://www.herdprotect.com/mpcmdrun.exe-bb31a13a0eeecfab745d4aa221ee222d5021e9d8.aspx
Archived: https://web.archive.org/web/20231103171350/https://www.herdprotect.com/mpcmdrun.exe-bb31a13a0eeecfab745d4aa221ee222d5021e9d8.aspx - 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 - Schedule a scan in Microsoft Defender Antivirus - Microsoft Support. support.microsoft.com. (2023).
Original: https://support.microsoft.com/en-us/windows/schedule-a-scan-in-microsoft-defender-antivirus-54b64e9c-880a-c6b6-2416-0eb330ed5d2d
Archived: https://web.archive.org/web/20231103171744/https://support.microsoft.com/en-us/windows/schedule-a-scan-in-microsoft-defender-antivirus-54b64e9c-880a-c6b6-2416-0eb330ed5d2d - windows.fyicenter.com. (2023).
Original: http://windows.fyicenter.com/4441_Windows_Defender_Scheduled_Scan_Scheduled_Task_on_Windows_8.html
Archived: https://web.archive.org/web/20231103171825/http://windows.fyicenter.com/4441_Windows_Defender_Scheduled_Scan_Scheduled_Task_on_Windows_8.html
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 scheduled scan 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
Help
How to apply or restore "Disable Defender Antivirus scheduled scan task" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable Defender Antivirus scheduled scan task
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Disable scheduled task(s): `\Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan`
PowerShell -ExecutionPolicy Unrestricted -Command "$taskPathPattern='\Microsoft\Windows\Windows Defender\'; $taskNamePattern='Windows Defender Scheduled Scan'; Write-Output "^""Disabling tasks matching pattern `"^""$taskNamePattern`"^""."^""; $tasks = @(Get-ScheduledTask -TaskPath $taskPathPattern -TaskName $taskNamePattern -ErrorAction Ignore); if (-Not $tasks) { Write-Output "^""Skipping, no tasks matching pattern `"^""$taskNamePattern`"^"" found, no action needed."^""; exit 0; }; $operationFailed = $false; foreach ($task in $tasks) { $taskName = $task.TaskName; if ($task.State -eq [Microsoft.PowerShell.Cmdletization.GeneratedTypes.ScheduledTask.StateEnum]::Disabled) { Write-Output "^""Skipping, task `"^""$taskName`"^"" is already disabled, no action needed."^""; continue; }; try { $task | Disable-ScheduledTask -ErrorAction Stop | Out-Null; Write-Output "^""Successfully disabled task `"^""$taskName`"^""."^""; } catch { Write-Error "^""Failed to disable task `"^""$taskName`"^"": $($_.Exception.Message)"^""; $operationFailed = $true; }; }; if ($operationFailed) { Write-Output 'Failed to disable some tasks. Check error messages above.'; exit 1; }"
Ijo6IFJlc3RvcmUgc2NoZWR1bGVkIHRhc2socykgdG8gZGVmYXVsdCBzdGF0ZTogYFxcTWljcm9zb2Z0XFxXaW5kb3dzXFxXaW5kb3dzIERlZmVuZGVyXFxXaW5kb3dzIERlZmVuZGVyIFNjaGVkdWxlZCBTY2FuYFxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcIiR0YXNrUGF0aFBhdHRlcm49J1xcTWljcm9zb2Z0XFxXaW5kb3dzXFxXaW5kb3dzIERlZmVuZGVyXFwnOyAkdGFza05hbWVQYXR0ZXJuPSdXaW5kb3dzIERlZmVuZGVyIFNjaGVkdWxlZCBTY2FuJzsgJHNob3VsZERpc2FibGUgPSAgJGZhbHNlOyBXcml0ZS1PdXRwdXQgXCJeXCJcIkVuYWJsaW5nIHRhc2tzIG1hdGNoaW5nIHBhdHRlcm4gYFwiXlwiXCIkdGFza05hbWVQYXR0ZXJuYFwiXlwiXCIuXCJeXCJcIjsgJHRhc2tzID0gQChHZXQtU2NoZWR1bGVkVGFzayAtVGFza1BhdGggJHRhc2tQYXRoUGF0dGVybiAtVGFza05hbWUgJHRhc2tOYW1lUGF0dGVybiAtRXJyb3JBY3Rpb24gSWdub3JlKTsgaWYgKC1Ob3QgJHRhc2tzKSB7IFdyaXRlLVdhcm5pbmcgKCBcIl5cIlwiTWlzc2luZyB0YXNrOiBDYW5ub3QgZW5hYmxlLCBubyB0YXNrcyBtYXRjaGluZyBwYXR0ZXJuIGBcIl5cIlwiJHRhc2tOYW1lUGF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CI7IGNvbnRpbnVlOyB9OyB9OyB0cnkgeyBpZiAoJHNob3VsZERpc2FibGUpIHsgJHRhc2sgfCBEaXNhYmxlLVNjaGVkdWxlZFRhc2sgLUVycm9yQWN0aW9uIFN0b3AgfCBPdXQtTnVsbDsgV3JpdGUtT3V0cHV0IFwiXlwiXCJTdWNjZXNzZnVsbHkgZGlzYWJsZWQgdGFzayBgXCJeXCJcIiR0YXNrTmFtZWBcIl5cIlwiLlwiXlwiXCI7IH0gZWxzZSB7ICR0YXNrIHwgRW5hYmxlLVNjaGVkdWxlZFRhc2sgLUVycm9yQWN0aW9uIFN0b3AgfCBPdXQtTnVsbDsgV3JpdGUtT3V0cHV0IFwiXlwiXCJTdWNjZXNzZnVsbHkgZW5hYmxlZCB0YXNrIGBcIl5cIlwiJHRhc2tOYW1lYFwiXlwiXCIuXCJeXCJcIjsgfTsgfSBjYXRjaCB7IFdyaXRlLUVycm9yIFwiXlwiXCJGYWlsZWQgdG8gcmVzdG9yZSB0YXNrIGBcIl5cIlwiJHRhc2tOYW1lYFwiXlwiXCI6ICQoJF8uRXhjZXB0aW9uLk1lc3NhZ2UpXCJeXCJcIjsgJG9wZXJhdGlvbkZhaWxlZCA9ICR0cnVlOyB9OyB9OyBpZiAoJG9wZXJhdGlvbkZhaWxlZCkgeyBXcml0ZS1PdXRwdXQgJ0ZhaWxlZCB0byByZXN0b3JlIHNvbWUgdGFza3MuIENoZWNrIGVycm9yIG1lc3NhZ2VzIGFib3ZlLic7IGV4aXQgMTsgfVwiIg==
Help
How to apply or restore "Disable Defender Antivirus scheduled scan task" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable Defender Antivirus scheduled tasks
- Disable Defender Antivirus
- Disable Defender
- Privacy over security
This category contains scripts to disable maintenance tasks of Defender Antivirus. Scheduled tasks are automated operations that Windows runs at specific...
This category provides scripts to disable Defender Antivirus. Defender Antivirus, integrated into Windows, provides protection against viruses, ransomwar...
This category offers scripts to disable Windows security components related to Defender. Defender is also referred to as Microsoft Defender or Windows De...
Same Goal
Other guides in Disable Defender Antivirus scheduled tasks See settings that are in the same category as this guide.Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
- Audited and verified using automated security tests
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
- Audited and verified using third-party security software
History
We continually monitor our guides, their impact and other potential privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.