How to manually allow a blocked file or app in Windows Security

To manually allow a blocked file or app, open Windows Security > Virus & threat protection > Protection history, select the blocked item, and choose Allow on device or Allow from its Actions menu.

This guide also covers exclusions, Controlled folder access, the Unblock check box for downloaded files, SmartScreen and Edge download blocks, the firewall, and how to undo an allow later.

How to manually allow a blocked file or app in Windows Security
Blocked and quarantined items appear under Protection history; select a card, then Actions to choose Allow on device or Allow. (Image: Microsoft)

Manually allow blocked file or app in Windows Security

Protection history lists every file and app that Microsoft Defender Antivirus or SmartScreen has acted on. You need administrator rights on the PC to open the details of a threat.

  1. Select Start, type Windows Security and open the app.
  2. Select Virus & threat protection, then Protection history. You can also paste windowsdefender://history into the Run box.
  3. Select the card for the blocked file or app to expand it, and select Yes if User Account Control asks.
  4. Open the Actions menu on the card.
  5. For a Threat found – action needed item, select Allow on device.
  6. For a Threat blocked item or a This app has been blocked item, select Allow.
  7. If the file was deleted when it was blocked, download it again; Allow applies the next time Windows sees the file.

Choose Allow only for a file from a source you trust. Microsoft recommends Quarantine for anything you are not sure about, because an allowed threat can put your data and device at risk.

Windows Security protection history status and actions

The status line on each Protection history card tells you what Windows Security already did and which actions you can still take.

Status What it means Action that lets the file run
Threat found – action needed Defender is waiting for your decision Allow on device
Threat quarantined The file is isolated but not removed Restore, then Allow on device on the new item it creates
Threat blocked Defender already removed the file Allow, then download the file again
This app has been blocked SmartScreen stopped a potentially unwanted app before installation Allow, then run the installer again
Remediation incomplete Defender could not finish cleaning the threat Run a full scan before allowing anything

A restored file goes back to its original folder, and Defender detects it again straight away, which is why a second Allow on device is needed. A red card is serious; a yellow card is not urgent but should still be checked.

How do I add apps to Windows Security?

An exclusion tells Microsoft Defender Antivirus to stop scanning a file, folder, file type or process in real time. Use it for an app you trust that keeps getting flagged, never as a general workaround.

  1. Open Windows Security and select Virus & threat protection.
  2. Under Virus & threat protection settings, select Manage settings.
  3. Scroll to Exclusions and select Add or remove exclusions.
  4. Add a new exclusion and choose its type: File, Folder, File type or Process.
  5. Browse to the item, or type it, and confirm.

Exclude the narrowest item that solves the problem: one file is safer than a whole folder. For a process, Microsoft recommends using the full path and file name. Exclusions apply only to real-time scanning, and the app's file location gives you the exact path to paste in.

Add apps to Windows Security exclusions from the Virus & threat protection page
Select Manage settings under Virus & threat protection settings, then scroll to Exclusions; Allowed threats is on the same page. (Image: Microsoft)

How to allow an app through Controlled folder access

Controlled folder access stops untrusted apps from changing files in protected folders such as Documents and Pictures. When it blocks an app you use, Windows shows an App is blocked notice instead of saving the file.

  1. Note the path of the blocked app shown in the notification.
  2. Open Windows Security > Virus & threat protection and select Manage settings under Virus & threat protection settings.
  3. In the Controlled folder access section, select Manage Controlled folder access.
  4. On the Ransomware protection page, select Allow an app through Controlled folder access, then select Yes in the User Account Control prompt.
  5. Select Add an allowed app, then Recently blocked apps and pick the app from the list.
  6. If the app is not listed, select Browse all apps and choose its .exe or .com file.

Restart the app after you allow it. Only add apps you trust, because an allowed app that is later compromised can change or encrypt the files in your protected folders.

Allow an app through Controlled folder access with PowerShell

Add-MpPreference -ControlledFolderAccessAllowedApplications "C:\Program Files\Example\app.exe"

Run it in PowerShell opened as administrator, replacing the path with the full path of your app. Add-MpPreference adds the app to the allowed list without touching existing entries; Set-MpPreference would replace the whole list.

You should see: The command returns no output. The app then appears under Allow an app through Controlled folder access in Windows Security.

How do I manually unblock a file?

Windows marks files that arrive from the internet or as email attachments with a Mark of the Web. Office blocks macros in those files and Windows shows extra warnings until you unblock them.

  1. Right-click the downloaded file in File Explorer and select Properties.
  2. Stay on the General tab.
  3. Select the Unblock check box.
  4. Select OK.
  5. Open the file again.

Mark of the Web only applies on NTFS drives, so files saved to a FAT32 USB drive do not carry it. If the check box is missing, the file is not marked or comes from a network share; see the fixes below.

Manually unblock a file with the Unblock check box in file Properties
The Unblock check box sits next to the note that the file came from another computer and might be blocked. (Image: Microsoft Q&A)

Unblock a downloaded file with the Unblock-File cmdlet

Unblock-File -Path "$env:USERPROFILE\Downloads\report.xlsm"

Unblock-File removes the Zone.Identifier data that marks a file as downloaded. It does the same thing as the Unblock check box on the file's General tab, which makes it handy for several files at once.

You should see: The command returns no output, and the Unblock check box is no longer shown in the file's Properties.

How to allow a blocked download in Microsoft Edge

When Microsoft Defender SmartScreen flags a download, Edge stops it in the downloads panel. You can keep a file you trust without turning SmartScreen off.

  1. Open the downloads panel in Edge from the notification or the Downloads button on the toolbar.
  2. Select More actions (…) next to the blocked download.
  3. Select Keep.
  4. Select Show more, then Keep anyway.

If Edge shows Couldn't download – Virus detected, Microsoft Defender removed the file, so allow it in Protection history first and then download it again. A Blocked result on a work PC can come from a download policy that only your IT administrator can change.

How to run an app when Windows protected your PC appears

The blue Windows protected your PC screen is SmartScreen warning that an app is unsigned or not yet widely downloaded. New apps from small developers often trigger it.

  1. Check where the file came from and that the publisher is the developer you expect.
  2. On the Windows protected your PC screen, select More info.
  3. Read the app and publisher names shown.
  4. Select Run anyway.

If no Run anyway button appears, your organization's policy prevents continuing. On Windows 11, Smart App Control may also block unsigned files before SmartScreen gets the chance to warn.

How to allow an app through Windows Firewall

If a game, chat or server app cannot accept connections, the firewall rather than the antivirus may be blocking it. Allowing an app is safer than opening a port, because the app only opens the ports it needs while it runs.

  1. Open Windows Security and select Firewall & network protection.
  2. Select Allow an app through firewall.
  3. Select Change settings and confirm with an administrator account if asked.
  4. Tick the check box next to the app, and choose Private, Public or both.
  5. If the app is not listed, select Allow another app, browse to its file and add it.
  6. Select OK.

If Change settings stays greyed out, an administrator has locked the firewall settings on that PC.

Allow an app through Windows Firewall from the Firewall & network protection page
Select Allow an app through firewall, then Change settings, and tick Private, Public or both for the app. (Image: Microsoft)

Can you allow an app blocked by Smart App Control?

No. There is no way to allow a single app through Smart App Control; Protection history, exclusions and the Unblock check box do not change its decision. Microsoft states that individual apps cannot bypass Smart App Control. The supported routes are to ask the app's developer to sign it with a valid signature, or to use a signed version or a Microsoft Store version of the app. Turning Smart App Control off removes the protection for every app, so treat that as a last resort rather than a fix for one program.

How to enable a blocked file that still will not open

Office says the file type is "blocked by your File Block settings in the Trust Center"

Office's File Block settings stop that file type from opening or saving.

  1. Open a blank document in the Office app named in the message and select File > Options.
  2. Select Trust Center > Trust Center Settings.
  3. Select File Block Settings and clear the Open or Save check box for the file type.
  4. Select OK twice and open the file again.

File Block check boxes are greyed out

A Group Policy setting from your organization controls File Block.

  1. Ask your IT administrator to change the File Block Settings policy for that Office app.

Office shows a red Security Risk banner about macros

The file carries a Mark of the Web, so Office blocks its macros.

  1. Close the file.
  2. Right-click it, select Properties, select Unblock on the General tab and select OK.
  3. Open the file again.

There is no Unblock check box

Files opened from some network shares do not show it, and unblocking has no effect when the share is in the Internet zone.

  1. Copy the file to a local folder and check its Properties again.
  2. On a work network, ask your administrator to add the share to the Trusted sites or Local intranet zone.

Defender blocks the file again after Restore

Restore puts the file back, and Defender creates a new Threat found item for it.

  1. Open Protection history and select the new item.
  2. Select Actions > Allow on device.
Enable a blocked file type in Office Trust Center File Block Settings
Clear the Open or Save check box for the blocked file type, then select OK twice and reopen the file. (Image: Microsoft)

How to remove an allowed threat or exclusion in Windows Security

Every allow can be reversed. After you remove it, Windows Security acts on the item again the next time it sees it.

  1. Open Windows Security > Virus & threat protection.
  2. On the Virus & threat protection page, open Allowed threats.
  3. Select the item and select Don't allow.
  4. To remove an exclusion, open Manage settings > Add or remove exclusions, select the exclusion and select Remove.

If Defender keeps flagging a file you are sure is clean, submit it as a false positive through the Microsoft Security Intelligence file submission portal instead of leaving a permanent exclusion. To check recent detections first, view the Defender protection history on the PC.

Windows Security blocked file FAQ

How to allow blocked files in Windows Security?

Open Windows Security > Virus & threat protection > Protection history, select the blocked item and choose Allow on device or Allow from Actions. For a file Defender keeps flagging, add a File exclusion under Manage settings > Add or remove exclusions.

How to enable a blocked file?

Right-click the file, select Properties, tick Unblock on the General tab and select OK. If Defender blocked it, allow it in Protection history instead. Office file types blocked by File Block settings are enabled in Trust Center > File Block Settings.

How to allow a blocked download?

In Microsoft Edge, open the downloads panel, select More actions next to the file, then Keep > Show more > Keep anyway. If Defender removed the file, allow it in Protection history and download it again.

Where is Protection history in Windows 11?

Open the Windows Security app and select Virus & threat protection, then Protection history. The windowsdefender://history link opens it directly. You need administrator rights on the PC to see the details of each threat.

Why does Windows Security block a file again after I allowed it?

Allow on a removed threat only applies the next time Windows sees the file, so the original copy is gone and must be downloaded again. A restored quarantined file is detected again and needs Allow on device on the new item.

Does an exclusion turn off Microsoft Defender for that file?

An exclusion stops Microsoft Defender Antivirus from scanning that file, folder, file type or process in real time. Microsoft warns this makes the device more vulnerable, so exclude only the specific item you trust.

Can I allow an app blocked by Smart App Control?

No. Microsoft states there is currently no way to bypass Smart App Control for individual apps. Ask the developer for a signed version, or use the app's Microsoft Store version if there is one.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *