Unblock a file with PowerShell?

前端 未结 13 1845
野性不改
野性不改 2020-12-08 02:52

I am trying to have PowerShell unblock a file in Win2K8 R2.

Does anyone have a pointer as to the syntax?

13条回答
  •  天涯浪人
    2020-12-08 03:17

    To unblock a folder and it's subfolder recursive (>= PowerShell v3) you can use the Get-ChildItem (gci) command:

    Get-ChildItem "C:\Temp\" -recurse | Unblock-File
    

    where C:\Temp is the starting folder.

提交回复
热议问题