How to Add Exceptions in Windows Defender: A Complete Step-by-Step Guide

Last update: 02/05/2025

  • Exclusions in Defender help optimize performance by avoiding unnecessary scanning of trusted files or processes.
  • There are different types of exceptions: files, folders, file types, and processes, each with specific uses.
  • It is essential to regularly audit and review active exclusions to ensure system security is not compromised.
How to add exceptions in Windows Defender

How to add exceptions in Windows Defender? Windows Defender is the security tool built into Windows that protects against threats such as viruses, malware, and other computer risks. However, there are times when it's necessary add exceptions for certain files, folders, applications, or processes that we know are safe and that, for various reasons, are being blocked or slowed down by Defender's scan. Therefore, learning how to manage and add exclusions is essential to maintaining the balance between security and functionality.

In this article, we are going to show you in a detailed and practical way How to add exceptions in Windows Defender, explaining the different methods available both from the system's graphical interface and through advanced tools such as Intune, PowerShell, or Windows Firewall Management itself. We'll also include key tips to ensure you apply these exclusions safely and responsibly, minimizing risks and maximizing your computer's performance.

Why add exceptions in Windows Defender?

How to add exceptions in Windows Defender

The main objective of Windows Defender is protect your computer from any malicious softwareHowever, there are specific situations in which a trusted file, working folder, specific extension, or legitimate process may be mistakenly detected as a threat or simply cause system performance to decrease due to constant scanning. This often occurs with uncommon applications, development tools, or custom programs.

Add an exception Allows Windows Defender to ignore these items during its scans, preventing unexpected crashes, unnecessary warning messages, or slowness while you work.

Windows has blocked this software because it cannot verify the manufacturer-1
Related article:
How to fix software crash in Windows

Types of exclusions you can add in Windows Defender

Windows Defender offers the ability to define four main types of exclusions:

  • File: Excludes a specific file, ideal if only a specific item is causing problems.
  • Binder: Allows all files within a folder to not be scanned, useful for software that needs to operate freely.
  • Type of file: Allows you to exclude all files of a certain extension, such as . Docx o . Pdf.
  • Processing: Files opened by that process will not be scanned in real time, which is recommended for performance-sensitive applications.

Each type of exception has its uses. It is important use them responsibly, since you exclude those elements from active threat protection as well.

Exclusive content - Click Here  How to enable Xbox Narrator on Windows

Before continuing, you can also disable everything and we explain it in this guide onHow to disable Windows Defender?

Related article:
How to run unverified apps in Windows 10

How to add an exception from the Windows Security app

Microsoft Vulnerable Driver Blocklist what it is-2

Microsoft Defender Antivirus It offers a simple interface for adding exceptions step by step. Follow these steps to do so:

  1. Open the Windows security from the start menu or by searching for “Windows Security.”
  2. Go to Protection against viruses and threats.
  3. Click on Manage settings within Virus & threat protection settings.
  4. Scroll down to the section Exclusions and select Add or remove exclusions.
  5. Choose the type of exclusion: Archive, Folder, Type of file o Process.
  6. Select or enter the item you want to exclude and confirm.

And ready! Your file, folder, extension, or process will be excluded from Defender's real-time scanning.

Practical examples of exclusions

  • Excluding a file: If you have an installation file that Defender identifies as suspicious but you know it is safe, add it as an exception from the option Archive.
  • Excluding an entire folder: If you're using a program that constantly generates temporary files and slows down scanning, add the folder where that program works as an exception.
  • Exclusion by file type: If you work with files of an uncommon extension that never contain malware in your case (for example, .X Y Z), you can exclude that extension.
  • Exclusion of processes: It is useful when certain applications need to access multiple resources without being interrupted by the antivirus.
Related article:
How to change quiet hours in Windows 10

Advanced options for managing exclusions

windows defender

In professional environments or companies, it is common to use centralized administration tools such as Microsoft Intune, Group Policy or even PowerShell to manage exclusions in bulk.

Configure exclusions using Microsoft Intune

If you manage multiple computers in your organization, you can define exclusion policies through Intune:

  • Accesses Intune Admin Center.
  • Opens Endpoint Security > Antivirus.
  • In an existing policy (or create a new one), edit the options and expand Microsoft Defender Antivirus Exclusions.
  • There you can define exclusions by extension, path, or process.
  • Save and assign the policy to the affected users or devices.

This method is especially recommended for businesses, as it allows for centralized management, avoids manual user-by-user changes, and facilitates periodic audits and reviews.

Windows 10 LTSC and LTSB-0
Related article:
All about Windows 10 LTSC and LTSB: Differences and unique details

Exclusions with Group Policy or PowerShell

For advanced administrators, Group Policy y PowerShell are powerful options. For example, you can list current exclusions by running the command Get-MpPreference in PowerShell. You can also add new exclusions with commands like:

Add-MpPreference -ExclusionPath "C:\Folder\Path"

These methods offer granular control and are widely used on servers or computers that require custom security configurations.

Exclusive content - Click Here  How to use Task Manager to identify slow processes

How exclusions work in Defender and key considerations

Exclusions applied in Windows Defender affect both the real time analysis as well as manual or scheduled scans, depending on the exclusion type and settings. For example:

  • File, folder, and file type exclusions: They apply to all analyses (real-time and scheduled).
  • Process exclusions: They only apply to real-time scanning, allowing files opened by such processes to be momentarily ignored.

It is important to understand that Each exclusion represents a potential reduction in protection. It is advisable to add only those that are necessary and well justified.

  • Avoid adding exclusions “just in case”. Use them only when strictly necessary.
  • Periodically review the exclusions list and eliminate those that are no longer needed.
  • Audit the changes and documents the reasons for each exception, especially in organizations.
How to disable Windows Defender
Related article:
How to disable Windows Defender?

Exclusions in Windows Defender Firewall

In addition to the antivirus, the Windows Defender Firewall You can also block certain applications that need to communicate over the network. Adding exceptions to the firewall allows specific programs to function properly without restricting Internet access.

To add an exception to the firewall in modern versions of Windows:

  1. Open the Control panel and access System and Security > Windows Defender Firewall.
  2. Choose Allow an app or feature through Windows Defender Firewall.
  3. A list of installed programs will appear. Check the boxes next to the app you want to allow, choosing whether it can access private, public, or both networks.
  4. Press on Accept To save the changes.

Keep in mind that you should only add known and trusted applications, avoiding opening unnecessary doors in your firewall.

Related article:
Windows firewall

Using wildcards and environment variables in exclusions

An interesting feature of Defender exclusions is that you can use wildcards (as *) and Windows environment variables to define more flexible exceptions.

  • In file types: If you use an asterisk in the extension (*st), you will be excluding any file whose extension ends in those letters (such as .test, .past, .invest…).
  • In processes: You can exclude full paths with wildcards (for example, C:\MyProcess\*) or by name (proof.*), so all processes with that name, regardless of the extension, will be ignored for real-time scanning.
  • You can also take advantage of Windows environment variables to refer to paths that change between computers, such as % ProgramFiles% o % APPDATA%.
Exclusive content - Click Here  Bored of yellow? Here's how to change the color of your folders.

Use these options carefully to avoid overly broad exclusions that could pose a security risk.

Audit and good practices in exception management

The recommended practice is periodically audit exclusionsThis is essential in corporate environments and especially when critical directories or processes related to server software have been excluded, such as microsoft ExchangeMicrosoft recommends reviewing whether these exceptions are still necessary, as they may pose a security breach.

Tools like PowerShell or the Windows Security app itself allow you to check at any time which elements are excluded. Furthermore, the company's internal documentation should include the reasons behind each exception and whether its maintenance is justified after each technical review.

Specific considerations for system administrators

If you are an administrator managing a fleet of equipment, you should:

  • Thoroughly document each exception added to devices under your responsibility.
  • Audit changes regularly and check that there are no unnecessary exclusions after software updates or migration processes.
  • Train users so that they understand when it is necessary to request an exception and when it is not.
  • Avoid opening your hand too much; each exception means less protection for that folder, file, or process.
Related article:
How to disable Windows 10 pop-ups

Common mistakes when adding exceptions and how to avoid them

When working with exclusions in Windows Defender, common mistakes they are usually:

  • Exclusions that are too broadFor example, excluding all document folders instead of a specific subfolder. This can leave the entire system exposed to preventable threats.
  • Not checking the exclusions list frequently: It is common for exceptions to be added during the installation of new software and then no longer needed.
  • Using wildcards without control: Adding wildcards to a file or process extension can leave many more items than necessary out of reach of the antivirus.
  • Forgetting to document exceptionsIn businesses, this can cause confusion and even unauthorized security holes.

To avoid these failures, make sure you document and justify each change, and periodically reviews all active exclusions at both the local and centralized levels.

You shouldn't add exceptions if you have doubts about the trustworthiness of the item or if you don't know its source. Limiting exclusions to strictly necessary cases helps maintain robust protection and reduce potential risks to your system. We hope you now know how to add exceptions in Windows Defender.

Related article:
How to turn off Windows Security