TechBuzzPro

How to Add an Exclusion in Windows 11 Security

· 4 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 11 Security, open Windows Security, go to Virus & threat protection, click Manage settings under Virus & threat protection settings, scroll to Exclusions, click Add or remove exclusions, then choose Add an exclusion and pick File, Folder, File type, or Process. This stops Microsoft Defender from scanning that item, which is useful when a trusted file or folder is being flagged or when a program needs uninterrupted access. You will need administrator rights on the PC, and you should only exclude items you fully trust.

What You'll Need

  • A Windows 11 PC with an administrator account.
  • Microsoft Defender Antivirus enabled (Windows Security is the built-in app).
  • The exact path of the file or folder, or the file extension or process name you want to exclude.

Step-by-Step

  1. Open Windows Security. Click the Start button, type Windows Security, and press Enter. You can also click the shield icon in the notification area if it is visible.
  2. In the left-hand menu, click Virus & threat protection. (Menu labels can differ slightly by Windows version and region.)
  3. Under Virus & threat protection settings, click Manage settings.
  4. Scroll down to the Exclusions section and click Add or remove exclusions. If User Account Control asks for permission, click Yes.
  5. Click Add an exclusion and choose the type:
    • File – excludes a single file.
    • Folder – excludes everything inside a folder.
    • File type – excludes all files with a specific extension (for example, .log).
    • Process – excludes a running process by its executable name (for example, myapp.exe).
  6. Browse to the file or folder, or type the extension or process name, then confirm. The item appears in the Exclusions list immediately.
  7. Close Windows Security. The exclusion is active right away; no restart is required.

Common Mistakes

  • Excluding entire drives or user folders. This removes real protection for a huge area. Exclude only the specific file or folder that is causing the problem.
  • Using a file-type exclusion for a common extension. Excluding .exe or .dll means Defender will not scan any file with that extension, which is dangerous.
  • Excluding a process by the wrong name. The process exclusion needs the executable name (such as app.exe), not the window title or the full path.
  • Forgetting to remove temporary exclusions. An exclusion added for a one-off task stays until you delete it.
  • Assuming exclusions apply to other security tools. Exclusions in Windows Security affect Microsoft Defender only; third-party antivirus software has its own exclusion settings.

Tips

  • Keep a short note of why each exclusion exists and when you added it, so you can review it later.
  • Prefer folder exclusions over file-type exclusions when you need to exclude several related files.
  • If a program is being blocked, check whether the publisher offers a digitally signed installer or a newer version before excluding it.
  • You can remove an exclusion at any time from the same Exclusions screen by clicking the item and choosing Remove.
  • Exclusions do not stop Defender from scanning other files in the same folder unless you exclude the whole folder; be precise.

Troubleshooting

  • Add or remove exclusions is greyed out. This usually means you are not signed in as an administrator, or your organisation manages the device. Sign in with an admin account; if the PC is work- or school-managed, contact your IT administrator because policy may block changes.
  • The exclusion does not seem to work. Confirm you excluded the correct path or process name. For a process, make sure the program is running and the name matches exactly. Restart the program after adding the exclusion.
  • Windows Security will not open. Restart the PC and try again. If it still fails, check that Microsoft Defender is not disabled by another security product; only one antivirus should be active at a time.
  • You cannot find the Exclusions section. Make sure you are in Virus & threat protection > Manage settings. On some managed devices this section is hidden by policy.
  • An exclusion was added but the file is still blocked. Another protection layer, such as SmartScreen or a third-party firewall, may be blocking it. Check the notification for which component flagged the file.

Frequently Asked Questions

Do exclusions in Windows Security apply to all users on the PC?

Yes. Exclusions are system-wide and affect all user accounts on that device.

Can I exclude a whole drive?

The interface lets you add a folder exclusion, and a drive root can be selected as a folder, but doing so removes real-time scanning for everything on that drive. It is not recommended.

Will an exclusion stop Defender from quarantining a file that was already detected?

No. An exclusion prevents future scans of that item. If a file is already in quarantine, you need to restore it from the Protection history section.

Do exclusions sync between my Windows PCs?

No. Exclusions are stored locally on each PC and are not synced through your Microsoft account.

Can I add an exclusion for a website or URL?

Windows Security does not offer URL exclusions in the Exclusions list. Website blocking is handled by SmartScreen and your browser, not by file exclusions.

How do I remove an exclusion later?

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