- Use protection history and exclusions to address false positives without disabling all security.
- Temporarily adjust Attachment Manager, Ransomware Control, and Chrome/Edge filters.
- Completely disabling Defender is a last resort; prioritize policies and logging with caution.
When you try to download a program or open a document and Windows blocks it, it's incredibly frustrating. The good news is that there are several ways to prevent Microsoft Defender from blocking files you know are safe without leaving your PC vulnerable to malware . Here, we've compiled all the settings scattered across various sources and menus in Windows, Chrome, and Edge into a single guide.
Before changing anything, it's a good idea to confirm the source of the block, because sometimes it's the browser and other times it's Windows security itself. Furthermore, there are temporary and one-off measures (disabling real-time protection or adding exclusions) and more permanent ones (group policies or registry changes) that you should use judiciously. We'll explain it step by step, with clear risk warnings so you can keep everything under control.
First check if the block is coming from Microsoft Defender

The first step is to check if Windows Security is responsible. Open Settings (Windows + I), go to Update & Security > Windows Security , and click Open Windows Security . Then, go to Virus & threat protection and open Protection history.
In that list, you'll see what Defender has detected, including quarantined files and blocked events . Note: the displayed name is sometimes temporary and difficult to identify, so if you're unsure, you can delete the quarantine records and try the download again. If it reappears, you'll know for sure that Defender blocked it.
If it's a false positive from your antivirus and you completely trust the file, you have two options: restore it from quarantine or temporarily disable real-time protection to complete the download/execution (we explain how below). Keep in mind that Windows often blocks executables without a known signature or older software that raises suspicion due to its behavior, even if it's legitimate.
Attachment Manager: Open blocked downloads without disabling everything
Windows applies an extra layer of security to items from the internet or email . That's why you sometimes see a warning that the file comes from an unknown source. A quick fix for this isolated case is to go to the file, right-click > Properties > General tab , and check Unblock , then Apply and OK.
If you do this often it can be a pain, so you have two ways to adjust this behavior globally: with Group Policy (Windows 10/11 Pro, Enterprise) or with the Registry (all editions, with caution).
Using the Group Policy Editor
Open Run (Windows + R), type gpedit.msc and press Enter. Navigate to:
Configuración de usuario / Plantillas administrativas / Componentes de Windows / Administrador de archivos adjuntos
In the right-hand panel, open the policy "Do not retain zone information in file attachments ." Set it to Enabled , apply, and accept. This will stop Windows from adding the zone metadata that triggers the warning when opening downloaded files. Restart your PC to ensure the change takes effect.
Configure the Registry (for all editions)
Open Run, type regedit , and press Enter. Beforehand, create a backup of the registry by going to File > Export in case you need to revert to a previous version. Go to:
HKEY_CURRENT_USER / Software / Microsoft / Windows / CurrentVersion / Policies / Attachments
If the Attachments key doesn't exist, create it: right-click on Policies > New > Key. Inside, create a DWORD (32-bit) value called SaveZoneInformation and assign it the value 1. From then on, the zone will not be attached to downloaded files, and warnings will be reduced when opening them.

Illustration: Settings panel
Folder Access Control: Beware of the Downloads Folder
Windows ransomware protection blocks modification of files in protected folders. By default, it includes the Downloads folder , so your browser may fail to save files there. Go to Windows Security > Virus & threat protection > Ransomware protection and open Protected folders.
If the problem is that you can't complete downloads, remove Downloads from that list with Remove , or add a specific exception for the browser you're using. This way, you enable only what's necessary without lowering the rest of your protections.
Configure Google Chrome to not over-block
Chrome has three security levels in Settings > Privacy and security > Security . Two of them automatically block files considered dangerous , but sometimes they fail. If you're sure about the source, temporarily lower the level (for example, to Standard protection or, in this case only, No protection ) to prevent Google Chrome from blocking downloads , complete the download, and then re-enable protection. This is a temporary adjustment to avoid false positives.
Microsoft Edge: SmartScreen and Potentially Unwanted Apps
Edge includes filters that stop many threats. Go to Settings > Privacy, search, and services and check two key toggles: Microsoft Defender SmartScreen and Block potentially unwanted apps.
If you suspect the blocking is affecting a trusted file, you can temporarily disable these filters, download what you need, and then re-enable them. Remember that these layers are useful for stopping adware, potentially unwanted applications (PUAs), and malicious websites , so use them to your advantage.
Add exclusions in Microsoft Defender (the finer way)
Another clean way to work with secure files that trigger alerts is to create exclusions in Microsoft Defender. Go to Windows Security > Virus & threat protection , then to Virus & threat protection settings > Manage settings , and scroll down to Exclusions > Add or remove exclusions.
Click Add an exclusion and choose from these options, depending on what you need to protect: File (a specific one), Folder (and everything it contains), File type (by extension, such as .docx or .pdf) or Process (any file opened by that process will be excluded from real-time analysis).
Note that exclusions apply to Microsoft Defender's real-time scanning . Scheduled or on-demand scans may still scan these files if you don't also exclude their paths or extensions. Use them carefully to minimize risk.
Wildcards and environment variables in exclusions
You can use the asterisk ( *) as a wildcard. For example, in file types, the extension *st will exclude .test, .past, .invest, and any other file ending in “st” . In processes, C:\\MyProcess\\* will exclude files opened by all processes located in that folder (and subfolders), and test.* will affect any process named “test” with any extension.
Environment variables also work with process exclusions. This allows you to target paths that change between computers. A practical example would be excluding files opened by an executable within C:\ProgramData\ without having to type the full, fixed path.
Disables real-time protection only during download
For specific cases, you can pause Defender protection. Go to Windows Security > Virus & threat protection , click Manage settings , and turn off Real-time protection . You'll be prompted for administrator permissions and see a warning that your computer is now unprotected.
Download and run only what you need, and reactivate it immediately afterward. It's a useful lever, but remember that the less time it's down, the better for keeping your attack surface under control.
If Defender “grabs” a file and won't let you delete it
Sometimes, when quarantining something or detecting multiple threats within a large ZIP file, Defender may block access to the file and not even let you delete it. If the history keeps "thinking" for hours, try these options in this order:
- Reboot the PC and try again, in case the lock is released.
- Add a exclusion temporary to the folder where the file is and then delete it.
- Deactivate real-time protection on a timely basis, delete the file and reactivate it.
- Starts in Safe Mode and delete the file from there if it is still locked.
It's not possible to easily "restart" the Defender process because it's protected by the system to prevent malware from disabling it. Therefore, these practical methods are often the most effective when a file gets "stuck."
If the block is due to permissions: change the owner carefully
Sometimes the problem is with NTFS permissions . If you need to take control of a folder to manage the detected files, right-click > Properties > Security tab > Advanced . Click Change next to Owner, type Everyone (or the appropriate group/user), confirm with Check Names , and click OK.
Also check the "Replace permissions" box in the advanced dialog and apply. This will give you full access to the folder and subfolders to delete or move the problematic files. Only do this if you are certain that it is not an active threat and that the block was not intentionally caused by Defender.
Completely disable Defender (not recommended)
If you still need to turn it off completely (for example, to install another antivirus program), do so carefully . Remember that before disabling the engine, you should check the Anti-Tampering Protection , which prevents unauthorized changes.
Via Windows Registry
Open Run (Windows + R), type regedit and go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
Create a DWORD (32-bit) value called DisableAntiSpyware and set it to 1. Restart your computer. To revert, change it to 0 or delete the value. Keep in mind that this setting disables native protection, so install another solution as soon as possible.
Via Group Policy (Pro, Enterprise, Education)
Open gpedit.msc and navigate to:
Configuración del equipo > Plantillas administrativas > Componentes de Windows > Antivirus de Windows Defender
Open Windows Defender Antivirus , select Enabled , apply, and accept. Then, restart your computer. When you want to re-enable it, change the policy to Not Configured.
Another option: adjust specific functions instead of turning everything off
From Antivirus and threat protection > Antivirus and threat protection settings you can tweak several toggles without disabling the engine: Automatic sample submission , Cloud-based protection , Tamper protection and Real-time protection (the latter will reactivate itself after a while).
Additionally, from the same screen you can access Folder Access Control , Exclusions, and Notifications . It's best to disable only what's necessary, when needed, and re-enable it once the issue is resolved.
Table of Contents
- 1 First check if the block is coming from Microsoft Defender
- 2 Attachment Manager: Open blocked downloads without disabling everything
- 3 Folder Access Control: Beware of the Downloads Folder
- 4 Configure Google Chrome to not over-block
- 5 Microsoft Edge: SmartScreen and Potentially Unwanted Apps
- 6 Add exclusions in Microsoft Defender (the finer way)
- 7 Disables real-time protection only during download
- 8 If Defender “grabs” a file and won't let you delete it
- 9 If the block is due to permissions: change the owner carefully
- 10 Completely disable Defender (not recommended)
- 11 Another option: adjust specific functions instead of turning everything off