How To Unblock Files on Windows That Are Blocked with PowerShell
-
Sometimes Windows will detect that a file has come from another computer and will block the file. Unblocking a single file from the GUI is super easy. It's just a check box. But if you have lots of files, this is tedious. Even if you set Group Policy or the Registry to stop blocking any files, ones that are already blocked remain blocked. What to do?
PowerShell is here for you. Just use a recursive DIR command and pipe the output to the Unblock-File commandlet and voila.
dir c:\mydata -Recurse | Unblock-File