Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 760 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 760 Bytes

PowerShell

PowerShell Commands & Scripts...

Unblock files in a folder using PowerShell

image

Type the following command to unblock all files in a folder by changing the path of the folder to yours.

Get-ChildItem -Path 'C:\Users\Dimitris\Downloads' | Unblock-File

Or for a shortcut, try the following.

gci 'C:\Users\Dimitris\Downloads ' | Unblock-File

Add the -Recurse switch if you want to unblock all files in the sub-folders.

Get-ChildItem -Path 'C:\Users\Dimitris\Downloads' -Recurse | Unblock-File

For more visit official docs: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unblock-file?view=powershell-7.3.