Unblock a file with PowerShell?

前端 未结 13 1839
野性不改
野性不改 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:12

    The PoshCode module includes Set-DownloadFlag and Remove-DownloadFlag functions which work as advertised. :) I've just pulled that piece out into it's own script contribution http://poshcode.org/1430 ... it will work on PowerShell 1 too, if you use the New-Type function in place of Add-Type ( http://poshcode.org/720 )

提交回复
热议问题