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 folder In 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!

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

  1. Phil

    it’s very annoying message! thanks!

    Reply
    1. Sergey Tkachenko Post author

      Don’t mention it.

      Reply
  2. Keith

    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.

    Reply
    1. Sergey Tkachenko Post author

      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.

      Reply
      1. Tony Jefferson

        Thank you

        Reply
  3. Cmdr. Beavis

    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.

    Reply
  4. KoalaT

    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

    Reply
  5. Stuart Turner

    Quality – how annoying is that and painful to do one by one – simple things and all that!!!

    Reply
  6. Absolutgrndzer0

    Thanks for this, although is there a way to make it do entire folders and subfolders?

    Reply
    1. Sergey Tkachenko Post author

      Sure. Use
      Get-ChildItem -recurse

      Reply
      1. David Galbraith

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

        Reply
        1. Sergey Tkachenko Post author

          I use the following command

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

          See this article

          Reply
  7. Paul Coddington

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

    Reply
  8. Lakshman

    Thanks lot

    Reply

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.