×

注意!页面内容来自https://www.tenforums.com/general-support/129075-how-unblock-multiple-files.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

How to "Unblock" multiple files?


  1. Posts : 186
    XpVista78.110
       #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 popupI can do it from the properties for that file:



    But how to do it on a folder containing 100 or more files?
      My Computer
    OS: XpVista78.110


  2. Posts : 327
    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
    OS: Windows 10 (2)Win 8.1 (1)Win 7 (1)


  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
    Computer Type: PC/Desktop
    OS: Windows 10


  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
    Computer Type: PC/Desktop
    System Manufacturer/Model Number: Asus
    OS: Windows 10 pro on both
    CPU: i7,i5
    Motherboard: Asus Z97 pro GamerAsus Z87 pro V edition
    Memory: DDR3 16 GB OC 240024GB 1866 underclocked to 1666
    Graphics Card: Asus GTX750TI OC 2GBMSI GTX650 2GB
    Sound Card: SBZxR x2
    Monitor(s) Displays: 40 inch LCD 1080p 16.9
    Screen Resolution: 1920x1080 1080p
    Keyboard: Logitech G510s
    Mouse: G300s "i am left handed and logitech does not feel we are worth spending to much developing on.
    PSU: Corsair CX750M Corsair RX860
    Case: Fractal F4 Black pearl MT and the F5 High tower
    Cooling: Noctua NH 12 and 14
    Hard Drives: Samsung 840850 EVO 250GB Samsung 850 pro 500GB WD 3TB x3 Hybrid Seagate 2TB x 4 Seagate 1TB Hybrid
    Internet Speed: 500/500 MB Fiber Optic (534/535MB using basic IC test)
    Browser: FF Chrome Edge IE
    Antivirus: Defender
    Other Info: Just to Finnish my comment on mouse for left handedi know Logitech make Left handed to but they are not worth much compared to the "Right handed" i brought this up in the Logitech forums why they did not make descent GM for Lefties my post got del i was not able to login anymore i requested new password USER UNKNOWN but i still get spam ware from thembut unable to unsubscribe because i am UNKN


  5. Posts : 5,769
    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
    Computer Type: PC/Desktop
    System Manufacturer/Model Number: HP Pavilion
    OS: Windows 11 Pro 64-bit
    CPU: AMD Ryzen 7 5700G
    Motherboard: HP Pavilion Gaming Desktop TG01-2019nt
    Memory: Micron Technology DDR4-3200 16GB
    Graphics Card: NVIDIA GeForce RTX 3060
    Sound Card: Realtek ALC671
    Monitor(s) Displays: Samsung SyncMaster U28E590
    Screen Resolution: 3840 x 2160
    Hard Drives: SAMSUNG MZVLQ1T0HALB-000H1


  6. Posts : 5,477
    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
    Computer Type: Laptop
    System Manufacturer/Model Number: Apple
    OS: 2004
    CPU: i7
    Memory: 16GB
    Graphics Card: Iris Pro
    Monitor(s) Displays: 15"
    Screen Resolution: 2880x1800
    Keyboard: AZERTY


  7. Posts : 5,769
    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
    Computer Type: PC/Desktop
    System Manufacturer/Model Number: HP Pavilion
    OS: Windows 11 Pro 64-bit
    CPU: AMD Ryzen 7 5700G
    Motherboard: HP Pavilion Gaming Desktop TG01-2019nt
    Memory: Micron Technology DDR4-3200 16GB
    Graphics Card: NVIDIA GeForce RTX 3060
    Sound Card: Realtek ALC671
    Monitor(s) Displays: Samsung SyncMaster U28E590
    Screen Resolution: 3840 x 2160
    Hard Drives: SAMSUNG MZVLQ1T0HALB-000H1


  8. Posts : 76,229
    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
    Computer Type: PC/Desktop
    System Manufacturer/Model Number: Custom self built
    OS: 64-bit Windows 11 Pro for Workstations
    CPU: Intel i7-8700K 5 GHz
    Motherboard: ASUS ROG Maximus XI Formula Z390
    Memory: 64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card: ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card: Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays: 2 x Samsung Odyssey G75 27"
    Screen Resolution: 2560x1440
    Keyboard: Logitech wireless K800
    Mouse: Logitech MX Master 3
    PSU: Seasonic Prime Titanium 850W
    Case: Thermaltake Core P3 wall mounted
    Cooling: Corsair Hydro H115i
    Hard Drives: 1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, TerraMaster F8 SSD Plus NAS
    Internet Speed: 2 Gbps Download and 100 Mbps Upload
    Browser: Google Chrome
    Antivirus: Windows Defender and Malwarebytes Premium
    Other Info: Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, CyberPower CP1500PFCLCD, Galaxy S23 Plus phone

    View my PC Album
    Computer Type: Laptop
    System Manufacturer/Model Number: HP Spectre x360 2in1
    OS: 64-bit Windows 10 Pro build 21390
    CPU: i7-1065G7 3.9 GHz
    Memory: 16 GB LPDDR4-3200
    Graphics Card: Intel Iris Plus
    Sound Card: Intel SST
    Monitor(s) Displays: 13.3" 4K UWVA AMOLED multitouch
    Screen Resolution: 3840 x 2160
    Hard Drives: 512 GB PCIe NVMe M.2 SSD
    Browser: Google Chrome
    Antivirus: Windows Defender and Malwarebytes Premium


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized sponsoredor 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 08:35.
Find Us




Windows 10 Forums