1 2 3 4 5 6 7 |
$LiteralPath="wpncore.dll" $file = get-item -literalpath $LiteralPath $Provider = new-object System.Security.Cryptography.MD5CryptoServiceProvider $stringbuilder = new-object System.Text.StringBuilder $stream = $file.OpenRead() $a=$Provider.ComputeHash($stream) | % {$stringbuilder.Append($_.ToString("X2"))} $stringbuilder.ToString() |