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


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.