I cannot remember in PowerShell V2 the days when .NET 3.5 was usually installed. I think this is right.
You can always try the following and see if this works:
$file = 'd:\scripts\sha1.ps1' $sha1 = New-Object System.Security.Cryptography.SHA1CryptoServiceProvider [System.BitConverter]::ToString( $sha1.ComputeHash([System.IO.File]::ReadAllBytes($file)))
Replace the value of $file with the name of the file you have.
Micky balladelli
source share