Powershell Unblock All Files Recursively -
catch Write-Host "Failed: $($_.FullName) - $_" -ForegroundColor Red
To clean an entire directory tree, pipe the directory contents directly into the unblock utility. Method 1: The Standard Pipeline (Recommended) powershell unblock all files recursively