Disable Defender Antivirus service
- Multiple actionsThis page belongs to a category, containing some changes with similar goal.
- Windows onlyThis script improves your privacy on Windows
- Impact: MediumSystem Functionality Loss Risk: Moderate
This action improves privacy with minimal impact when you run the recommended script.
This action improves privacy with some impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- 11 scripts
- 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 category disables the Defender Antivirus service and its related components.
This service is also referred to as Microsoft Defender Antivirus Service 1 2 and Windows Defender Service 2. It is a core component of Microsoft Defender Antivirus, essential for its operation 1 3.
Using these scripts offers two benefits:
- Enhanced Privacy: Limits Microsoft's data collection on your files and system activity.
- Improved Performance: Reduces system resource usage by limiting background processes and scans.
However, disabling these components may reduce your system's security:
- No immediate alerts when malware or viruses are detected.
- Weakened defense against ransomware and other cyber threats.
- Increased vulnerability to emerging security threats.
- Some Windows security features may stop working.
Disabling Microsoft Defender Antivirus may expose your system to malware and other security threats.
- 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.
- Use with Caution
This script is only recommended if you understand its implications.
Some non-critical or features may no longer function correctly after running this script.
This script can be fully reversed to restore changes if something goes wrong.
Sources
- Microsoft Defender Antivirus in Windows Overview - Microsoft Defender for Endpoint. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-antivirus-windows
Archived: https://web.archive.org/web/20240609145624/https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-antivirus-windows?view=o365-worldwide - Microsoft Defender Antivirus on Windows Server - Microsoft Defender for Endpoint. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-antivirus-on-windows-server
Archived: https://web.archive.org/web/20240609150337/https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-antivirus-on-windows-server?view=o365-worldwide - Troubleshoot Microsoft Defender for Endpoint onboarding issues - Microsoft Defender for Endpoint. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-onboarding
Archived: https://web.archive.org/web/20240609145030/https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-onboarding?view=o365-worldwide
Apply Now
Choose one of two ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
- High
- Maximum
High — Advanced Privacy
- For advanced privacy-conscious users
- May affect some features
Read more about High and other protection levels
Maximum — Strongest Possible Privacy
- Military-grade privacy protection
- Major system impact
- Consider having system restore point.
Read more about Maximum and other protection levels
Help
How to apply or restore "Disable Defender Antivirus service" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 6 instructions
- 2
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 3
Keep the file
If warned by your browser, keep the file. - 4
Open
Open the downloaded file. - 5
Exit
Once it's done, press any key to exit the window. - 6
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
- Shows the code
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable Defender Antivirus service" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the category name: Disable Defender Antivirus service
- Check the category by clicking on the checkbox of the category.
Applying High to limit the impact.
- 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.
Explore This Guide
- 11 Privacy settings
Choose what to protect based on your needs:This script already includes these options.
You can review, apply or reverse each option individually.
Click any option to learn more about what it does.
Some settings and commands may require technical knowledge to apply correctly.
Disable Defender Antivirus service (breaks Set-MpPreference cmdlet)
This script disables the Microsoft Defender Antivirus Service and its associated process (MsMpEng.exe). This service is known both as **M...
Disable Defender Antivirus service in Safe Mode
This script disables Defender Antivirus from running in Safe Mode. Safe Mode is also known as Safe Boot. It starts Windows in a lim...
Disable Defender Antivirus service always-on state
This script configures Windows to stop the Defender Antivirus service when antivirus protection is disabled. The **Microsoft Defender Antivirus...
Disable Defender Antivirus service high-priority startup
This script configures Defender Antivirus to start with a lower priority. By default, Windows runs the Defender Antivirus service (also cal...
Disable Defender Antivirus service automatic launch
This script prevents the Defender Antivirus service from starting automatically. By default, Windows may automatically start the Defender Antiv...
Disable Defender Antivirus service active state
This script disables the running state of the Defender Antivirus service. Setting the service to 'not running' prevents activation of any compo...
Disable Defender Antivirus data storage location
This script removes a configuration value that controls where Defender stores its data. This is a configuration related to **Defender Antivirus...
Disable Defender Antivirus service module
This script disables MpSvc.dll. Microsoft refers to MpSvc.dll as the Service Module. It is part of Defender Antivirus service. It m...
Disable Defender Antivirus antimalware engine
This script disables Defender's main virus-scanning component (MpEngine.dll). Microsoft refers to this component as **Microsoft Malware Prote...
Disable Defender Antivirus communication module
This script removes the MpCommu.dll library, disabling its functionality. Microsoft refers to this library as Communication Module. This ...
Disable Defender Antivirus service communication with apps
This script prevents Defender Antivirus from communicating with other applications. The script blocks communication by removing components ...
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 services and drivers
- Disable Defender Antivirus
- Disable Defender
- Privacy over security
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 services and drivers 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.