Tuesday, October 22, 2019

Unblock Files Recursively

If you run into this scenario:


It happens when executables and msi's are downloaded from a browser. 

To fix it, just run this command in powershell:

dir -Path C:\Temp -Recurse | Unblock-File

It will remove the blocking for all files and subdirectories under the specified path.

No comments:

Post a Comment