Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TolgaBagci/24304164db724c6efc46119bc9d97c90 to your computer and use it in GitHub Desktop.
Save TolgaBagci/24304164db724c6efc46119bc9d97c90 to your computer and use it in GitHub Desktop.
Finding, Checking and Verifying the SHA256 Checksum Hash of the Selected ISO File with Powershell
Add-Type -AssemblyName System.Windows.Forms; $openFileDialog = New-Object System.Windows.Forms.OpenFileDialog; $openFileDialog.Filter = 'ISO Files (*.iso)|*.iso'; if ($openFileDialog.ShowDialog() -eq 'OK') {$isoPath = $openFileDialog.FileName; $hashValue = Get-FileHash -Path $isoPath -Algorithm SHA256; Write-Host "Selected ISO File: $($isoPath)"; Write-Host "Hash Value: $($hashValue.Hash)";} else {Write-Host "ISO file not selected!"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment