Open Windows Security
Go to Virus & threat protection
Select Manage settings
Turn off Real-time protection
Open Task Scheduler
Go to Task Scheduler Library
Open Microsoft
Open Windows
Open Windows Defender
Disable scheduled Defender tasks
Open Group Policy Editor
Go to Computer Configuration
Open Administrative Templates
Open Windows Components
Open Microsoft Defender Antivirus
Enable Turn off Microsoft Defender Antivirus
Restart the computer
Open Services
Find Microsoft Defender Antivirus Service
Stop the service
Set Startup type to Disabled
Add an exclusion in Windows Security
Exclude the Antimalware Service Executable folder or process
Limit scheduled scans to idle time
Install a third-party antivirus if needed
