How to "Unblock" multiple files?


  1. Posts : 186
    Xp, Vista, 7, 8.1, 10
       #1

    How to "Unblock" multiple files?


    If I downloaded something from the Internet and need to "Unblock" a single file to avoid the annoying security popup, I can do it from the properties for that file:



    But how to do it on a folder containing 100 or more files?
      My Computer


  2. Posts : 323
    Windows 10 (2), Win 8.1 (1), Win 7 (1)
       #2

    Download SysInternals "Streams" from Streams - Windows Sysinternals | Microsoft Docs.

    Then use a batch file such as below to run "streams" against all files in a folder. That will remove the "block" flag.

    =======================================================================================
    @echo off
    echo *
    echo ***********************************************************
    echo * *
    echo * Run SysInternals "Streams" to remove Internet *
    echo * download file "block" indicator from file(s). *
    echo * *
    echo ***********************************************************
    echo *
    echo *
    echo $******************************************$
    echo $* Begin File "Block" Indicator Removal *$
    echo $******************************************$
    echo *

    set /p UBFILES=--- Enter path and files to unblock:
    echo *
    echo $* Executing Block Removal on %UBFILES% *$
    echo *

    "E:\Program_Files_E\SysInternals\Streams\streams.exe" -s -d %UBFILES% > E:\E_Temp\Temp\Remove_Block_Flag.log

    echo *
    echo $******************************$
    echo $* Block Removal Completed *$
    echo $******************************$
    echo *
    pause
    ======================================================================================

    Modify it to reflect where you would have the program located. You can eliminate the log file generation at the end of the command if you wish.

    JohnD
      My Computer


  3. Posts : 456
    Windows 10
       #3

    It looks like you can also unblock files with powershell:

    PS C:\> dir c:\Downloads\* | Unblock-File

    Unblock File in Windows 10 | Tutorials

    This would unblock all the files in the Downloads folder

    Source: Microsoft.com
    Last edited by Brink; 17 Mar 2019 at 09:32. Reason: added tutorial link for more info
      My Computer


  4. Posts : 233
    Windows 10 pro on both
       #4

    This also unblocks everything in that folder
    dir C:\Downloads -Recurse | Unblock-File

    Unblock File in Windows 10

    sry i see the above poster wrote that cmd
    Last edited by Brink; 17 Mar 2019 at 09:31. Reason: added tutorial link for more info
      My Computer


  5. Posts : 5,330
    Windows 11 Pro 64-bit
       #5

    With the attached batch script disable blocking of downloaded files in Windows 10.
    How to "Unblock" multiple files? Attached Files
      My Computer


  6. Posts : 5,478
    2004
       #6

    FreeBooter said:
    With the attached batch script disable blocking of downloaded files in Windows 10.
    That would mean future downloads weren't blocked. It doesn't affect previously downloaded programs as these are flagged based on the security zone they came from when they are downloaded.

    A good answer (if you never want that functionality) but you'd want to do what @ricardobohner or @kimkl said as well if you already have 100s of them.

    Information about the attachment manager in microsoft windows
      My Computer


  7. Posts : 5,330
    Windows 11 Pro 64-bit
       #7

    Unblock A File in Windows 10 using the right-click Context Menu.


    How to "Unblock" multiple files? Attached Files
      My Computer


  8. Posts : 68,952
    64-bit Windows 11 Pro for Workstations
       #8

    Here's a new tutorial for adding Unblock to the context menu of files and folders to help.

    Add Unblock File Context Menu in Windows 10 | Tutorials
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:41.
Find Us




Windows 10 Forums