Use these steps if you need to temporarily turn off Windows Defender Antivirus; however, if you do, your device may be vulnerable to threats.
Open Windows Defender Security Center, then select Virus & threat protection > Threat settings.
Turn off Real-time protection.
Note: Scheduled scans will continue to run. However, files that are downloaded or installed will not be scanned.