3

I like this feature, but in the current build of Windows, clicking the 'Unblock' button and clicking 'Apply' does absolutely nothing. This can cause issues - some files won't run properly.

enter image description here

That being said, I've not been able to find a workaround for this. But I believe that there is a cmd command to unblock a file.

How can I unblock a file using a batch script, or wsh (jscript or vbscript) or even with a Powershell script?

user2864740
  • 60,010
  • 15
  • 145
  • 220
RǢF
  • 806
  • 5
  • 17

2 Answers2

8

PowerShell:

Remove-Item 'C:\Users\Jase\Downloads\script56.chm' -Stream Zone.Identifier
user4003407
  • 21,204
  • 4
  • 50
  • 60
8

If you're using PowerShell 3.0 or higher (and you should be), use the Unblock-File cmdlet.

alroc
  • 27,574
  • 6
  • 51
  • 97