Skip to content

Instantly share code, notes, and snippets.

@MarcHeiden
Created February 5, 2022 17:02
Show Gist options
  • Save MarcHeiden/30bc49aeb8eda18d080a904e51e5fb35 to your computer and use it in GitHub Desktop.
Save MarcHeiden/30bc49aeb8eda18d080a904e51e5fb35 to your computer and use it in GitHub Desktop.

Check Checksum with Powershell

Use the following powershell command to check if the SHA256 hashes match:

> IF(Select-String "Path to textfile with checksums" -Pattern (Get-FileHash "Path of executable" -Algorithm SHA256).hash){Write-Host "Check PASSED"}Else{Write-Host "Check FAILED"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment