Last updated on November 17th, 2026 at 03:15 pm
To trust a downloaded file in Windows 11, right-click the file, select Properties, check the Unblock checkbox on the General tab, and select OK. Do this only for a file that comes from a source you trust. The warning you see decides which route applies, so this guide covers each one separately.
Applies to: Windows 11 (the Windows Security steps are the same in Windows 10) and Microsoft 365 apps for Windows.
What “trusting a file” means in Windows 11
Windows 11 has no single “trust this file” switch. Several separate protections can stop a file, and each has its own way to let one file through:
| What you see | What is stopping the file | How to let it through |
|---|---|---|
| A file from the internet or an email will not open or run normally | Mark of the Web, a tag Windows adds to downloaded files | Unblock in the file’s Properties |
| A “Windows protected your PC” message when you start an app | Microsoft Defender SmartScreen | Run anyway |
| The file disappears or a threat alert appears | Microsoft Defender Antivirus in Windows Security | Protection history, or an exclusion |
| A Word, Excel, or PowerPoint file opens with a security bar | Office active content protection | Enable Content (Trusted Documents) |
Mark of the Web is the detail behind the first row. Windows adds it automatically to files from untrusted locations, such as internet downloads and email attachments, and records the zone the file came from. Zone 3 means the internet. Apps read that tag and treat the file with extra care.
Before you trust any file
Every one of these routes removes a layer of protection for that file, so the check comes first. Before you unblock a file, review the file and its source and verify that it is safe to open.
- Confirm the source. The file should come from the publisher’s own website, the Microsoft Store, or a person or organization you know and were expecting a file from.
- Be suspicious of pressure. An unexpected email attachment, a file that asks you to turn off your antivirus, or a “crack” or “activator” is not a candidate for trusting.
- Scan it first. Open Windows Security, select Virus & threat protection, and run a Custom scan, which scans only the files and folders that you select. Pick the folder that holds the file.
- If in doubt, download it again. A fresh copy from the official source is safer than forcing a questionable copy to run.
Is it safe to trust a file in Windows 11?
It is as safe as the file’s source. The routes in this guide do not check the file for you; they tell Windows to stop warning you about it. Verify where the file came from and scan it before you use any of them.
Unblock a downloaded file in Properties
Use this when a file you downloaded or received by email is being treated as untrusted, for example an Office file whose macros are blocked or a script that will not run.
- Open File Explorer and go to the folder that holds the file, such as Downloads.
- Right-click the file and select Properties. The Properties dialog box opens.
- Stay on the General tab and find the Unblock checkbox.
- Check the Unblock checkbox.
- Select OK or Apply. Windows removes the internet tag from that one file.

The change applies only to that file. Other downloads keep their tag, and so does a new copy of the same file if you download it again. The same steps appear in the article on macros from the internet being blocked by default in Office.
Unblock the file with PowerShell instead
PowerShell has a command that performs the same operation as the Unblock control in the Properties dialog box. It is handy when the checkbox is hard to reach or when you are already working in a PowerShell window.
- Open PowerShell.
- Type Unblock-File -Path followed by the full path to the file, for example Unblock-File -Path C:\Users\User01\Downloads\PowerShellTips.chm.
- Press Enter.
According to the Unblock-File documentation, the command removes the Zone.Identifier data that marks the file as downloaded from the internet. Running it on a file that is not blocked has no effect and produces no error. If your goal is to run a downloaded script, the execution policy matters too, so you may also need to enable running scripts in Windows 11.
Run an app that SmartScreen stopped
Microsoft Defender SmartScreen checks downloaded programs, and the digital signature used to sign them, against what Microsoft already knows. A file with an established reputation opens without a warning. A file that is not on the list of well-known, frequently downloaded files gets a warning that advises caution, and a file that matches software known to be unsafe gets a warning that it might be malicious.
For an unrecognized app, the warning is titled Windows protected your PC. For a signed app, the warning shows the verified publisher name, which is worth comparing with the company you expected.
- Read the warning and check the app name and publisher shown in it. You may need to expand the details in the warning to see them.
- If the publisher is not who you expected, close the warning and delete the file.
- If the file is from a source you trust, select Run anyway. The app starts.
A brand-new release from a small developer can trigger this warning just because few people have downloaded it yet, so the warning is not proof of malware. It is also not proof of safety. There is no need to switch the feature off for one file. If you are thinking about that, read what the SmartScreen setting in Windows 11 controls first.
Restore or allow a file that Windows Security flagged
This is the highest-risk route, because Microsoft Defender Antivirus identified the file as a threat. Use it only for a false positive on a file whose source you have confirmed.
Restore a quarantined file from Protection history
- Select Start, type Windows Security, and open the app.
- Select Virus & threat protection.
- Under Current threats, select Protection history. Recent items are listed.
- If the list is long, filter it to Quarantined Items.
- Select the item you want to keep and read what Windows Security reports about it.
- Choose an action, such as Restore.
Threats you chose to allow are listed on the Allowed threats page. Windows Security will not take any action against threats you have allowed, so review that page from time to time.
Add an exclusion for one file
An exclusion tells Microsoft Defender Antivirus to stop checking an item. Be careful: adding an exclusion means those files are no longer checked for threats, which could leave your device and data vulnerable.
- In Windows Security, select Virus & threat protection.
- Under Virus & threat protection settings, select Manage settings.
- Scroll to Exclusions and select Add or remove exclusions.
- Select Add an exclusion, then choose File.
- Browse to the file and select it.
The four exclusion types are File, Folder, File type, and Process. Choose File whenever you can. A Folder exclusion covers every file in that folder, and a File type exclusion covers every file with that extension, so excluding your Downloads folder or all .exe files would switch off checking for far more than the one file you meant. The full list of options is in Virus & threat protection in the Windows Security app.
Should I turn off real-time protection to open a file?
No. That removes protection for everything on the PC to solve a problem with one file. A single File exclusion, or restoring one item from Protection history, is the narrower choice, and both are easy to reverse.
Trust a Word, Excel, or PowerPoint document
Office files can contain active content such as macros, ActiveX controls, and data connections. When you open such a file, a Message Bar appears. If you trust the source, select Enable Content. The file becomes a trusted document and opens without the Message Bar next time.
Trust documents only if you trust the source of the file. Files on a network deserve extra care, because other people could change the active content in them.
If the bar instead reports that Microsoft blocked macros from running because the source of the file is untrusted, the file carries the Mark of the Web. Close the file, unblock it in Properties as described above, and open it again. The macro settings themselves are covered in enabling macros in Excel.
Confirm it worked and undo it
- Unblock: open the file again. It should open or run without the earlier block. There is no “re-block” control; to get a protected copy back, delete the file and download it again.
- SmartScreen: the app starts after you select Run anyway. The setting itself is unchanged, so other unrecognized apps still get a warning.
- Allowed threats: on the Allowed threats page, select the item and select Don’t allow. Windows Security acts on it again the next time it sees that threat.
- Exclusions: go back to Add or remove exclusions, select the exclusion, and select Remove.
- Office trusted documents: in the Office app, go to File > Options > Trust Center > Trust Center Settings > Trusted Documents and select Clear. This clears the whole list, not one file. More about the setting is in Trusted documents.
No Unblock box or Run anyway option
There is no Unblock checkbox in Properties
Unblocking applies to files that carry the Mark of the Web. A file you created yourself, or one that has already been unblocked, has nothing to unblock. If the file still will not open, the block is coming from somewhere else, so check the SmartScreen and Windows Security sections above.
There is no Run anyway option
On a work or school PC, an administrator can turn on SmartScreen with a setting that prevents people from bypassing its warnings. It is the recommended setting for organizations, so its absence is deliberate. Ask your IT team to review the app.
Exclusion settings are grayed out
When these settings are deployed through Group Policy, the Virus & threat protection settings are grayed out and unavailable on individual PCs. Only your administrator can add the exclusion.
The file is detected again after you restore it
Restoring puts the file back, but it does not change what the antivirus thinks of it. Before adding an exclusion, download a fresh copy from the publisher and contact the publisher about the detection. A file that keeps being flagged deserves a second look, not a wider exclusion.
Enable Content does not make the document trusted
A document cannot be trusted in several cases: the file was opened from an unsafe location such as a temporary folder, the file is a template, or an administrator has turned the feature off. Save the file to a normal folder such as Documents and open it from there.
The block message mentions Smart App Control
Smart App Control is a separate Windows 11 feature, found with the app and browser control settings in Windows Security. It blocks malware, potentially unwanted apps, and unknown, unsigned code. If it stops an app, look for a current, signed version from the publisher or the Microsoft Store.
Related guides

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Each guide follows Microsoft, Apple and Google’s own documentation and is updated when the steps change. Screenshots marked “Recreated” are illustrations of the real screens.