Advertisement

How to Unblock Files Downloaded from the Internet in Windows 11

Users need to unblock downloaded files from the Internet to stop Windows 11 from blocking access to them. When you click such a file in Explorer, it shows a security warning. Also, for some files like executables (*.exe), Windows blocks them from opening. Here's how to unblock such a file and stop Windows 11 from blocking them.

Advertisеment

By default, Windows adds a zone information to each of the files downloaded from the Internet or received by email. When you are opening any file, the operating systems analyzes that data. If the zone info presents and is refers to the "unsafe" source, you see a warning.

This functionality is implemented in the Attachment Manager component. It writes the zone information to a special area called "alternate data steam" which is invisible to the end user. Such streams, also known as "metadata", only exist on NTFS partitions.

Attachment Manager identifies how risky the downloaded file can be for you by several factors. In short, it checks with what program you open the file, the type of the file, and the source from where you obtained the file.

There are three levels of security warnings you may see when opening a downloaded file.

  • High – You see the message like "Windows found that this file is potentially harmful. To help protect your computer, Windows has blocked access to this file." This warning typically appears for download executable files that don't have a digital signature and aren't known for SmartScreen.
  • Moderate – This applies to certain documents and executables received from LAN. For the latter, you may see the "The publisher could not be verified. Are you sure you want to run this software?" message.
  • Low – For files that are "safe" regardless of the source, Windows doesn't notify the user and allows opening them.

If you find inconvenient to see such prompts every time you open the downloaded files, you need to unblock them. Here is how.

Unblock Downloaded Files

To unblock downloaded files in Windows 11, you can use File Explorer or PowerShell. Also, you can unblock such files directly from the security prompt. Additionally, you can add a special context menu to unblock downloads faster. Finally, you can stop Windows from blocking the downloaded files, so you won't need to unblock them. Let's review these methods in detail.

Unblock Downloaded Files in Windows 11 File Explorer

  1. Open File Explorer (Win + E), and go to the folder where you have your downloads.
  2. Right-click the file, and select Properties from the menu.Select "Properties"
  3. On the General tab of the file properties dialog, place a check mark for the Unblock option.Unblock Downloaded Files 1Unblock Downloaded Files in Windows 11
  4. Windows will no longer prevent you from opening this specific file. Repeat the steps 1-3 for all the files you need on to unlock.

Done!

Perhaps you already know that you can unlock some files by simply opening them. E.g. if you double-click an executable file, you can unlock it right from the security prompt.

Unblock Files from SmartScreen Security Warning

  1. Double-click the download file in File Explorer.
  2. In a Defender SmartScreen dialog titled "Windows Protected your PC", click More info link.The More Info link
  3. Click on the Run anyway button.Click on the Run anyway button
  4. Otherwise, in the Open File - Security Warning prompt, uncheck the Always ask before opening this file option.Always ask before opening this file
  5. Click on Open on Run button, depending on what it has.

Done.

Advanced users may like the PowerShell method.

Unblock Downloaded File in PowerShell

  1. Right-click the Start button and select the Terminal item from the menu.
  2. Switch Windows Terminal to the PowerShell tab (Ctrl + Shift + 1) if it opens to something else.Open Terminal
  3. Now, type the following command: unblock-file -path "full \ path \ to \ downloaded \ file". For example, unblock-file -path "C:\Users\winaero\Downloads\winaerotweaker.zip".Unblock Downloaded File from PowerShell
  4. Once finished, close the Terminal app and open your file.

But if you have plenty of such files, it is an annoying task to unblock each of them individually. A solution here is to unlock all the files at once in a folder.

Unblock All Files in a Folder

  1. Press Win + X and select Terminal from the menu.
  2. In the PowerShell tab type the following command: get-childitem "path \ to \ the \ folder" | unblock-file. This command will unblock all the files in the specified folder; for example get-childitem "C:\Users\winaero\Downloads" | unblock-file.
  3. To unblock all files in the folder and its subfolders, run the following command: get-childitem "path \ to \ the \ folder" -recurse | unblock-file. For example, get-childitem "C:\Users\winaero\Downloads" -recurse | unblock-file.Unblock All Files in a Folder
  4. Wait for the command to finish and close the Terminal. Now all the files are unblocked.

Tip: You can make PowerShell to ask you for confirmation for each of the files. For that, modify the commands above by adding the -confirm argument after unblock-file.

The command may look as follows.

get-childitem "C:\Users\winaero\Downloads" | unblock-file -confirm

A confirmation for unblocking the downloaded files

Unblock Downloaded Files from the Context menu

To save your time, you can add a special context menu to File Explorer. After you can unlock one or all files in a folder by right-clicking it. The context menu entries will invoke the PowerShell commands we have reviewed in the previous chapters.

Note that clicking the Unblock item in the context menu for a folder will unblock all its files at once. There will be an option to unblock all files recursively.

Here's how to add the menu.

Add Unblock File Context Menu

  1. Download this ZIP archive and extract it to any folder.
  2. Open the Add Unblock Context Menu.reg file.
  3. Confirm the User Account Control prompt by clicking on the Yes button.
  4. Now, right-click a file or a folder in File Explorer and select Show more options.Select Show More Options
  5. From the full context menu, select Unblock.Unblock Downloaded Files from the Context Menu
  6. Right-click a folder to unblock all its files at once.unblock all files in a folder from context menu

You are done. You can remove the added menu at any moment later using the other REG file, "Remove Unblock Context Menu.reg".

Finally, if you are brave enough, you can turn off the addition of the zone info to downloaded files. This will prevent Windows from blocking them, and you will no longer need to unblock them using any of the methods.

Prevent Windows from Blocking Downloaded Files

  1. Download these REG files in a ZIP archive from this link.
  2. Extract the files to any directory of your choice, e.g. right to the Desktop.
  3. Double-click the Disable_blocking_of_downloaded_files.reg file to open it.
  4. Now click Yes in the UAC prompt and confirm the Registry change.

From now, Windows will no longer block the downloaded files. The ZIP archive also contains an undo tweak, Enable_blocking_of_downloaded_files.reg.

These two files modify the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments Registry key. There, they change the SaveZoneInformation DWORD value to one of the following numbers:

  • SaveZoneInformation = 1 - Windows doesn't block Internet downloads.
  • SaveZoneInformation = 2 or is missing in the Registry - block downloaded files, which is the default behavior.

Prevent Windows from Blocking Downloaded Files

If you are running Windows 11 Pro, Education or Enterprise editions, you can use the Local Group Policy editor to configure the reviewed option without editing the Registry. Here's how.

Disable Block Files Downloaded from Internet in Group Policy

  1. Open the Run window by pressing Win + R, and type gpedit.msc.open gpedit
  2. On the left, expand the folders to User Configuration > Administrative Templates > Windows Components > Attachment Manager.the Attachment Manager policy
  3. In the right pane, open  the "Do not preserve zone information in file attachments" policy.Do not preserve zone information in file attachments
  4. Select the Enable setting and click OK.

You are done! You can disable the policy at any moment of time in order to restore the default behavior of the operating system.

Finally, you can use Winaero Tweaker to prevent Windows from blocking your downloads.

Using Winaero Tweaker

Download the app from here and install it. Select Behavior > Disable Downloads Blocking in the left.

Disable Downloads blocking in Winaero Tweaker

Now, all you need to do is to check the option on the right.

Besides this setting, you will find a bunch of other options for customizing Windows. Winaero Tweaker is intended to become your Swiss Knife for configuring modern Windows versions with a couple of clicks.

That's all about disabling the blocking of downloads.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

2 thoughts on “How to Unblock Files Downloaded from the Internet in Windows 11”

    1. It is clealrly mentioned in the post.

      To unblock all files in the folder and its subfolders, run the following command: get-childitem “path \ to \ the \ folder” -recurse | unblock-file. For example, get-childitem “C:\Users\winaero\Downloads” -recurse | unblock-file.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.