Open Windows Security
Click Virus & threat protection
Click Manage settings under Virus & threat protection settings
Turn off Real-time protection
Turn off Cloud-delivered protection
Turn off Automatic sample submission
Turn off Tamper Protection if needed
Open Group Policy Editor
Go to Computer Configuration
Go to Administrative Templates
Go to Windows Components
Go to Microsoft Defender Antivirus
Open Turn off Microsoft Defender Antivirus
Set it to Enabled
Open Registry Editor
Go to HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows Defender
Create or set DisableAntiSpyware to 1 if applicable
Restart the computer
