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:

Tags: #System
Sign up and earn $1000 a day ⋙

Leave a Comment

Recover Deleted Data with Recuva Portable in Windows 7

Recover Deleted Data with Recuva Portable in Windows 7

In the following article, we will present the basic operations to recover deleted data in Windows 7 with the support tool Recuva Portable. With Recuva Portable, you can store it in any convenient USB, and use it whenever needed. The tool is compact, simple, easy to use with some of the following features:

How to delete duplicate files to save computer memory using CCleaner

How to delete duplicate files to save computer memory using CCleaner

CCleaner scans for duplicate files in just a few minutes, then lets you decide which ones are safe to delete.

10 Windows Settings You Should Never Leave as Default

10 Windows Settings You Should Never Leave as Default

Windows doesn't come with security set up by default, which means there are some default settings you need to change.

How to Download, Update, and Troubleshoot USB Drivers on Windows 10

How to Download, Update, and Troubleshoot USB Drivers on Windows 10

USB devices have become indispensable in everyday life, allowing us to connect a wide variety of essential hardware to our PCs.

How to Lock Guest Wi-Fi Network So No One Can Spy

How to Lock Guest Wi-Fi Network So No One Can Spy

If you properly lock down your guest Wi-Fi network, you can share your Internet connection with any visitors without sharing any other information.

Lost Admin rights on Windows 10, heres how to fix it

Lost Admin rights on Windows 10, heres how to fix it

For some reason, your Windows 10 computer lost Admin rights, every time you open an application on the screen you receive an error message. So how to restore lost Admin rights, please refer to the article below of WebTech360.

3 ways to turn off Windows 11 firewall

3 ways to turn off Windows 11 firewall

In this article, WebTech360 will guide you how to turn off the firewall on Windows 11.

Windows 11 22H2: Moment 1 update with many notable features

Windows 11 22H2: Moment 1 update with many notable features

After a long wait, the first major update of Windows 11 has officially been released.

How to fix Unhandled Exception Has Occurred error on Windows 10

How to fix Unhandled Exception Has Occurred error on Windows 10

The Unhandled exception has occurred error is not related to a specific application, making it more difficult to resolve. This article will guide you through some ways to fix the Unhandled exception has occurred error on Windows 10.

9 Ways to Convert MOV Files to MP4

9 Ways to Convert MOV Files to MP4

These days, most PCs and Apple devices can handle both MOV and MP4 files, at least to some extent. However, the need to convert MOV video files to MP4 files has not diminished.

What is end-to-end encryption? How does it work?

What is end-to-end encryption? How does it work?

Recognizing this need, major online messaging services use a technique called end-to-end encryption, to secure and protect users' conversations.

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 use Command Prompt, how to use cmd on Windows

How to use Command Prompt, how to use cmd on Windows

Hidden deep within Windows is a world of command lines that few people know about. In this article, we will guide you on how to fix errors and make your computer more secure using the cmd command line tool.

How to enter BIOS (UEFI) on Windows 10, how to fix the error of not being able to enter BIOS Win 10

How to enter BIOS (UEFI) on Windows 10, how to fix the error of not being able to enter BIOS Win 10

Instructions on how to enter BIOS on Windows 10 for you, with video illustration.

How to use hidden video editor on Windows 11

How to use hidden video editor on Windows 11

Clipchamp is the default video editor on Windows 11, but if you just need to make a quick cut, split a simple photo, or add music to a clip, the classic editor inside the Photos Legacy app is a much better choice.

Recover Deleted Data with Recuva Portable in Windows 7

Recover Deleted Data with Recuva Portable in Windows 7

In the following article, we will present the basic operations to recover deleted data in Windows 7 with the support tool Recuva Portable. With Recuva Portable, you can store it in any convenient USB, and use it whenever needed. The tool is compact, simple, easy to use with some of the following features:

How to delete duplicate files to save computer memory using CCleaner

How to delete duplicate files to save computer memory using CCleaner

CCleaner scans for duplicate files in just a few minutes, then lets you decide which ones are safe to delete.

10 Windows Settings You Should Never Leave as Default

10 Windows Settings You Should Never Leave as Default

Windows doesn't come with security set up by default, which means there are some default settings you need to change.

How to Download, Update, and Troubleshoot USB Drivers on Windows 10

How to Download, Update, and Troubleshoot USB Drivers on Windows 10

USB devices have become indispensable in everyday life, allowing us to connect a wide variety of essential hardware to our PCs.

How to Lock Guest Wi-Fi Network So No One Can Spy

How to Lock Guest Wi-Fi Network So No One Can Spy

If you properly lock down your guest Wi-Fi network, you can share your Internet connection with any visitors without sharing any other information.

Lost Admin rights on Windows 10, heres how to fix it

Lost Admin rights on Windows 10, heres how to fix it

For some reason, your Windows 10 computer lost Admin rights, every time you open an application on the screen you receive an error message. So how to restore lost Admin rights, please refer to the article below of WebTech360.

3 ways to turn off Windows 11 firewall

3 ways to turn off Windows 11 firewall

In this article, WebTech360 will guide you how to turn off the firewall on Windows 11.

Windows 11 22H2: Moment 1 update with many notable features

Windows 11 22H2: Moment 1 update with many notable features

After a long wait, the first major update of Windows 11 has officially been released.

How to fix Unhandled Exception Has Occurred error on Windows 10

How to fix Unhandled Exception Has Occurred error on Windows 10

The Unhandled exception has occurred error is not related to a specific application, making it more difficult to resolve. This article will guide you through some ways to fix the Unhandled exception has occurred error on Windows 10.

9 Ways to Convert MOV Files to MP4

9 Ways to Convert MOV Files to MP4

These days, most PCs and Apple devices can handle both MOV and MP4 files, at least to some extent. However, the need to convert MOV video files to MP4 files has not diminished.

What is end-to-end encryption? How does it work?

What is end-to-end encryption? How does it work?

Recognizing this need, major online messaging services use a technique called end-to-end encryption, to secure and protect users' conversations.

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 use Command Prompt, how to use cmd on Windows

How to use Command Prompt, how to use cmd on Windows

Hidden deep within Windows is a world of command lines that few people know about. In this article, we will guide you on how to fix errors and make your computer more secure using the cmd command line tool.

How to enter BIOS (UEFI) on Windows 10, how to fix the error of not being able to enter BIOS Win 10

How to enter BIOS (UEFI) on Windows 10, how to fix the error of not being able to enter BIOS Win 10

Instructions on how to enter BIOS on Windows 10 for you, with video illustration.

How to use hidden video editor on Windows 11

How to use hidden video editor on Windows 11

Clipchamp is the default video editor on Windows 11, but if you just need to make a quick cut, split a simple photo, or add music to a clip, the classic editor inside the Photos Legacy app is a much better choice.