TechBuzzPro

How to Add Exclusions in Windows Security

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To add an exclusion in Windows Security, open Windows Security > Virus & threat protection > Manage settings (under Virus & threat protection settings) > Add or remove exclusions > Add an exclusion, then choose File, Folder, File type, or Process and select the item. This tells Microsoft Defender to skip scanning that item, which is useful when a legitimate file or tool is being flagged or blocked. You need to be signed in as an administrator, and you should only exclude items you trust completely.

What You'll Need

  • A Windows 10 or Windows 11 PC with Windows Security (Microsoft Defender) as the active antivirus. If a third-party antivirus is installed, Windows Security may be disabled and exclusions must be set in that app instead.
  • An administrator account on the PC. Standard users cannot add or remove exclusions.
  • The exact file, folder, file extension, or process name you want to exclude. Have the path ready (for example, C:\Tools\MyApp\MyApp.exe) so you do not exclude the wrong item.

Step-by-Step

  1. Open Windows Security. Click the Start button, type Windows Security, and press Enter. Alternatively, click the shield icon in the notification area of the taskbar.
  2. Select Virus & threat protection from the left-hand menu (or from the home tiles).
  3. Under the Virus & threat protection settings heading, click Manage settings.
  4. Scroll down to the Exclusions section and click Add or remove exclusions. Windows will ask for administrator permission (User Account Control); click Yes.
  5. Click the Add an exclusion button and choose one of the four types:
    • File – excludes a single file. Browse to the file and select it.
    • Folder – excludes everything inside a folder, including subfolders. Browse to the folder and select it.
    • File type – excludes all files with a given extension (for example, .log or .tmp). Enter the extension without the dot, or with it if the dialog accepts it.
    • Process – excludes a running process by its executable name (for example, MyApp.exe). This is useful for developer tools or scripts that Defender keeps blocking.
  6. Confirm your selection. The item now appears in the exclusions list. Repeat steps 5–6 for any additional items.
  7. Close Windows Security. Exclusions take effect immediately; you do not need to restart the PC, though restarting the app or process that was being blocked is a good idea.

Menu labels can differ slightly between Windows versions and regional builds. If you cannot find an option, use the search box in Windows Security or check the version of Windows you are running.

Common Mistakes

  • Excluding too much. Excluding an entire drive or a broad file type like .exe or .dll removes protection for a huge number of files. Exclude only the specific file, folder, or process you need.
  • Excluding before verifying. A file that Defender flags may genuinely be malicious. Confirm the file is legitimate (for example, downloaded from the official vendor site) before excluding it.
  • Using a third-party antivirus. If another antivirus is installed, Windows Security may be turned off and its exclusions will not apply. Set exclusions in the third-party app instead.
  • Typing the wrong process name. Process exclusions require the executable name exactly as it appears in Task Manager, including the .exe extension. A typo means the exclusion does nothing.
  • Forgetting the folder scope. Folder exclusions include all subfolders. If you only want to exclude one file inside a folder, use a File exclusion instead.
  • Assuming exclusions sync. Exclusions are local to that PC. They do not carry over to other devices or to a new Windows installation.

Tips

  • Keep a short list of what you have excluded and why. Review it periodically and remove exclusions you no longer need.
  • Prefer Folder or Process exclusions for development tools that create many temporary files, rather than excluding each file one by one.
  • If you use a sync tool or backup software that Defender scans heavily, excluding its working folder can reduce CPU usage, but only do this for software you trust.
  • Exclusions apply to real-time scanning, scheduled scans, and cloud-delivered protection. They do not disable SmartScreen or firewall rules, which are separate features.
  • On managed work or school PCs, exclusions may be controlled by your organization and the Add button may be greyed out. Contact your IT administrator in that case.

Troubleshooting

  • The Add an exclusion button is greyed out. This usually means you are not signed in as an administrator, or your device is managed by an organization that controls Defender settings. Sign in with an admin account or contact your IT admin.
  • The exclusion was added but the file is still blocked. Check that you excluded the correct path or process name. Also confirm no third-party antivirus is active, and restart the app that was being blocked.
  • Windows Security will not open. Restart the PC, then try again. If it still fails, check that the Security Center service is running (services.msc) and that Windows is up to date.
  • You cannot remove an exclusion. Click the item in the exclusions list and choose Remove. If the option is unavailable, the setting may be managed by policy; check with your administrator.
  • Defender still quarantines the file after exclusion. The file may have been detected before the exclusion was added. Restore it from Protection history (Virus & threat protection > Protection history) and confirm the exclusion is listed.
  • Exclusions disappeared after an update or reset. A feature update or reset can clear settings. Re-add the exclusions and keep a note of them.

Frequently Asked Questions

Do I need to restart my PC after adding an exclusion?

No. Exclusions take effect immediately. Restarting the blocked app is enough in most cases.

Are exclusions the same as turning off real-time protection?

No. Exclusions skip specific items, while real-time protection stays on for everything else. Turning off real-time protection leaves the whole PC less protected and should be temporary.

Can I exclude a whole drive?

You can select a drive as a folder exclusion, but it is not recommended because it removes scanning for everything on that drive. Exclude only what you need.

Do exclusions apply to all user accounts on the PC?

Yes. Exclusions are system-wide and require administrator rights to change.

Will exclusions slow down or speed up my PC?

Excluding large folders that Defender scans frequently can reduce CPU and disk usage. Excluding small files has little effect.

How do I remove an exclusion later?

Return to Virus & threat protection > Manage settings > Add or remove exclusions, select the item, and choose Remove.