Powershell Unblock All Files In Directory

Powershell Unblock All Files In Directory

The command used to unblock files in PowerShell utilizes the Unblock-File cmdlet, which is available in Windows PowerShell 5.0 and later versions. If you're using an earlier version, you might need to update PowerShell.

Get-ChildItem -Path "C:\YourDirectory" -Include *.ps1, *.exe, *.dll -Recurse | Unblock-File powershell unblock all files in directory