Skip to content
Simple Powershell script that locally hashes a file and compares it to a provided checksum.
PowerShell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Compare-FileHash.ps1
LICENSE
README.md

README.md

Compare-FileHash

Simple Powershell script that locally hashes a file and compares it to a provided checksum.

Usage

The script takes three arguments. The path to the local file you'd like hashed, the hashing algorithm you'd like to use on it, and the provided hash you'd like to compare against.

Examples

./Compare-FileHash.ps1 ubuntu.iso sha256 22580b9f3b186cc66818e60f44c46f795d708a1ad86b9225c458413b638459c4

You can’t perform that action at this time.