Friday, July 7, 2017

Check your Checksum - Windows PowerShell


Windows 10 PowerShell has Get-FileHash  built in. From a PowerShell window run the command against the downloaded file.  Validate by using Select-String pasting in the hash value.  This is a simple match so if they match you will see output.  When the values do not match there is no output.

get-filehash <file> -a <type> | Select-string -Pattern "<hash value>"

@{Algorithm=<type>; Hash=<hash value>; Path=<file>}

Use -a to specify the type of hash value.

get-filehash example

No comments:

Post a Comment