🚀 NEW in v2.4.29: 35+ Speed Optimizations added today!Download Now →

Home/Fix/How to Add Windows Defender Exclusions (Stop False Positives)

How to Fix How to Add Windows Defender Exclusions (Stop False Positives) on Windows

Windows Defender blocking, deleting, or quarantining safe programs? Learn how to add file, folder, and process exclusions to Microsoft Defender Antivirus on Windows 10 and 11.

📖

Main Troubleshooting Guide

How to Fix High CPU Usage

Complete symptoms, causes, and step-by-step solutions

Symptoms

You might be experiencing this problem if you notice:

  • Windows Defender deleting files you know are safe
  • Programs being quarantined immediately after download
  • Game mods or development tools blocked by real-time protection
  • Antivirus scan consuming CPU because it scans large folders repeatedly
  • "Threat detected" for false positives (known-safe software)
  • Development builds being flagged as malware
  • Programs crashing because Defender is scanning their files during execution

Common Causes

  • Heuristic detection flagging new or uncommon executables
  • Game mods and community tools not having signed code certificates
  • Development compilers generating executables that trigger behavioral detection
  • Large project folders causing high CPU during real-time scanning
  • Defender scanning virtual machine disk images and causing I/O slowdowns
  • Downloaded tools from GitHub or development communities triggering cloud detection
  • Custom scripts or automation tools flagged as potentially unwanted programs

Solutions

Solution 1: Add File or Folder Exclusions

  1. 1Open Windows Security → Virus & threat protection → Manage settings
  2. 2Scroll down to "Exclusions" → "Add or remove exclusions"
  3. 3Click "Add an exclusion" → choose File, Folder, File type, or Process
  4. 4For a folder: select the folder containing the safe files (e.g., your game mods folder)
  5. 5For a file: select the specific .exe that keeps getting flagged
  6. 6Defender will no longer scan excluded items during real-time protection or scheduled scans
  7. 7Only exclude items you trust — exclusions bypass all antivirus protection for those paths

Solution 2: Add Process Exclusions

  1. 1Process exclusions are useful for development tools and virtual machines
  2. 2Open Windows Security → Virus & threat protection → Manage settings → Exclusions
  3. 3Click "Add an exclusion" → Process
  4. 4Enter the process name (e.g., devenv.exe, vmware-vmx.exe, node.exe)
  5. 5This tells Defender to ignore all file operations by that process
  6. 6Useful for: IDEs (Visual Studio, VS Code), game engines (Unity, Unreal), VM software
  7. 7Process exclusions reduce CPU impact of real-time scanning during development

Solution 3: Restore Quarantined Files

  1. 1Open Windows Security → Virus & threat protection → Protection history
  2. 2Find the quarantined item → click it → Actions → Restore
  3. 3After restoring: immediately add an exclusion for that file or folder
  4. 4Otherwise Defender will quarantine it again on the next scan
  5. 5If the file was already deleted: check your Recycle Bin or re-download it
  6. 6Then add the exclusion BEFORE placing the file back in its location

Solution 4: Add Exclusions via PowerShell (Bulk)

  1. 1Open PowerShell as Administrator
  2. 2Add folder: Add-MpPreference -ExclusionPath "C:\MyGameMods"
  3. 3Add process: Add-MpPreference -ExclusionProcess "devenv.exe"
  4. 4Add file type: Add-MpPreference -ExclusionExtension ".iso"
  5. 5View current exclusions: Get-MpPreference | Select-Object Exclusion*
  6. 6Remove exclusion: Remove-MpPreference -ExclusionPath "C:\MyGameMods"
  7. 7PowerShell is faster for adding multiple exclusions at once
FIXES THIS IN 5 MINUTES

Fix How to Add Windows Defender Exclusions (Stop False Positives) Automatically

RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.

Download Now - Free Trial

No credit card required • Works on Windows 10 & 11

Automated Repairs for This Issue

Browse More Performance & Speed Guides

Share this:XRedditLinkedInEmail