Powershell one liner to unblock downloaded files

Ever did a download, let’s say for example a bunch of *.zip files, and having to edit the properties of the files to ‘unblock’ them?
image

Especially when you’ve downloaded a bunch of those files, this can be very annoying.
The quick solution is a simple Powershell v3 one liner.
1) Open a PowerShell prompt.
2) Goto the directory where you’ve saved those downloaded files.
3) Execute the following PowerShell v3 command:

Get-ChildItem –recurse –force | foreach { unblock-file $_.FullName }

Leave a Reply

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