Disable Real-Time Protection
Open Windows Security
Press
Win + I to open Settings, then go to Privacy & Security > Windows Security > Virus & threat protection.Disable via Group Policy (Recommended)
For a more permanent solution, disable Windows Defender via Group Policy:Navigate to Windows Defender Settings
Go to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
Disable Defender
Double-click on Turn off Microsoft Defender Antivirus, set it to Enabled, and click OK.
Group Policy Editor is only available on Windows Pro and Enterprise editions. If you’re on Windows Home, use the Windows Security method above.
