The commands come from Microsoft's PowerShell and certutil documentation, Microsoft's Windows 11 download page, 7-Zip's change log and Canonical's Ubuntu verification tutorial, checked on 25 November 2026.
If you're about to flash a Windows 11 ISO to a USB stick, install a Linux distro or update your motherboard BIOS, it's worth spending a minute checking the file is intact first. A corrupted download can fail halfway through an install, and a tampered one is worse.
What a file hash is
A hash is a fixed-length value calculated from a file's contents. Microsoft's Get-FileHash documentation puts it simply: renaming a file doesn't change its hash, but changing even a single character of its contents does. If the hash you calculate matches the one the publisher lists, the files are identical.
Use SHA-256 where you can. Microsoft says MD5 and SHA1 are no longer considered secure and should only be used for simple change validation, not for files that need protection from tampering. SHA-256 is also Get-FileHash's default.
Step 1: Find the official hash
Get the expected value from the publisher, not a forum or mirror:
Windows 11 ISOs: Microsoft's Windows 11 download page has a Verify your download section with a table of SHA-256 values for each language ISO.
Ubuntu: Canonical publishes a SHA256SUMS file and a SHA256SUMS.gpg signature alongside each release's images.
Drivers, BIOS files and apps: many vendors and open-source projects list a SHA-256 value on the download or release page. If there's no hash listed, this check can't tell you anything, so rely on downloading from the official site.
Method 1: PowerShell's Get-FileHash (built in)
Search the Start menu for PowerShell (or open a PowerShell tab in Windows Terminal).
Run Get-FileHash on the file, using its full path. Putting the path in quotes copes with spaces:
Get-FileHash "C:\Users\you\Downloads\Win11_English_x64.iso"
PowerShell prints the algorithm (SHA256), the hash and the path, as in Microsoft's own examples.
Compare the hash with the official one.
You can also pick another algorithm with -Algorithm. Microsoft lists SHA1, SHA256, SHA384, SHA512 and MD5 as the accepted values.
Let PowerShell do the comparing
Eyeballing 64 characters is error-prone. Paste the official hash into a comparison instead:
(Get-FileHash "C:\Users\you\Downloads\file.iso").Hash -eq "PASTE-OFFICIAL-HASH-HERE"
PowerShell returns True if they match and False if they don't. Microsoft uses the same kind of comparison in its own Get-FileHash examples. Copy the official value carefully, with no spaces at either end.
Method 2: certutil (Command Prompt)
If you prefer Command Prompt, the built-in certutil tool can do the same job. Microsoft documents the syntax as certutil -hashfile InFile [HashAlgorithm]:
certutil -hashfile "C:\Users\you\Downloads\file.iso" SHA256
Always add SHA256 at the end. Microsoft's syntax makes the algorithm optional, so name it explicitly to be sure you get the right kind of hash.
If you already have 7-Zip installed (it's free and open source), its context menu has a CRC SHA submenu:
Select the file (or several files) and right-click. If you don't see the 7-Zip submenu in Windows 11's shortened menu, choose Show more options.
Choose 7-Zip > CRC SHA. 7-Zip's change log lists a SHA-256 -> file.sha256 command that saves the checksum to a .sha256 file in the same format as the Linux sha256sum program.
Open the .sha256 file in Notepad to read the value and compare it with the official one.
To check files against an existing .sha256 file later, right-click it and choose 7-Zip > CRC SHA > Test Archive : Checksum.
Checking a Linux ISO against SHA256SUMS
Distros such as Ubuntu list many images in a single SHA256SUMS text file. Open it in Notepad, find the line ending with your ISO's exact file name and compare the value at the start of that line with your Get-FileHash result. Canonical's tutorial also shows how to check the SHA256SUMS.gpg signature with GnuPG, which proves the checksum file itself came from Ubuntu; that's the more thorough check if you have the tools.
When the hash matches, you can move on to making a USB installer with our Ventoy and Rufus guide.
If the hash doesn't match
Check you're comparing against the right file: language, edition and version all change the hash.
Delete the file and download it again from the official site, ideally over a wired connection.
If it still doesn't match, don't use it. Report it to the publisher if you got it from their own site.
Our verdict
Checking a file hash takes a minute and confirms a Windows ISO, Linux image, driver or BIOS file arrived exactly as published. In Windows 11, PowerShell's Get-FileHash uses SHA-256 by default and can compare the result for you, certutil -hashfile does the same from Command Prompt, and 7-Zip adds a right-click SHA-256 option. Always take the expected value from the publisher's official site, prefer SHA-256 over MD5 or SHA1, and re-download any file that doesn't match.