How to Turn Off Windows Defender Antivirus Using PowerShell

Windows Defender Antivirus

Introduction

Windows Defender Antivirus is a built-in security feature of Windows 10 that helps protect your PC from viruses, malware, and other harmful software. However, there are times when you may need to temporarily turn off Windows Defender Antivirus, such as when you need to install a third-party antivirus program or when you need to troubleshoot a problem. In this article, we will show you how to turn off Windows Defender Antivirus using PowerShell.

Why Use PowerShell?

PowerShell is a powerful command-line tool that allows you to automate tasks and manage configurations. By using PowerShell, you can easily turn off Windows Defender Antivirus on your PC without having to go through the cumbersome process of navigating through the Windows Security app.

Powershell

Step-by-Step Guide

Here???s how to turn off Windows Defender Antivirus using PowerShell:

Step 1: Open PowerShell as an Administrator

Click on the Start menu and type ???PowerShell.??? Right-click on the Windows PowerShell app and select ???Run as administrator.???

Powershell As An Administrator

Step 2: Check Windows Defender Antivirus Status

Type ???Get-MpPreference??? in the PowerShell window and press Enter. This command will display the current Windows Defender Antivirus settings on your PC.

Get-Mppreference

Step 3: Turn Off Windows Defender Antivirus

Type ???Set-MpPreference -DisableRealtimeMonitoring $true??? in the PowerShell window and press Enter. This command will turn off Windows Defender Antivirus on your PC.

Set-Mppreference -Disablerealtimemonitoring $True

Step 4: Verify Windows Defender Antivirus Status

Type ???Get-MpPreference??? in the PowerShell window and press Enter. This command will display the current Windows Defender Antivirus settings on your PC. Check to make sure that the ???DisableRealtimeMonitoring??? parameter is set to ???True.???

Get-Mppreference

How to Turn On Windows Defender Antivirus Using PowerShell

If you want to turn on Windows Defender Antivirus again, simply follow these steps:

Step 1: Open PowerShell as an Administrator

Click on the Start menu and type ???PowerShell.??? Right-click on the Windows PowerShell app and select ???Run as administrator.???

Step 2: Turn On Windows Defender Antivirus

Type ???Set-MpPreference -DisableRealtimeMonitoring $false??? in the PowerShell window and press Enter. This command will turn on Windows Defender Antivirus on your PC.

Step 3: Verify Windows Defender Antivirus Status

Type ???Get-MpPreference??? in the PowerShell window and press Enter. This command will display the current Windows Defender Antivirus settings on your PC. Check to make sure that the ???DisableRealtimeMonitoring??? parameter is set to ???False.???

Conclusion

Turning off Windows Defender Antivirus temporarily can be useful in certain situations, and using PowerShell is a quick and easy way to do it. Just remember to turn it back on again once you???re done with the task at hand. We hope this article has been helpful in showing you how to use PowerShell to turn off Windows Defender Antivirus. Stay safe and secure!

Related video of How to Turn Off Windows Defender Antivirus Using PowerShell