You can set Microsoft Defender Antivirus to passive mode using a registry key as follows: Path: HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows Advanced Threat Protection. Name: ForceDefenderPassiveMode. Type: REG_DWORD.