1. Press Win + R keys on your keyboard and type gpedit.msc
2. In the local group policy editor that opens, go to the section "Computer Configuration" - "Administrative Templates" - "Windows Components" - "Windows Defender Antivirus".
3. Double-click the "Turn off Windows Defender Antivirus" option and select "Enabled" (this is how "Enabled" will disable the antivirus).
4. Disable the "Allow antimalware service to start" and "Allow the antimalware service to run all the time" option (set to "Disabled") in the same way.
5. Go to the subsection "Real-time protection", double-click on the parameter "Disable real-time protection" and set "Enabled".
6. Additionally, disable the "Scan all downloaded files and attachments" option (here you should set "Disabled").
7. In the "MAPS" subsection, disable all options except "Send sample files".
8. Set the option "Send sample files if further analysis is required" to "Enabled", and at the bottom left (in the same policy settings window) set "Never send".