How to add exceptions in Windows Defender on Windows 10

Windows Defender , built into Windows 10, runs in the background and scans files for malware. To improve performance for tasks like compiling code or running virtual machines, you can add exceptions so Windows Defender never scans those files.

Warning : Be careful about what you exclude. Windows Defender will not scan excluded files and folders for malware.

How to add exceptions to Windows Defender in Windows Security

Step 1:

First, you need to launch Windows Security to change some settings. Open the Start menu and type Windows Security . Then, select the Windows Security app.

Step 2:

In Windows Security , navigate to Virus & Threat Protection . Then, click Manage Settings.

How to add exceptions in Windows Defender on Windows 10
In Windows Security, navigate to Virus & Threat Protection

Step 3:

In Virus & Threat Protection Settings , scroll to the bottom of the page and click Add or Remove Exclusions .

Step 4:

On the Exclusions page , you can add or remove files that you want to exclude from Windows Defender scanning. To add an exception, click the Add An Exclusion button next to the large plus sign ( + ) icon.

How to add exceptions in Windows Defender on Windows 10
Click the Add An Exclusion button

Step 5:

A small menu will appear that allows you to specify the exception by File, Folder, File type or Process .

How to add exceptions in Windows Defender on Windows 10
A small menu will appear allowing you to define the exception.

What you choose depends on the type of exception you are trying to throw. Here is what each option will do.

  • File: If you select this, a box will appear that allows you to browse your computer to select a file that will be excluded from future scans. Select the file you want, then click Open.
  • Folder: Like the File option , this will allow you to browse your computer for a specific folder and exclude it from scanning. The contents and subfolders within this folder will also be excluded.
  • File type : A box will appear asking you to enter the file extension (e.g. .MID ) that represents the type of file you want to exclude. All files of that type will be excluded from future scans. This is dangerous, as you could accidentally exclude a large group of potentially malicious files, such as PDF or DOC files.
  • Process : A window will appear asking you to enter the name of a process (a running program, such as explorer.exe ) to exclude from scanning. If there is a program that you know is safe, but would be flagged by Defender, you can enter it here.

Select one of these options and make the necessary selections in the following pop-up dialog box. When you add an exception, it will appear in a list on the Exclusions page.

How to add exceptions in Windows Defender on Windows 10
Exceptions will be displayed in a list on the Exclusions page.

Step 6:

If you want to remove a defined exception, hover your mouse over it until a down arrow appears, then click the Remove button .

How to add exceptions in Windows Defender on Windows 10
Click the Remove button to remove the exception.

Step 7:

Once you're done, close Windows Security and your settings will be saved. The next time the system runs a Defender scan, the items you added to the exclusion list won't cause any problems.

How to Add Exceptions in Windows Defender Using PowerShell

Add exception file for Microsoft Defender Antivirus in PowerShell

This option is used to add a specific file as an exception, preventing it from being scanned by Microsoft Defender Antivirus.

1. Open PowerShell with admin rights .

2. Type the command below into PowerShell and press Enter.

Add-MpPreference -ExclusionPath "<đường dẫn="" đầy="" đủ="" của="" file="">" -Force

3. You can now close PowerShell if you want.

How to add exceptions in Windows Defender on Windows 10
Add exception file for Microsoft Defender Antivirus in PowerShell

Add an exception folder for Microsoft Defender Antivirus in PowerShell

This option is used to add a specific exception folder, making it no longer scanned by Microsoft Defender Antivirus.

1. Open PowerShell with admin rights.

2. Type the command below into PowerShell and press Enter.

Add-MpPreference -ExclusionPath "<đường dẫn="" đầy="" đủ="" của="" file="">" -Force

3. You can now close PowerShell if you want.

How to add exceptions in Windows Defender on Windows 10
Add an exception folder for Microsoft Defender Antivirus in PowerShell

Add file type exceptions to Microsoft Defender Antivirus in PowerShell

This option is to add a file extension to the exception, causing all files of that type to no longer be scanned by Microsoft Defender Antivirus.

1. Open PowerShell with admin rights.

2. Type the command below into PowerShell and press Enter.

Add-MpPreference -ExclusionExtension "" -Force

3. You can now close PowerShell if you want.

How to add exceptions in Windows Defender on Windows 10
Add file type exceptions to Microsoft Defender Antivirus in PowerShell

Add process exceptions to Microsoft Defender Antivirus in PowerShell

This option is used to add an exception process, which prevents any files associated with it from being scanned by Microsoft Defender Antivirus.

1. Open PowerShell with admin rights.

2. Type the command below into PowerShell and press Enter.

Add-MpPreference -ExclusionProcess "" -Force

3. You can now close PowerShell if you want.

How to add exceptions in Windows Defender on Windows 10
Add process exceptions to Microsoft Defender Antivirus in PowerShell

See also:

Sign up and earn $1000 a day ⋙

Leave a Comment

How to set different wallpapers on each monitor Windows 10/11

How to set different wallpapers on each monitor Windows 10/11

Setting up multiple monitors on Windows is quite simple and only takes a few minutes to do. After setting up multi-monitor mode (multiple screens), you can set up separate wallpapers for each screen. To do this, please refer to the article below from WebTech360.

A look at Windows 10 and 11 features Microsoft has removed or stopped supporting in 2024

A look at Windows 10 and 11 features Microsoft has removed or stopped supporting in 2024

With less than two weeks to go until 2025, it's time to look back at the list of features that Microsoft has stopped supporting or removed from Windows 10 and 11 in 2024.

How to turn off Sleep mode in Windows 10/11

How to turn off Sleep mode in Windows 10/11

Sleep mode on Windows will put the computer into the lowest power consumption mode, extending the battery life of the computer when not using the device.

Some Microsoft 365 apps may stop working completely if users dont update to Windows 11

Some Microsoft 365 apps may stop working completely if users dont update to Windows 11

Recently, Microsoft has been continuously posting articles on the company's official blog urging users to upgrade to Windows 11 as the end of support for Windows 10 is approaching.

How to use Windows Virtual Desktop effectively

How to use Windows Virtual Desktop effectively

Virtual desktops are a handy way to combine multiple workspaces in Windows 10. There are a number of ways to quickly switch between virtual desktops, including some lesser-known keyboard shortcuts. Quantrimang.com will cover them all in the following article.

Microsoft is doing everything to stop users from downloading Windows 10 again

Microsoft is doing everything to stop users from downloading Windows 10 again

As the Windows 11 end-of-life deadline approaches, Windows 10 end-of-life (EOL) warning banners are popping up everywhere.

Some ways to fix Start Menu on Windows 10 stopped working

Some ways to fix Start Menu on Windows 10 stopped working

The Start Menu is probably the most popular feature of Windows 10. However, for some PC versions, this feature may be faulty. In this article, WebTech360 will guide readers on how to fix Start Menu errors on Windows 10.

Microsoft may charge for Windows 11 updates in the future?

Microsoft may charge for Windows 11 updates in the future?

Microsoft's determination to encourage (or even urge) users to upgrade from Windows 10 to Windows 11 is clear.

How to Stack All Open Windows in Windows 11/10

How to Stack All Open Windows in Windows 11/10

In Windows, you can use the Cascade windows option to arrange all open windows to overlap each other with title bars visible so you can quickly tell which window is open.

Why is it so hard for many PC gamers to give up Windows 10?

Why is it so hard for many PC gamers to give up Windows 10?

Microsoft's support for Windows 10 is coming to an end, but many PC gamers are still hesitant to upgrade to Windows 11. What makes Windows 10 such a great land for gamers?

Microsoft pushes full-screen ads about Windows 10 end of support

Microsoft pushes full-screen ads about Windows 10 end of support

Microsoft has updated its official documentation to specify the end of support (end of life) date for Windows 10.

How to use Microsoft Family Safety to manage kids screen time in Windows

How to use Microsoft Family Safety to manage kids screen time in Windows

Stop watching the clock to monitor your child's screen time! Instead, you can easily use Microsoft Family Safety to manage your child's computer time.

How to enable duplex printing on Windows

How to enable duplex printing on Windows

To print on both sides of the paper, you need to install the duplex module. Here are the steps to enable duplex printing in Windows 10.

Windows + V: A Useful Shortcut That Many Windows Users Dont Know About

Windows + V: A Useful Shortcut That Many Windows Users Dont Know About

Like many other platforms, Windows also has a dedicated clipboard manager called “Clipboard History”.

What to do when Copilot is not found on Windows 11?

What to do when Copilot is not found on Windows 11?

According to Microsoft, Copilot is the future of Windows. But what if you want to try it but can't find Copilot? The following article will show you some tricks if Copilot doesn't appear on your Windows 11.

Using Disk Defragmenter in Windows

Using Disk Defragmenter in Windows

Over time, the files on your hard drive become fragmented and your computer slows down because it has to check multiple locations on the drive. To help your computer run more efficiently, you can use the built-in tools in Windows to defragment those files.

This hidden score tells you how well your Windows computer runs

This hidden score tells you how well your Windows computer runs

If you're wondering how well your Windows PC is performing, run the Windows Experience Index (WEI).

Microsoft Launches Windows 11 IoT Enterprise LTSC 2024 With Broader Device Support and Big Changes

Microsoft Launches Windows 11 IoT Enterprise LTSC 2024 With Broader Device Support and Big Changes

Today, Microsoft officially launched another version of the Windows 11 operating system.

Top 5 Best Encryption Software 2025

Top 5 Best Encryption Software 2025

On your PC, a lot of your personal information can be accessed without permission. That's because Windows data is stored publicly on the drive and is not encrypted or protected by encryption software, so anyone can access your confidential and private information.

How to Install and Setup Android Studio in Windows

How to Install and Setup Android Studio in Windows

Android Studio is the official IDE (Integrated Development Environment) for Android app development and it is based on JetBrains' IntelliJ IDEA software. Android Studio offers many great features that help improve productivity when building Android apps.

Instructions for installing Windows 11, installing Windows 11 using ISO file

Instructions for installing Windows 11, installing Windows 11 using ISO file

Windows 11 is officially leaked and you can even install it right now.

How to enable or disable associated device names in Windows Share

How to enable or disable associated device names in Windows Share

Phone Link lets you access your mobile device from your PC instantly. And users have the option to enable or disable the display of linked device names in Windows Share.

How to Change Tab Color in Windows Terminal

How to Change Tab Color in Windows Terminal

Since Windows Terminal Preview version 1.23.10353.0, Microsoft has added color customization so you can change the color according to your needs.

How to open Control Panel on Windows 10, 8.1, 7

How to open Control Panel on Windows 10, 8.1, 7

Accessing the Control Panel will help you adjust many system settings, because the Control Panel in Windows is a collection of applets, which are like small programs, each of which is used to configure different aspects of the operating system.

How to set different wallpapers on each monitor Windows 10/11

How to set different wallpapers on each monitor Windows 10/11

Setting up multiple monitors on Windows is quite simple and only takes a few minutes to do. After setting up multi-monitor mode (multiple screens), you can set up separate wallpapers for each screen. To do this, please refer to the article below from WebTech360.

How to run multiple instances of a Windows program

How to run multiple instances of a Windows program

There are a number of ways you can run a different version of the same application. The following guide will explain which method is best for a particular type of program.

How to find and open files using Command Prompt

How to find and open files using Command Prompt

This is a method of searching and opening files that is said to be faster than using File Explorer.

Windows Mail is going away, what should I know?

Windows Mail is going away, what should I know?

After a long period of “living on the sidelines,” the Windows Mail, Calendar, and People apps are slowly approaching the end of their lifecycles. Microsoft recently updated its official documentation to clarify that the aforementioned apps will be completely retired on December 31, 2024.

Microsoft removes a barrier preventing users from updating to Windows 11 24H2

Microsoft removes a barrier preventing users from updating to Windows 11 24H2

Shortly after the official launch of Windows 11 version 24H2 last month, Microsoft acknowledged an unexpected issue with the Voicemeeter app.