How to Add Exceptions in Windows Defender: A Complete and Easy Guide

Last update: 06/05/2025
Author Isaac
  • Configure exceptions in Windows Defender improves compatibility and performance
  • It is possible to exclude specific files, folders, file types, or processes
  • Using wildcards and environment variables makes exclusion management more flexible.
  • Auditing and reviewing exclusions periodically helps maintain security

Microsoft Vulnerable Driver Blocklist: What it is and how to use it-6

Microsoft Defender Antivirus (formerly known as Windows Defender) is the security solution that comes integrated into the Windows operating system, offering real-time protection against various threats such as viruses, malware and spyware. However, it can sometimes block legitimate applications, files, or processes, making it difficult to use certain programs or even slowing down your system.

In these cases, knowing How to add exceptions in Windows Defender It's essential to ensure compatibility without compromising your device's protection. Below, we offer a complete, clear, and detailed guide that integrates procedures and recommendations from the main official and support sources, as well as answers to the most common questions about this process.

Why add exceptions in Windows Defender?

Add an exception It is used to tell the antivirus to skip scanning a specific file, folder, file type, or process, which can be useful in several scenarios:

  • Programs that crash or malfunction because the antivirus mistakenly considers them to be a threat.
  • Frequently used files or folders that slow down the analysis and you know they are safe.
  • Specific processes that require high performance and do not need to be constantly examined.
  • Advanced settings for organizations and server environments, where support for critical applications is needed.

It's important pointing that Defining exceptions decreases the level of protection of your system, so you should only do this when you are completely sure of the legitimacy of those files or processes.

Difference between exclusions in Antivirus and exceptions in Firewall

Before continuing, it is worth clarifying that Add exceptions in Windows Defender Antivirus It is not the same as doing it in the Windows Defender Firewall. The antivirus monitors threats within the system (files, programs, processes), while the firewall controls network traffic and applications that can communicate over the Internet or local network. Here we'll focus primarily on antivirus, but later you'll also learn how to handle firewall exceptions.

  How to Run Your Own Scripts from Anywhere in the Windows Console: A Complete, Advanced Guide

Types of exclusions you can configure

Windows Defender allows you to set 4 main types of exceptions:

  • Archive: excludes a specific file from scanning.
  • Folder: all files contained in a specific folder are skipped.
  • Type of file: Excludes all files with a specific extension, for example .docx or .pdf.
  • Process: Skips files opened by a specific process during real-time scanning.

This variety allows you to tailor exclusions to your specific needs., solving everything from specific application problems to improving server performance.

Step by Step: How to Add Exclusions in Microsoft Defender Antivirus

Windows Defender exception

To easily add exclusions, follow the steps summarized below, valid for Windows 10, Windows 11 and recent versions:

  1. Open the Windows Security application from the start menu or by typing 'Windows Security' in the search bar.
  2. Click on Protection against viruses and threats.
  3. Find the section Virus and threat protection settings. Press on Manage settings.
  4. Scroll and select Add or remove exclusions in the Exclusions section.
  5. Press on Add an exclusion and choose the desired exclusion type (File, Folder, File Type, or Process).
  6. Select the file, folder, or enter the extension or process name you want to exclude.

Don't forget that to make these changes you must have administrator permissions. in the team.

What you should know about each type of exclusion

  • Archive: useful for programs portable, patches or documents that are essential to you.
  • Folder: When an application creates multiple files in the same location.
  • Type of file: if you want certain formats to never be parsed (for example, Temporary files .tmp).
  • Process: If you need all files opened by a program to be exempt from continuous scanning.

Process exclusions only affect real-time protection, but these files will still be scanned in on-demand or scheduled scans unless you also exclude them by file or folder.

Wildcard characters and environment variables in exclusions

Windows Defender supports the use of wildcards y Environment Variables to define more flexible exceptions:

  • The asterisk (*) is used to represent any number of characters. For example, *.docx will exclude all files with that extension.
  • To exclude multiple file types, you can use | as a separator in some administration panels (for example, lib|obj excludes both types of extension).
  • In paths or process names, use environment variables to avoid problems with different user locations, such as % USERPROFILE% to refer to the user folder.
  Windows Update Not Working [6 Solutions to Fix This]

Practical examples:

  • *st will exclude .test, .past, .invest and any extension ending in st.
  • C:\MyProcess\* will prevent all files opened in that path from being scanned by processes in that folder.
  • proof.* will exclude files opened by processes named 'test', regardless of their extension.

This allows exceptions to be tailored to complex or multi-user environments.

Advanced Exclusion Management: PowerShell, Policies, and Professional Tools

In business environments, it is often necessary manage exclusions centrally, especially when using tools such as Microsoft Intune, Group Policy (GPO) o Configuration managerThese options offer greater control, auditing, and automation:

  • With Intune o GPO, you can create policies that include the necessary exclusions by extension, path, or process, and assign them to specific users or devices.
  • En IntuneExclusions can be added by editing an existing security policy or creating a new one. You can define extensions, routes, and processes, and even assign scope tags for complex organizations.
  • La PowerShell It is very powerful to audit, add or remove exceptions by commands , the Get-MpPreference to check the current configuration and Add-MpPreference to create new exclusions, and can be complemented with Advanced PowerShell tools.
  • Rules can be made invisible to local administrators, increasing security against unauthorized changes.

This type of management is ideal for organizations that require a high level of control and traceability.

Considerations and risks when adding exceptions

Each exception you add increases the potential risk of threats going undetected.. Therefore, it is essential:

  • Assess the risks and only exclude items you really know and trust.
  • Periodically review and audit the exclusion list. The security team should document the reason for each exception to avoid future confusion.
  • Avoid adding exclusions indiscriminately and failing to anticipate problems that may not occur.
  • Don't overprotect, as every exclusion leaves a small security gap.

Keep in mind that some advanced features, such as network threat protection or attack surface reduction rules, may be less effective if you exclude important processes.

  Install and Register Own DLLs in Windows using Regsvr32

How to remove an exclusion in Microsoft Defender

If you wish to remove an exclusion because it is no longer needed or you want to increase the security level, do the following:

  1. Open the Windows Security application.
  2. Go to Protection against viruses and threats.
  3. Choose Manage settings under protection settings.
  4. Click on Add or remove exclusions.
  5. Choose the exclusion you want to remove and click on Remove.

This process is quick and easy, and it is recommended to review it periodically.

Exceptions in Windows Defender Firewall

Windows firewall

If the problem is not with the file analysis but with the communication of an application over the network, you will have to create an exception in the Windows Defender FirewallThis is especially useful if a program crashes when trying to connect to the Internet.

The steps vary somewhat depending on the version, but the general procedure is:

  1. Open the Control panel and enters Security system > Windows Defender Firewall.
  2. Click on Allow an app or feature through Windows Defender Firewall.
  3. Press on Change settings to be able to modify the list of programs.
  4. Find the app in the list and check the box next to it. Private I Public, depending on where the app needs to connect from.
  5. Save the changes.

This method is useful for restoring connectivity to programs that have been mistakenly blocked by the firewall..

ctrl win shift b
Related article:
What Ctrl+Shift+Win+B actually does in Windows and when to use it

Leave a comment