MyKE / Count checksum of files with PowerShell

Created Tue, 23 Aug 2016 06:42:07 +0000

Count checksum of files with PowerShell

Simple way how to count checksum of any file with PowerShell.

CertUtil -hashfile C:\MyFile.iso MD5

Available Hash algorithms: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

Count checksums from CSV:

$csvfile = "C:\files.csv"
$csv = Import-Csv $csvfile -Encoding UTF8

ForEach ($csvvalue in $csv) {
    CertUtil -hashfile $csvvalue.File $csvvalue.Hash
}
``` ```
File,Hash
"C:\SomeFile1.docx",MD5
"C:\SomeFile2.exe",SHA1
"C:\SomeFile3.iso",SHA256