How to disable Windows Defender permanently?
Jul 07, 2025 am 01:23 AMThere are four ways to turn off Windows Defender, which are suitable for different scenarios. 1. Use Group Policy Editor (Pro version and above only): Set "Switch off Microsoft Defender Antivirus" through gpedit.msc to be enabled and restarted; 2. Modify the registry (all versions): Create a DisableAntiSpyware value of 1 in the specified path and restart; 3. Use the PowerShell command to temporarily turn off real-time monitoring; 4. Install third-party antivirus software to automatically take over the protection. There are precautions for each method, such as system version restrictions, operation risks and safety suggestions, etc. Be sure to operate with caution to ensure system safety.
Windows Defender is a security protection component that comes with Windows systems and is a useful tool for most users. But if you are using a third-party antivirus software, or if you have special needs and want to completely close it, you can actually do it. However, it should be noted that permanently closing Windows Defender is not an operation supported by the system by default . There are some methods to bypass the restrictions.

The following are some feasible methods for reference for people in different usage scenarios.

1. Use Group Policy Editor (for Windows with Pro and above)
This is the most stable and recommended method, suitable for users with certain operating experience.
- Press
Win R
and entergpedit.msc
to open the Group Policy Editor. - Expand:
計(jì)算機(jī)配置
→管理模板
→Windows 組件
→Microsoft Defender 防病毒
. - Find "Close Microsoft Defender Antivirus" on the right and double-click to open it.
- Select Enabled and click OK.
- After shutting down, restart the computer to enable the settings.
Note: This method is not available on Home Windows because Home Edition does not have Group Policy functionality.
![]()
2. Use Registry Modification (Applicable to all versions of Windows)
If you are using the home version of Windows, you can disable it by modifying the registry.
- Press
Win R
and enterregedit
to open the Registry Editor. - Positioning path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
- If there is no
DisableAntiSpyware
item, right-click to create a new DWORD (32-bit) value, name itDisableAntiSpyware
, and set the value to1
. - Save and restart the computer to take effect.
There are certain risks in modifying the registry. It is recommended to back up the registry in advance or create a restore point.
3. Temporarily close using PowerShell or the command line
If you just want to temporarily disable Windows Defender, for example, test whether a program has been falsely positive, you can use this command:
Set-MpPreference -DisableRealtimeMonitoring $true
Real-time protection will be turned off after running, but the system will still retain other functions. If you want to restore, just change $true
to $false
.
4. Install third-party antivirus software to automatically take over
This is also the official recommendation of Microsoft. When you install mainstream antivirus software such as Bitdefender, Kaspersky, Norton, Windows Defender will usually automatically enter "passive mode", which means you no longer actively scan and remind.
But be aware of:
- Ensure that third-party software remains updated;
- Do not run multiple active protection software at the same time, as it is prone to conflict;
- If the antivirus software is uninstalled, Defender may be re-enabled.
Basically these are the methods. Although it can be turned off, it is recommended to do so only if necessary. After all, it is better to have one more layer than to have one less layer of safety protection.
The above is the detailed content of How to disable Windows Defender permanently?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

HP devices usually come with security software pre-installed, and many people wonder how to disable HPWolfSecurity on Windows 11. The reason for this is that this software can cause certain problems and conflict with other applications, so today we will show you how to disable it. Is HPWolfSecurity bloatware? This is a legitimate application from HP, but it often comes pre-installed and causes performance issues and conflicts with other security software, which is why many people consider it bloatware. How to disable HPWolfSecurity on Windows 11? 1. Use the system tray icon to find HPWolfSecurity in the system tray

Taskbar thumbnails can be fun, but they can also be distracting or annoying. Considering how often you hover over this area, you may have inadvertently closed important windows a few times. Another disadvantage is that it uses more system resources, so if you've been looking for a way to be more resource efficient, we'll show you how to disable it. However, if your hardware specs can handle it and you like the preview, you can enable it. How to enable taskbar thumbnail preview in Windows 11? 1. Using the Settings app tap the key and click Settings. Windows click System and select About. Click Advanced system settings. Navigate to the Advanced tab and select Settings under Performance. Select "Visual Effects"

With memory compression on Windows 11, your device will choke even with a limited amount of RAM. In this article, we will show you how to enable or disable memory compression on Windows 11. What is memory compression? Memory compression is a feature that compresses data before writing it to RAM, thus providing more storage space on it. Of course, more data stored in physical memory translates into faster system operation and better overall performance. This feature is enabled by default in Windows 11, but if it's somehow not active, you can disable or re-enable it. How to enable memory compression in Windows 11? Click the search bar, type powershell, and click

You may be wondering what the Microsoft Wi-Fi Direct Virtual Adapter does on your PC. Better rest assured that this network adapter is Microsoft and completely secure. But if the adapter is messing up your activity and you're wondering if it's worth keeping, this guide will give you everything you need to know. What does the Microsoft Wi-Fi Direct virtual adapter do? As the name suggests, Microsoft Wi-Fi Direct Virtual Adapter helps make your PC a wireless hotspot. This way, other computers can connect to your PC to access the Internet. It does this by virtualizing wireless network adapters. This way, your single physical wireless adapter is converted into two virtual

When you click the search field in Windows 11, the search interface automatically expands. It displays a list of recent programs on the left and web content on the right. Microsoft displays news and trending content there. Today's check promotes Bing's new DALL-E3 image generation feature, the "Chat Dragons with Bing" offer, more information about dragons, top news from the Web section, game recommendations, and the Trending Search section. The entire list of items is independent of your activity on your computer. While some users may appreciate the ability to view news, all of this is abundantly available elsewhere. Others may directly or indirectly classify it as promotion or even advertising. Microsoft uses interfaces to promote its own content,

How to disable the laptop's built-in keyboard in win11 and only use the external one? Details: We need to use an external keyboard when using a win11 computer, but many users choose to disable the laptop's built-in keyboard and only use an external keyboard. So how do you do this? Users can directly click cmd under the search bar and then perform operations. Let this site give users a detailed introduction on how to disable the laptop's built-in keyboard in win11 and only use an external one. Detailed explanation on how to disable the laptop's built-in keyboard in Win 11 and only use an external keyboard. 1. Click the Start menu at the bottom of the computer or search. 3. Enter cmd and click on the right to run as administrator. 5. If you want to restart, you can return to this location and enter scconfigi804

Microsoft's Windows 11 operating system may periodically display suggestions as pop-ups on your computer using the notification system. The suggestions system, originally intended to provide users with tips and suggestions for improving their Windows 11 workflows, has almost completely transformed into an advertising system to promote Microsoft services and products. Suggestion pop-ups might advertise a Microsoft 365 subscription to users, suggest linking an Android phone to the device, or set up a backup solution. If these pop-ups annoy you, you can tweak your system to disable them entirely. The following guide provides recommendations on disabling pop-ups on devices running Microsoft’s Windows 11 operating system.

With the new version of the edge browser, many friends are not used to it. For example, they don't know how to disable js scripts. Today I will bring you how to disable js scripts in edge browser. Let's learn together. edge browser js script: 1. Open the browser, click the three dots in the upper right corner, and select "Settings". 2. Click "Advanced" on the left taskbar. 3. Scroll down to find "Website Permissions" and click "Manage Permissions". 4. Find “JavaScript” in “Site Permissions”. 5. Turn off the switch behind it.
