- 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? 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?

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.
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.
Before continuing, you can also disable everything and we explain it in this guide onHow to disable Windows Defender?
How to add an exception from the Windows Security app

Microsoft Defender Antivirus It offers a simple interface for adding exceptions step by step. Follow these steps to do so:
- Open the Windows security from the start menu or by searching for “Windows Security.”
- Go to Protection against viruses and threats.
- Click on Manage settings within Virus & threat protection settings.
- Scroll down to the section Exclusions and select Add or remove exclusions.
- Choose the type of exclusion: Archive, Folder, Type of file o Process.
- 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.
Advanced options for managing exclusions
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.
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.
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.
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:
- Open the Control panel and access System and Security > Windows Defender Firewall.
- Choose Allow an app or feature through Windows Defender Firewall.
- 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.
- 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.
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%.
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.
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.
Passionate about technology since he was little. I love being up to date in the sector and, above all, communicating it. That is why I have been dedicated to communication on technology and video game websites for many years. You can find me writing about Android, Windows, MacOS, iOS, Nintendo or any other related topic that comes to mind.

