Temporarily Disable Windows Defender: 4 Easy Ways to do it

There's a dedicated option in Windows Security

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • While it's recommended that you have Windows Defender turned on, users often need to temporarily disable the built-in antivirus.
  • This becomes imperative when Windows Security is preventing a third-party app from running.
  • To disable Windows Defender, run a quick command, modify the Registry, or reconfigure the policies.
how to temporarily disable windows defender

Windows Defender is the built-in antivirus shipped alongside the OS and is a part of the default installation. While the antivirus delivers optimal performance and triggers minimal conflicts, you may often need to disable Windows Defender temporarily.

This is usually the case if you want a reliable third-party antivirus solution to take over or when Windows Security stops an application from running. So, let’s find out how you can temporarily disable Windows Security and the subsequent effects!

What happens if I disable Windows Defender?

When you disable Windows Defender temporarily or permanently, the PC is left unprotected unless another antivirus is installed and running. So, it’s not recommended that you turn off Windows Defender.

If you have to disable Windows Defender, here are a few tips and tricks that will keep the PC safe:

  • Keep Internet activity to a minimum: We often become victims of phishing through emails, and the same medium is used to infect the PC with malware. So, it’s recommended that you don’t click on links in emails or even those on unreliable websites.
  • Don’t download files or apps: Another preventive measure you can undertake to ensure security after disabling Windows Defender is not to download any files or apps. The ones on the Microsoft Store are safe, but be wary of others.
  • Get another antivirus: When Windows Security conflicts with a program or process, installing another antivirus is best instead of disabling the former altogether.

How do I temporarily disable Windows Defender?

Tip icon Tip
To make some of the changes listed below, you will have to disable Tamper Protection in Windows. Once done, proceed with the methods.

1. Via Windows Security

  1. Press Windows + S to open Search, type Windows Security in the text field, and click on the relevant result.
  2. Click on Virus & threat protection.virus & threat protection
  3. Now, click on Manage settings under Virus & threat protection settings.
  4. Disable the toggle under Real-time protection.turn off to temporarily disable windows defender
  5. Click Yes in the prompt to confirm the change.

That’s it! You can temporarily disable Windows Defender in all iterations of the OS via the built-in settings. And when you want to enable it, simply turn on the toggle for Real-time protection.

2. Through Command Prompt

  1. Press Windows + R to open Run, type powershell, and hit Ctrl + Shift + Enter.
  2. Click Yes in the UAC prompt.
  3. Now, paste the following command and hit Enter to disable Windows Defender:Set-MpPreference -DisableRealtimeMonitoring $truecommand
  4. To re-enable Windows Defender, run the following command:Set-MpPreference -DisableRealtimeMonitoring $false

Another easy way to temporarily disable Windows Defender is using a PowerShell command. Remember, it doesn’t disable the antivirus altogether, but just Real-time monitoring.

3. Using the Registry Editor

  1. Press Windows + R to open Run, type regedit in the text field, and hit Enter.registry
  2. Click Yes in the prompt that appears.
  3. Now, paste the following path in the address bar and hit Enter: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Defender
  4. Right-click on the empty portion, hover the cursor over New, select DWORD (32-bit) value, and name it DisableAntiSpyware.dword
  5. Next, double-click the DWORD, set its Value data to 1, and click OK to save the changes.change value data to temporarily disable windows defender
  6. Finally, restart the computer for the changes to apply.
  7. To re-enable Windows Defender, change the Value data to 0 or delete the DisableAntiSpyware DWORD.

For those who want to disable Windows Defender using the Registry temporarily, there’s an easy method out there. Add and enable the DisableAntiSpyware DWORD, and you are good to go!

4. From Local Group Policy Editor

Tip icon Tip
The Local Group Policy Editor doesn’t come preinstalled on the Home edition of Windows. So, if you can’t find it, verify the Windows edition. Though, you can manually install gpedit.msc in no time.
  1. Press Windows + R to open Run, type gpedit.msc in the text field, and click OK.
  2. Under Computer Configuration, expand Administrative Templates, select Windows Components, and then choose Windows Defender Antivirus.
  3. Now, double-click the Turn off Microsoft Defender Antivirus policy on the right.policy
  4. Select Enabled and then click on Apply and OK to save the changes.policy to temporarily disable windows defender
  5. Restart the computer for the changes to come into effect.
  6. To turn on Windows Defender, set the Turn off Microsoft Defender Antivirus policy as Not configured or Disabled.

That’s it! If you prefer changing the Local Group Policy Editor, temporarily disable Windows Defender.

In case you are not able to disable real-time protection on Windows Defender and want to know the reasons, read this guide. And find out what to do if Tamper Protection is not turning on.

Also, while you can disable Windows Defender in Windows 11 via AutoRuns, we recommend against it since several simpler methods are available.

Before you leave, find out the best security settings in Windows for a secure OS experience.

For any queries or to share what prompted you to disable Windows Defender, comment below.

More about the topics: antivirus, Microsoft Windows Defender