Base Read

How to disable real-time protection on Microsoft Defender Antivirus

You can temporarily disable Microsoft Defender protection on your device, and in this guide, we will show you two ways to accomplish this task.

0 33

How to disable real-time protection on Microsoft Defender Antivirus?


You can temporarily disable Microsoft Defender protection on your device, and in this guide, we will show you two ways to accomplish this task.


Windows 10 comes with Microsoft Defender Antivirus, which protects your devices and files from harmful viruses, ransomware, spyware, rootkits, and other forms of malware and hackers.

Although it provides strong protection, anti-malware software can sometimes interfere with certain tasks, even if they are safe.

For example, the feature may prevent a specific file you are trying to open and you know that the file is safe, or it may prevent the installation of an application you know comes from a trusted source.

Defender Win 10

If you must perform tasks blocked by the default antivirus program, on Windows 10, there are at least two ways to temporarily disable Microsoft Defender protection using Windows Security and PowerShell.

In this guide, we will walk you through the steps to temporarily disable the real-time protection of Microsoft Defender Antivirus.

  • How to disable Microsoft Defender protection using Windows Security?
  • How to disable Microsoft Defender protection using PowerShell?

How to disable Microsoft Defender protection using Windows Security?

To disable real-time protection on Microsoft Defender, use the following steps:

  • Open to begin.
  • Search for Windows Security and click on the top result to open the application.
  • Click Virus and threat protection. Under the “Virus and Threat Protection Settings” section,
  • Click the “Manage Settings” option.
  • Turn off the real-time protection toggle switch.

Window Defender Win 10

After completing these steps, the Microsoft Defender antivirus protection will be temporarily disabled, allowing you to complete a specific task, otherwise, the task will be blocked by the antivirus.

If you want to re-enable the protection, you can restart the computer or use the same instructions outlined above, but in step 5, make sure to turn on the real-time protection toggle switch.

If you are trying to permanently disable the Windows 10 default antivirus, you can use the following instructions.

How to disable Microsoft Defender protection using PowerShell?

Microsoft Defender Antivirus comes with a command to temporarily disable real-time protection, but the “Tamper Prevention” feature prevents any attempts to modify antivirus settings from outside of Windows security.

This means that if you want to turn off this feature using PowerShell, you first need to disable the anti-tamper feature on the Windows Security>Virus and Threat Protection>Virus and Threat Protection settings.

To disable Windows 10 antivirus real-time protection using PowerShell, use the following steps:

  • Open to begin.
  • Search for PowerShell, right-click on the top result, and select the “Run as administrator” option.
  • Type the following command to disable Microsoft Defender antivirus real-time protection, and then press Enter:

Set-MpPreference -DisableRealtimeMonitoring $true

After completing these steps, protection will be disabled until the next time you restart the device or run a command to enable real-time protection:

Set-MpPreference -DisableRealtimeMonitoring $false

You can also use PowerShell commands to manage almost any aspect of Microsoft Defender Antivirus. You can check this guide for more information.

Read this article for free
This article is part of our archive of over 1,000 stories and is only available to subscribers. To get a preview of the work we do, you can enter your email to access the full article.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.