Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

[Ps1] unblock all files in a folder

Publié le par damcuvelier

Every time that you download a file, or when you copy it to a server, it appears in the properties as "blocked": 


For a single file, simply check the "Unblock" box.

But if there are more than 10 files... 
Then we use this powershell command:

Get-ChildItem -path "<folder that contain files>" -recurse | foreach{Unblock-File -Path $_.FullName}

 

That's all folks!

Commenter cet article