Get-childitem -path . -recurse | Unblock-file

The command works by piping the output of a file discovery cmdlet into a utility that strips security restrictions:

Get-ChildItem -Path . -Recurse -File | Unblock-File -WhatIf get-childitem -path . -recurse | unblock-file

ZoneId values: | ZoneId | Meaning | |--------|---------| | 0 | Local computer (trusted) | | 1 | Local intranet | | 2 | Trusted sites | | 3 | Internet (untrusted – blocked) | | 4 | Restricted sites | The command works by piping the output of

This is the scavenger.

Get-ChildItem -Path . -Recurse | Unblock-File get-childitem -path . -recurse | unblock-file