1. Navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
  2. If you see the preference DisableAntiSpyware on the right double-click on it and set it to 1 to disable Windows Defender.
  3. If the preference does not exist, right-click on Windows Defender and select New > Dword (32-bit) Value, and name it DisableAntiSpyware.
  4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection
  5. Right-click on Real-Time Protection and select New > Dword (32-bit) Value, and name it DisableRealtimeMonitoring.
  6. Set the value to 1.

To restore Windows Defender at a later point in time, delete the key or set its value to 0.