Powershell Unblock All Files In Folder -

$files = Get-ChildItem -Path $FolderPath -File -Recurse:$Recurse

[switch]$WhatIf )

.\Unblock-Folder.ps1 -FolderPath "C:\MyFolder" -Recurse Before unblocking, check if a file has the Zone.Identifier stream: powershell unblock all files in folder

param( [Parameter(Mandatory=$true)] [string]$FolderPath, [switch]$Recurse, powershell unblock all files in folder

When you download a PowerShell script and see: powershell unblock all files in folder