How to unblock file via WindowsPowerShell?

0

I am using windows Vista buissnes 32 bit. When I try to execute command :

dir *.* -Recurse | Unblock-File

I am getting : The term 'Unblock-File' is not recognized as the name of cmdlet, fun.. I am running 2.0 version of powershell Is there any other way to do this?

malakrsnaslava

Posted 2014-11-27T12:21:37.550

Reputation: 2 533

as gronostaj told, its not supported. But AFAIK the information is stored in an alternate datastream. So doing this will discard all alternate datastreams: "type MyFile.exe > MyFileWithoutADS.exe". – marsh-wiggle – 2014-11-27T14:15:59.673

Answers

4

Microsoft's article on Unblock-File states that:

This cmdlet is introduced in Windows PowerShell 3.0.

PowerShell 3.0 is not available for Vista, so you're out of luck.

gronostaj

Posted 2014-11-27T12:21:37.550

Reputation: 33 047