How to Add Exceptions to Windows Security

Windows Security calls antivirus exceptions exclusions. In Virus & threat protection, open Manage settings, then Add or remove exclusions. Choose a file, folder, file type, or process to skip during Defender real-time scanning.

A firewall exception and permission to change a protected folder are separate controls. Read the warning you're trying to solve before choosing an exception, so you change the protection responsible for that block.

Choose the exception that matches the warning

An antivirus exclusion tells Defender to skip something during real-time scanning. Use it only for an item you've checked and trust. A broad exclusion leaves more of your computer outside that protection than a single-file entry does.

A firewall block needs a firewall rule. An app blocked from changing Documents or another protected folder can need Controlled folder access permission. Neither calls for excluding an entire drive from antivirus scanning.

If Defender has already detected a threat, read its status first. The Windows Security threat guide explains quarantine, removal, and allowed threats. An exclusion won't explain the status of a file that's already been removed.

Microsoft says exclusions apply to Defender's real-time scanning. Scheduled scans and third-party antivirus products may still scan the same items.

Open the antivirus exclusions page

Open Start, type Windows Security, and open the app. Select Virus & threat protection. Under Virus & threat protection settings, choose Manage settings, then find Exclusions and select Add or remove exclusions.

Another Windows 11 route is Settings > Privacy & security > Windows Security > Open Windows Security. Windows 10 uses Settings > Update & Security > Windows Security.

Continue with the controls inside Windows Security. If a different antivirus provider is active, its settings may manage the relevant scanning instead. An exclusion you add to Defender won't change another antivirus app's settings.

Drawing of Windows Security Virus and threat protection settings with Add or remove exclusions selected

Accept the administrator prompt when you have permission for this change. An unavailable or managed setting on an organization's PC needs your administrator's help. Don't override the organization's security policy.

Before creating an entry, identify the exact item and why it needs exclusion. Follow the app maker's recommendation for the particular file or process. Don't turn off all antivirus protection just because an installation failed.

Add one specific file or folder

On the Exclusions page, choose Add an exclusion, then File. Browse to the trusted file, select it, and confirm. Check that the new entry points to the file you meant to exclude.

For a folder, use Add an exclusion > Folder, select the directory, and confirm. This covers its files too. Choose the smallest folder that meets the requirement, rather than Downloads or your whole user profile.

Drawing of Windows Security Exclusions with the Add an exclusion menu and File, Folder, File type and Process choices

I'd start with the exact file when that's all the software needs. A folder exclusion keeps applying as files are added to that folder, which can be much broader than the single item you checked today.

Return to the app or operation that was failing and try it once. If the problem remains, read the new error rather than expanding the exclusion automatically. It may involve a different control or a file that was already quarantined.

Write down the entry you added so you can remove it later. Keep the trusted software's location in mind if an update moves it. A file exclusion applies to the location you selected, so it won't cover every future copy of that program.

Use file-type and process exclusions carefully

Choose File type only when you intend to exclude every file of that type. Entering an extension is different from picking one document. Other files sharing that extension can fall within the same exclusion.

A Process exclusion applies to files opened by that process during real-time scanning. That means you're excluding files the program opens, not just the program itself.

Use the full path and filename when excluding a particular process. The support instructions recommend this so another program with the same filename is less likely to get the same exclusion.

Follow the software maker's exact requirement if it provides one. If it asks for one process, don't exclude a whole file type just because that's easier to enter. Check that your entry covers only what the software needs.

After adding a process entry, retry the operation. A scheduled or manual scan may still check the item: the process exception applies to real-time scanning. Don't assume every scan uses that same exception.

Use a different control for protected folders or networking

For a Controlled folder access block, open Windows Security > Virus & threat protection > Manage ransomware protection. Select Allow an app through Controlled folder access, approve the prompt, and choose Add an allowed app.

Select the recently blocked app or browse to the trusted executable. This gives that app permission to change protected folders. It doesn't require turning off the folder protection for every other app.

Close and reopen the app, then retry saving to the protected location. Try the same save that failed. An antivirus exclusion doesn't also give the app permission to save in Documents.

For a firewall block, open Windows Security > Firewall & network protection > Allow an app through firewall. Select Change settings, find the app or use Allow another app, and choose the network types it needs before confirming.

Limit that permission to the networks the app needs. Allowing public networks gives it access in different places from your private home network. Follow the app's networking requirement instead of selecting both automatically.

Remove the exception and handle managed settings

Return to Virus & threat protection > Manage settings > Add or remove exclusions. Select the entry you no longer need and choose Remove. Verify that the selected exclusion has disappeared.

If you allowed a threat by mistake, use the allowed-threat controls rather than looking only in Exclusions. Those are different lists. A file that won't restore from quarantine also needs its own status checked.

If a setting is locked, tell IT which page it's on and what the software needs. For a suspected false detection, ask the app developer and Microsoft's malware submission service to review the file instead of widening the exception.

The Short Version

Choose a narrow Defender exclusion through Add or remove exclusions. Firewall access, protected-folder access, and quarantined threats use separate controls. Remove an exclusion when its reason no longer applies.

Checked December 2, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment