On Windows 10, the Windows Defender Antivirus is your default anti-malware engine to protect your device and data from viruses, roolkits, ransomware, and other security threats.

Although for the most part the built-in Windows 10 antivirus does a pretty good job, it may flag a file or folder that you trust as malicious. If you want to prevent this type of behavior from happening, Windows Defender Antivirus includes an option to exclude files and folders, as well as file types and processes from getting scanned and blocked.

In this Windows 10 guide, we walk you through the steps to exclude specific items and locations from Windows Defender Antivirus scans.

How to prevent Windows Defender from scanning specific files

If you have certain files, folders, file types, and processes that you want to exclude from Windows Defender Antivirus scans, use the following steps:

  1. Open Windows Defender Security Center.
  2. Click Virus & threat protection.
  3. Click the Virus & threat protection option.

  4. Under "Exclusions," click the Add or remove exclusions option.
  5. Click the Add an exclusion button.

  6. Select the content you want to exclude from Windows Defender Antivirus, such as:

    • File — Excludes only one file per exclusion.
    • Folder — Excludes a folder and its content, including sub-folders.
    • File type — Instead of excluding files and folder locations, you can configure the antivirus to ignore files with a specific extension no matter their location.
    • Process — Excludes background processes by name.

  7. Continue with the on-screen directions to add the new exclusion depending on your selection. (For example, if you select File, you simply need to browse and select the file you want to exclude. Or if you select the File type option, you only need to enter the extension of the file format to skip during scans.)

Once you complete these steps, you may need to repeat the instructions to exclude other items you don't want the antivirus to scan to avoid false positives.

At any time, you can remove an exclusion using the same instructions, but on step No. 5, make sure to select the item and click the Remove button.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

Latest And Best Prime Day Deals

Unlock voice control with Echo device deals and $5 Amazon smart plugs
Amazon Echo devices bundled with $5 smart plugs

Amazon's Smart Plug lets you start voice controlling anything plugged into it by asking an Alexa-compatible device, and today's deal lets you snag one for only $5 with purchase of select Echo devices.

Be more productive with a year of Office 365 Home and a free $50 Amazon gift card
Office 365 Home 12-month subscription and $50 Amazon gift card
$99.99 $150.00 Save $50

The subscription works with up to six people, but that card can be all yours.

Amazon's Fire TV Cube is down to just $70 thanks to this Prime Day deal
Amazon Fire TV Cube
$69.99 $119.99 Save $50

Grab TCL's 32-inch 720p Roku TV for less than $100 in this Prime Day Lightning deal
TCL 32S325 32-inch 720p Roku TV
$99.99 $130.00 Save $30

Act fast while you can. These Lightning deals tend to sell out quick.

The Ring Alarm security system is reaching new low prices for Prime Day
Ring Alarm home security systems

Various configurations of the Ring Alarm are discounted to their best prices yet exclusively for Prime members at Amazon through Tuesday night to help keep your home secure.

The Sonos Beam Prime Day deal includes a $40 discount and 2 $50 Amazon gift cards
The Sonos Beam Prime Day deal includes a $40 discount and $100 in Amazon gift cards
$359.00 $499.00 Save $140

That's just so much savings in one deal. You'll have to wait for the physical gift cards, but that's basically $100 to spend however you want.

Prime Day dropped this PlayStation 4 console bundle to just $250
PlayStation 4 Slim 1TB console with Marvel's Spider-Man and Horizon Zero Dawn
$249.99 $359.98 Save $110

This deal on the PlayStation 4 Slim console saves you $50 off its regular price while also including Marvel's Spider-Man and Horizon Zero Dawn Complete Edition for free. You'll just need an Amazon Prime membership to snag it.

The newest device in the Echo family, the Show 5, is now down to just $50
Echo Show 5
$49.99 $89.99 Save $40

It's only been on the market since May, but it hasn't escaped the Prime Day price cuts.

More Prime Day Deals