Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Created November 7, 2025 15:24
Show Gist options
  • Select an option

  • Save supermarsx/b299d0189f94905a4dd6463179ae0a93 to your computer and use it in GitHub Desktop.

Select an option

Save supermarsx/b299d0189f94905a4dd6463179ae0a93 to your computer and use it in GitHub Desktop.
Mass unblock files recursively on Windows
# without progress
Get-ChildItem -Path "C:\Your\Path\Here" -Recurse -File | Unblock-File
# with progress
Get-ChildItem -Path "C:\Your\Path\Here" -Recurse -File | ForEach-Object { Write-Host "Unblocking $($_.FullName)" ; Unblock-File $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment