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!

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

  1. Phil

    it’s very annoying message! thanks!

    1. Sergey Tkachenko Post author

      Don’t mention it.

  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.

    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
      It is a good idea to cover it tomorrow.

      1. Tony Jefferson

        Thank you

  3. Cmdr. Beavis


    I was really kicking myself for having forgotten to ‘Unblock’ a ZIP file containing a TON of files I had to take off (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.

  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\]

    Create a DWord Value for each protocol you need to trust; for example

  5. Stuart Turner

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

  6. Absolutgrndzer0

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

    1. Sergey Tkachenko Post author

      Sure. Use
      Get-ChildItem -recurse

      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.

        1. Sergey Tkachenko Post author

          I use the following command

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

          See this article

  7. Paul Coddington

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

  8. Lakshman

    Thanks lot

  9. Steve Sybesma

    -Recurse was the switch I was missing to take care of subfolders !!!

  10. nicholas


  11. Mr Sam Thackeray

    Any advice on improving this to get past the 260 character limit?

  12. alex aska

    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 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


Leave a Reply

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