Created
November 7, 2025 15:24
-
-
Save supermarsx/b299d0189f94905a4dd6463179ae0a93 to your computer and use it in GitHub Desktop.
Mass unblock files recursively on Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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