* ファイルチェックサム Get-FileHash [#w29ef21c]

 Get-FileHash -Algorithm MD5 "C:\foo.exe"

*** PowerShell ver4より前の場合 [#a2aa851a]

 $path = "C:\foo.txt"
 $md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
 $hash = [System.BitConverter]::ToString($md5.ComputeHash([System.IO.File]::ReadAllBytes($path)))

** 参考 [#s6eca095]
- http://stackoverflow.com/questions/10521061/how-to-get-an-md5-checksum-in-powershell

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS