Disable Windows Defender Antivirus Service PowerShell

Windows Defender

Windows Defender is a built-in antivirus software that comes with Windows 10. It provides real-time protection against viruses, malware, and other malicious software. However, there are times when you may need to disable Windows Defender temporarily or permanently. In this article, we'll show you how to disable Windows Defender Antivirus Service using PowerShell.

Why Disable Windows Defender Antivirus Service?

Windows Defender Protection

There are several reasons why you may want to disable Windows Defender Antivirus Service. Here are some of the most common reasons:

  • You want to install a third-party antivirus software that conflicts with Windows Defender.
  • Windows Defender is consuming too much system resources and you want to free up some space.
  • You want to troubleshoot a problem with Windows Defender and need to disable it temporarily.

How to Disable Windows Defender Antivirus Service using PowerShell?

Powershell

PowerShell is a powerful command-line tool that allows you to automate tasks and perform administrative tasks on Windows. Here's how to disable Windows Defender Antivirus Service using PowerShell:

  1. Open PowerShell as an administrator.
  2. Type the following command: Set-MpPreference -DisableRealtimeMonitoring $true
  3. Press Enter to execute the command.

This command disables real-time monitoring of Windows Defender Antivirus Service. However, it does not disable Windows Defender completely.

How to Disable Windows Defender Completely using PowerShell?

Windows Defender Off

If you want to disable Windows Defender completely, you can use the following command:

  1. Open PowerShell as an administrator.
  2. Type the following command: Set-MpPreference -DisableRealtimeMonitoring $true
  3. Press Enter to execute the command.
  4. Type the following command: Set-MpPreference -DisableBehaviorMonitoring $true
  5. Press Enter to execute the command.
  6. Type the following command: Set-MpPreference -DisableBlockAtFirstSeen $true
  7. Press Enter to execute the command.

These commands disable real-time monitoring, behavior monitoring, and block at first seen features of Windows Defender Antivirus Service.

How to Enable Windows Defender Antivirus Service using PowerShell?

Windows Defender On

If you want to enable Windows Defender Antivirus Service again, you can use the following command:

  1. Open PowerShell as an administrator.
  2. Type the following command: Set-MpPreference -DisableRealtimeMonitoring $false
  3. Press Enter to execute the command.
  4. Type the following command: Set-MpPreference -DisableBehaviorMonitoring $false
  5. Press Enter to execute the command.
  6. Type the following command: Set-MpPreference -DisableBlockAtFirstSeen $false
  7. Press Enter to execute the command.

These commands enable real-time monitoring, behavior monitoring, and block at first seen features of Windows Defender Antivirus Service.

Conclusion

In this article, we showed you how to disable Windows Defender Antivirus Service using PowerShell. You can disable real-time monitoring or disable Windows Defender completely. However, we recommend that you use a third-party antivirus software to protect your PC from viruses and malware.

Related video of Disable Windows Defender Antivirus Service PowerShell