How to Add Exclusions in Windows Defender on Windows 10

Windows Defender, integrated into Windows 10, runs in the background and scans your files for malware. To improve performance for tasks like compiling code or running virtual machines, you can add an exclusion and Windows Defender will never scan those files.

Exclusions can also help if you’re running into false positives where Windows Defender marks legitimate files as malware.