How to Disable the Microsoft Defender Antivirus Service

  • Guides
  • 4 min read

If you’re wondering how to disable the Microsoft Defender Antivirus Service, you’re not alone. Many users find this built-in Windows security feature helpful, but others need to turn it off – whether for troubleshooting, performance reasons, or compatibility with third-party software. This guide will walk you through the steps to safely disable Microsoft Defender, ensuring your system runs smoothly without unnecessary interruptions.

Why Would You Disable Microsoft Defender Antivirus?

Microsoft Defender Antivirus is a robust security solution for many. But there are valid reasons you might want to disable it:

  1. Third-party antivirus installation: Some antivirus programs require you to turn off Microsoft Defender to prevent conflicts.
  2. System performance: On older machines, Microsoft Defender can sometimes cause noticeable slowdowns.
  3. Custom needs: Developers, gamers, or IT professionals might need to disable it temporarily for specific tasks.

Regardless of your reasons, here’s how to do it step by step.


Step 1: Temporarily Turn Off Real-Time Protection

The quickest way to disable Microsoft Defender is through the Windows Security settings. Here’s how:

  1. Press Windows + I to open the Settings app.
  2. Navigate to Privacy & Security → Windows Security.
  3. Click Virus & threat protection.
  4. Under Virus & threat protection settings, select Manage settings.
  5. Toggle Real-time protection to Off.

This method disables Microsoft Defender temporarily. It will reactivate automatically after a system restart. Perfect for one-time tasks, but not permanent.

Step 2: Disable Microsoft Defender Antivirus Permanently via Group Policy

For a long-term solution, you’ll need to use the Group Policy Editor (available only in Windows Pro and Enterprise editions):

  1. Press Windows + R, type gpedit.msc, and hit Enter.
  2. Navigate to the following path:
    Computer Configuration Administrative Templates Windows Components Microsoft Defender Antivirus.
  3. Locate Turn off Microsoft Defender Antivirus on the right panel.
  4. Double-click it, select Enabled, and click OK.
  5. Restart your computer to apply the changes.

Note: Group Policy changes are powerful. Use this method only if you’re sure about the risks

Step 3: Disable Microsoft Defender Using Registry Editor

For Windows Home users who don’t have access to Group Policy Editor, the Registry Editor is your go-to:

  1. Press Windows + R, type regedit, and press Enter.
  2. Navigate to this path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
  3. Right-click in the right pane, select New → DWORD (32-bit) Value, and name it DisableAntiSpyware.
  4. Double-click the new entry, set the value to 1, and click OK.
  5. Restart your computer.

Caution: Modifying the registry can be risky. Always back up your registry before making changes.

Step 4: Turn Off Microsoft Defender via PowerShell

For tech-savvy users, PowerShell provides a fast and efficient way to disable Defender:

  1. Open PowerShell as Administrator (search for it in the Start menu, then right-click and choose Run as Administrator).
  2. Enter the following command:

Set-MpPreference -DisableRealtimeMonitoring $true

This disables real-time protection. If you need a permanent solution, combine it with the Group Policy or Registry methods above.

Common Issues When Disabling Microsoft Defender

Disabling Microsoft Defender might come with a few hiccups. Here’s what to watch out for:

  1. Windows keeps turning it back on: This happens because Microsoft Defender is designed to protect your system. Use the permanent methods outlined above to prevent this.
  2. Error messages: Ensure you have administrative privileges before making changes.
  3. System vulnerabilities: Without an active antivirus, your system is more susceptible to malware and cyber threats. Install a trusted third-party antivirus to stay protected.

Re-Enabling Microsoft Defender

If you ever want to re-enable Microsoft Defender, simply reverse the steps. For example, delete the DisableAntiSpyware key in the Registry Editor or set the Group Policy setting to Not Configured. Remember, keeping your system secure should always be a priority.


Disabling Microsoft Defender Antivirus isn’t something to take lightly. While it can be a lifesaver in specific scenarios, it’s crucial to weigh the risks and benefits. Always ensure your system has some form of protection, even if it’s not Microsoft Defender.

With these straightforward methods, you now have the power to disable Microsoft Defender confidently. Whether for temporary troubleshooting or permanent adjustments, you’re in control.

Frequently Asked Questions

Can I disable Microsoft Defender permanently?

Yes, you can. Using the Group Policy Editor or Registry Editor allows you to disable Microsoft Defender permanently. However, always ensure another antivirus solution is in place.

Does disabling Microsoft Defender make my system vulnerable?

Disabling Microsoft Defender without an alternative antivirus program leaves your system unprotected. Install a reputable antivirus program if you disable Defender.

Is it safe to use third-party antivirus programs?

Yes, as long as you choose a trusted and well-known antivirus program. Some options include Norton, McAfee, and Avast.

Enjoyed the reading?

Subscribe to our fresh artiles, product updates and news