Advertisement

How to unblock files downloaded from Internet in Windows 10

Once you download files from the Internet, Windows 10 shows you a security warning every time you try to open it. Some file types are blocked from opening. SmartScreen, a security feature of Windows 10, causes such behavior. Let's see how to unblock those files.

When you try to open a file which was downloaded from the Internet, you can see a warning like this:Windows 10 SmartScreen Warning

To get rid of it, you need to do the following:

  1. Right click the file in File Explorer.
  2. In the context menu, select the last item named "Properties".
  3. In the Properties dialog, on the General tab, tick the checkbox named "Unblock":Windows 10 unblock a file

After that, the security warning will disappear.
This is very useful when you need to unblock just one file. In the situation when you need to unblock several files at once, it is impractical to right click on every file, and open its Properties to unblock it.

Using PowerShell, it is posssible unblock multiple files at once in any given folder. It can be done as follows:

  1. Press Win + R on the keyboard to open the Run dialog.
  2. In the Run box, type powershell:Windows 10 run powershell
  3. In the PowerShell console, type the following command:
    get-childitem "C:\Users\winaero\Downloads" | unblock-file

     

    Windows 10 unblock all files in a folderIn this example, C:\Users\winaero\Downloads is the path to the folder which contains all files you need to unblock all at once.

That's it!

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.

29 thoughts on “How to unblock files downloaded from Internet in Windows 10”

  1. Thank you for this! My problem is a little more complex. I have sub-folders and sub-sub-folders with files to get unblocked. Is there a way to unblock all files on a drive, or at least all files within folders & sub-folders. I have also been unsuccessful at getting downloads to not be blocked in the first place.

    1. Open Powershell and run the command below.
      This will work for you silently:
      dir c:\users\winaero\downloads -Recurse | Unblock-File
      This one will report which files will be unblocked, but WILL NOT UNBLOCK them (the report only):
      dir c:\users\winaero\downloads -Recurse | Unblock-File -WhatIf
      Enjoy.
      It is a good idea to cover it tomorrow.

  2. THANK YOU!

    I was really kicking myself for having forgotten to ‘Unblock’ a ZIP file containing a TON of files I had to take off Copy.com (because they’re shutting down) and this really saved me from having to sit and do this by hand, which would have taken, well, quite some time.

  3. To prevent sites from having this error in the future, you need to add them to trusted sites. This is useful when you download often from a particular site.

    This can be done (in IE8 onwards) by setting the following registry keys:

    Create new Key under:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\exampledomain.com]

    Create a DWord Value for each protocol you need to trust; for example
    “http”=dword:00000002
    “https”=dword:00000002

      1. Is this the correct way it write out the command to unblock all files in folders and subfolders? ‘Get-ChildItem -recurse | unblock-file’ ? Thanks.

  4. Another way to bulk unblock files is to ZIP them, delete the originals, then UNZIP them.

  5. i try do all tweaks but they block me even comand for powellshell show skiped so it doesnat work at all.who can do i donat know but probably from isp to microsoft they donat like we use tweaks.my window 10 admin is remote admin,i try all ur tweaks but they cancel it or block me even comand in powellshell doesnat work mean they use skip and comand nat work what i can do

  6. Hi, Im super new to this and I am trying to unblock files so I can mod a game on steam and I have no clue what script to use I have looked for hours trying to find a video to help can you help?

  7. I have tried your method and it won’t work. I even change the name in path from winaero to my name and it says it never heard of me. I need to unblock several thousand scrapkits to work with.

  8. I tried this command in powershell

    dir c:\users\winaero\downloads -Recurse | Unblock-File

    does not work, I even tried changing the users to my name and nothing. I even tried unblocking each file manuely and it reverts back to being blocked.

Leave a Reply

Your email address will not be published.

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