Skip to content

VSKUMBHANI/PowerShell

Repository files navigation

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.

About

PowerShell scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published