Hello
Thank you for posting in Microsoft Community forum.
As I understand, you want to disable Windows Defender. Disabling Windows Defender can indeed be a bit tricky, especially if it keeps reverting your settings. Here are a few steps to try, ensuring that they are effectively disabling Windows Defender on your device permanently:
- Disable Tamper Protection:
Before making any changes, ensure that Tamper Protection is turned off in Windows Security settings.
Go to Windows Security -> Virus & threat protection -> Manage settings.
Scroll down to Tamper Protection and turn it off.
- Using the Registry Editor:
Open the Start Menu, type regedit, and press Enter to open the Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
Look for a DWORD named **DisableAntiSpyware**. If it doesn't exist, create it by right-clicking on the right pane, selecting **New** -> **DWORD (32-bit) Value**, and naming it DisableAntiSpyware. Set its value to **1**.
Next, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection.
Create new DWORDs named **DisableBehaviorMonitoring**, **DisableOnAccessProtection**, and **DisableScanOnRealtimeEnable**, and set all their values to **1**.
- Using PowerShell:
As an additional measure, you can use PowerShell to disable Windows Defender Services.
Open PowerShell as an Administrator and run the following commands:
Set-MpPreference -DisableRealtimeMonitoring $true
- In an enterprise environment or on specific versions such as Windows 11 IoT, you might also need to check organizational policies or configurations that might be enforcing Defender settings.
Remember to create a system restore point before making these changes for safety. Lastly, note that disabling Defender might leave your system more vulnerable to threats, so ensure that you have another effective security solution in place.
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou