Unblock File in Windows 10  

Page 4 of 7 FirstFirst ... 23456 ... LastLast

  1. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #30

    yesir360 said:
    Is there a way to re-enable the warning if you've unchecked the box in option 2?
    Hello,

    I suppose you could delete the file, and download it again to have it blocked again.
      My Computers


  2. Posts : 135
    Windows 10
       #31

    I guess that works.

    One other thing, is it possible to enable this prompt for files or executables that don't usually generate this prompt?
    I'm asking that, because it seems like older versions of Windows seem to show this prompt on most files, while Windows 10 has never shown it for any file I've downloaded. Perhaps Windows 10 changed some security measures to tell which files are safe? But at the same time, batch files downloaded from guides here are ran without prompt on Windows 10, even though such files can be considered unsafe based on their contents.

    If there is a reason, could you explain it? I've heard of reasons like valid certificates, etc, but I'm not sure about those.
      My Computer


  3. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #32

    yesir360 said:
    I guess that works.

    One other thing, is it possible to enable this prompt for files or executables that don't usually generate this prompt?
    I'm asking that, because it seems like older versions of Windows seem to show this prompt on most files, while Windows 10 has never shown it for any file I've downloaded. Perhaps Windows 10 changed some security measures to tell which files are safe? But at the same time, batch files downloaded from guides here are ran without prompt on Windows 10, even though such files can be considered unsafe based on their contents.

    If there is a reason, could you explain it? I've heard of reasons like valid certificates, etc, but I'm not sure about those.
    I'm not aware of a way to undo a unblock, or to manually block one using this.

    You could change the permissions of them to deny access rights to user groups and/or specific users. You just need to be careful not to deny everyone though.

    Change Permissions of Objects for Users and Groups in Windows 10
      My Computers


  4. Posts : 4,188
    Windows 11 Pro, 22H2
       #33

    @Brink,

    Just one more technical note and yet another method to unblock a file(s).

    Microsoft adds an alternate data stream to files that are downloaded and that alternate data stream identifies them as something to be blocked.

    There is a Microsoft Sysinternals command line utility called "streams" that can show and remove these alternate data streams.

    As an example, I downloaded an update from the Microsoft Update Catalog. I renamed it simply to make the name shorter and more manageable, but otherwise made no changes. File Explorer shows the file as being blocked.

    I then use to Streams utility (streams64.exe in this case since I am on a x64 installation of Windows) to do 3 things:

    1) Simply display the alternate data stream on the file
    2) Remove the alternate data stream
    3) Display the alternate data stream once again to show that it is now gone.

    Here is the output that results from this series of commands:

    Code:
    C:\Streams>streams64 c:\sample\KB4589212.msu
    
    streams v1.60 - Reveal NTFS alternate streams.
    Copyright (C) 2005-2016 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    c:\sample\KB4589212.msu:
         :SmartScreen:$DATA 7
       :Zone.Identifier:$DATA       182
    
    C:\Streams>streams64 -d c:\sample\KB4589212.msu
    
    streams v1.60 - Reveal NTFS alternate streams.
    Copyright (C) 2005-2016 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    c:\sample\KB4589212.msu:
       Deleted :SmartScreen:$DATA
       Deleted :Zone.Identifier:$DATA
    
    C:\Streams>streams64 c:\sample\KB4589212.msu
    
    streams v1.60 - Reveal NTFS alternate streams.
    Copyright (C) 2005-2016 Mark Russinovich
    Sysinternals - www.sysinternals.com
    
    
    C:\Streams>
    After this, the file is no longer identified as being blocked.

    I used to use this in a batch file before leaning of the powershell command back when I would automatically apply Windows updates to Windows via a script. This ensured that installation for all updates would go smoothly wiyhout being blocked.

    The utility is documented and can be downloaded here:

    https://docs.microsoft.com/en-us/sys...nloads/streams

    The brief text includes some interesting info that some might find interesting.
      My Computers


  5. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #34

    Thank you Hannes @hsehestedt. I'll have to read up on this.
      My Computers


  6. Posts : 23
    win10
       #35

    Hi, Shawn,
    The property screen of the downloaded file is very different from what you've shown.
    But how can I print/attach the property screen here to show it, as examples below?
    Opens with -> Description
    Security -> nothing, only Attributes row
      My Computer


  7. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #36

    nanatsu said:
    Hi, Shawn,
    The property screen of the downloaded file is very different from what you've shown.
    But how can I print/attach the property screen here to show it, as examples below?
    Opens with -> Description
    Security -> nothing, only Attributes row
    Hello nanatsu,

    The tutorial below can help show you how to upload and attach a screenshot in a post here.

    How to Upload and Post Screenshots and Files at Ten Forums
      My Computers


  8. Posts : 23
    win10
       #37

    Hi, Shawn,
    OK, I attached a screen shot. I cannot copy the property screen alone.

    none.docx
      My Computer


  9. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #38

    nanatsu said:
    Hi, Shawn,
    OK, I attached a screen shot. I cannot copy the property screen alone.

    none.docx
    The properties page shows the file as not blocked since it doesn't have an Unblock checkbox.
      My Computers


  10. Posts : 4,188
    Windows 11 Pro, 22H2
       #39

    EDIT: Shawn already has a method of doing this with powershell in the tutorial. Don't know why I neglected to note that earlier. So the below is simply a variation on that.

    End Edit


    I found yet another way to unblock files that is great for traversing even really large subdirectories with many files rapidly. I had previously noted a way to do this using a utility called "Streams". This method will work without needing to download anything.

    In my case, I have a library of software, utilities, drivers, etc. There are many thousands of files and I'm constantly downloading updates. If I run the batch file below it only takes a couple of seconds and checks every single file in my library including all subdirectories.

    To use, simply copy the sample code from below into a file and call it something like UnblockAllFiles.bat. When run, it will unblock all files from the location where it is located and all subdirectories. Naturally, this can easily be modified.

    The key to the whole thing is the very last line.

    Code:
    :: This batch file will unblock all files in the local folder and subdirectories from where this batch file is run.
    :: This is the equivalent to right-clicking on a file, going to properties, and checking the unblock option for every file.
    
    @echo off
    
    :: Change directories to the location from where this batch file is being run
    
    cd /d %~dp0
    
    :: Perform the operation that unblocks all files
    
    powershell "dir * -Recurse | Unblock-File"
      My Computers


 

Tutorial Categories

Unblock File in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  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 18:19.
Find Us




Windows 10 Forums