Turn off Auto Exclusions
Supported on: At least Windows Server 2016
Registry
HKLM
Software\Policies\Microsoft\Windows Defender\Exclusions Value name: DisableAutoExclusions
Enabled: DisableAutoExclusions = 1
Disabled: DisableAutoExclusions = 0
Description
Allows an administrator to specify if Automatic Exclusions feature for Server SKUs should be turned off. Disabled (Default): Microsoft Defender will exclude pre-defined list of paths from the scan to improve performance. Enabled: Microsoft Defender will not exclude pre-defined list of paths from scans. This can impact machine performance in some scenarios. Not configured: Same as Disabled.