Unblock a file with PowerShell?

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

    You can search for blocked files like this:

    get-item * -stream zone*
    

    Then to unblock the files, pipe that to remove-item or "rm" to delete the zone.identifier streams:

    get-item * -stream zone* | Remove-Item
    

    In case you want recursive search:

    get-childitem -recurse | get-item -stream zone*
    
    0 讨论(0)
提交回复
热议问题