If you need to turn off Defender in an emergency:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f
Turn back on
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 1 /f
Why did I need to do this? An old Dell Optiplex would not allow me to run the bios update exe. I couldn't manually turn off enough of Defender to disable the right policy.