Unblock a file with PowerShell?

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

    If you server does not have Powershell > v3 ($PSVersionTable.PSVersion.Major -ge 3). Then use good old reliable DOS:

    for /f "tokens=*" %f in ('dir /b *.*') do echo.>"%f":Zone.Identifier 
    

提交回复
热议问题