Powershell Unblock All Files In Folder
Unblock-File -Path "C:\Downloads\script.ps1"
# Check which files are currently blocked Get-ChildItem -Path "C:\Path\To\Your\Folder" -Recurse | Get-Item -Stream "Zone.Identifier" -ErrorAction SilentlyContinue | Select-Object FileName powershell unblock all files in folder
Here is the most direct and helpful piece of PowerShell code to unblock all files in a folder (and its subfolders). Unblock-File -Path "C:\Downloads\script