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

Microsoft explains the benefits of TPM and why Windows 11 is superior to Windows 10

Microsoft explains the benefits of TPM and why Windows 11 is superior to Windows 10

It's no surprise that Microsoft wants Windows 10 users to upgrade to Windows 11.

How to Show File Explorer Preview Pane on Windows 10/11

How to Show File Explorer Preview Pane on Windows 10/11

It's easy to preview files without opening them in Windows 10 thanks to the Preview Pane feature in File Explorer. You can see thumbnails of most images, videos, audio files, and some text-based documents.

Microsoft will make the new Outlook mandatory to install on Windows 10

Microsoft will make the new Outlook mandatory to install on Windows 10

Microsoft is currently having difficulty converting users to new products and services.

How to turn off spell check in Windows 10?

How to turn off spell check in Windows 10?

For many people, the autocorrect feature on Windows 10 is annoying and unnecessary. So how to remove this feature?

How to Set Up and Use a PPPoE Internet Connection on Windows 10

How to Set Up and Use a PPPoE Internet Connection on Windows 10

Many Internet service providers provide their customers with a Point-to-Point Protocol over Ethernet (PPPoE) connection. This article will show you how to configure Windows to connect to the Internet via PPPoE.

5 ways to open the Startup Repair tool on Windows

5 ways to open the Startup Repair tool on Windows

Startup Repair is a Windows recovery tool that can fix some system problems that prevent Windows from starting. Startup Repair scans your PC for problems and then attempts to fix them so your PC can start correctly.

Microsoft still recommends 15-year-old backup solution for Windows 11 and 10 users

Microsoft still recommends 15-year-old backup solution for Windows 11 and 10 users

Modern versions of Windows still contain a lot of old code, and Microsoft generally tries to hide outdated parts, like the Control Panel, in favor of more modern components. However, there are some interesting exceptions.

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.

28 Windows 11 shortcuts you should know and use often

28 Windows 11 shortcuts you should know and use often

28 new Windows 11 shortcuts in addition to familiar Win 11 shortcuts will help you work faster and more efficiently.

Restore Missing Sleep Option on Windows 11/10/8/7

Restore Missing Sleep Option on Windows 11/10/8/7

How to restore the Sleep option on the Power Menu, please refer to the article below of WebTech360.

Microsoft is making Windows the ideal operating system for music makers.

Microsoft is making Windows the ideal operating system for music makers.

At the Qualcomm Snapdragon Summit on October 22, Microsoft announced a series of improvements coming to Windows PCs that will improve the overall experience for musicians, music producers, and other audio professionals.

Adobe Fresco official free animation tool

Adobe Fresco official free animation tool

Previously, Adobe Fresco only supported devices with touchscreens and styluses.

What does the red “X” on Windows folders mean?

What does the red “X” on Windows folders mean?

Do you see a red circle with a white cross to the left of your files, folders, or Windows drives? If so, it means OneDrive is out of sync and the folders affected by this issue are not syncing properly.

How to turn off background applications on Windows

How to turn off background applications on Windows

Turning off background applications on Windows 10 will help your computer run less sluggishly and save system resources. The following article by WebTech360 will guide readers on how to turn off background applications on Windows 10.

How to turn off mouse acceleration on Windows 11

How to turn off mouse acceleration on Windows 11

If you only use your mouse for common tasks, it is not necessary to enable mouse acceleration. Here are instructions for turning off mouse acceleration in Windows 11.

Learn About File Pilot: The Super Fast File Manager That Replaces Windows File Explorer

Learn About File Pilot: The Super Fast File Manager That Replaces Windows File Explorer

File Pilot is a lightweight, clean, and feature-rich file manager that outperforms the Windows default tool in every way.

Customize Default User Profile in Windows 7 – Part 1

Customize Default User Profile in Windows 7 – Part 1

In this series of articles we will introduce you to how to customize the default user profile in Windows 7.

How to enable Ransomware Protection on Windows

How to enable Ransomware Protection on Windows

Ransomware Protection is a useful feature that comes with Windows 11 to help secure users' devices against Ransomware attacks.

How to Use Windows Advanced Boot Options to Troubleshoot Faster

How to Use Windows Advanced Boot Options to Troubleshoot Faster

When your Windows PC has problems booting, Advanced Boot Options can help you figure out what's wrong.

8 reasons to choose Windows 10 instead of Windows 11

8 reasons to choose Windows 10 instead of Windows 11

Windows 10 is well supported. Software and hardware compatibility issues are rare. On the other hand, there have been major compatibility issues with Windows 11.

The Easiest Ways to Find Large Files on Windows

The Easiest Ways to Find Large Files on Windows

A quick and effective solution is to identify and delete large, space-consuming files that are hiding on your computer.

Download and experience Windows 11 SuperLite, super smooth, super light

Download and experience Windows 11 SuperLite, super smooth, super light

Like other Windows operating systems, Windows 11 still contains software and components that make the machine heavy.

How to display weather widget on Windows 10 Taskbar

How to display weather widget on Windows 10 Taskbar

If you want to review weather information, show the weather widget again on the Windows 10 Taskbar, follow the instructions below.