How to verify a SHA-256 hash on Windows
Three commands, five minutes, one useful answer: is the file on your disk identical to the file that was published. Below are the PowerShell method, the Command Prompt method for machines without PowerShell, and the 7-Zip right-click shortcut — plus the exact comparison rule that decides whether the file is safe to open.
Why bother with this at all
A SHA-256 hash is a 64-character fingerprint computed from the exact bytes of a file. Two files cannot share the same hash unless they are byte-for-byte identical. That means a single comparison against a published value answers the question "did anything modify this file since the publisher hashed it" — whether the modification was a network truncation, a mirror serving a different binary, or a bundling tool that injected something extra into the installer.
If the hashes match, the file is the one that was inspected. If they do not, the file is not the one that was inspected, regardless of how legitimate the source looked. Those are the only two outcomes.
Method 1: PowerShell (recommended)
Available on every Windows 10 and Windows 11 install. No admin rights needed. Fastest of the three methods.
Open PowerShell or Windows Terminal
Press Win + X, then choose Terminal or Windows PowerShell. You do not need to run it as administrator.
Run Get-FileHash against the file
Replace the path with the actual location of the file you downloaded:
Get-FileHash "$env:USERPROFILE\Downloads\wave-executor.exe" -Algorithm SHA256
Shortcut: type Get-FileHash ", then drag the file from File Explorer into the terminal window. Windows pastes the full path for you, quotes included.
Read the middle column
The output has three columns. The hash is the middle one:
Algorithm Hash Path
--------- ---- ----
SHA256 A3F5C8E91B2D4F7A6C8E0B3D5F7A9C1E2B4D6F8A0C2E4B6D8F0A2C4E6B8D0F2A C:\Users\You\Downloads\wave-executor.exe
It is always 64 characters long. PowerShell prints it in uppercase by convention; that does not change the value.
Compare character by character
Compare the output against the fingerprint on the download page. Case does not matter — a3f5 and A3F5 are the same value. Every other character must match, end to end. There is no partial match and no "close enough".
Match: the file is intact and is the build that was inspected. Mismatch: delete the file, do not run it, re-download from a source that agrees with the published value.
Method 2: CertUtil (built into every Windows install)
Use this when PowerShell is unavailable or blocked by policy. CertUtil ships with Windows and has been there since Windows 7.
- Press
Win + R, typecmd, press Enter. - Run this command, substituting the real path:
certutil -hashfile "%USERPROFILE%\Downloads\wave-executor.exe" SHA256
CertUtil prints the hash on the second line of output, with spaces inserted every two characters for readability. Strip the spaces and you have the same 64-character string:
SHA256 hash of C:\Users\You\Downloads\wave-executor.exe:
a3 f5 c8 e9 1b 2d 4f 7a 6c 8e 0b 3d 5f 7a 9c 1e 2b 4d 6f 8a 0c 2e 4b 6d 8f 0a 2c 4e 6b 8d 0f 2a
CertUtil: -hashfile command completed successfully.
CertUtil outputs in lowercase. Compare without worrying about case, but do not ignore character mismatches — they mean the file is different.
Method 3: 7-Zip (right-click, if you already have it installed)
Convenient when you already have 7-Zip, but not worth installing just for this. CertUtil is already on your machine.
- Right-click the downloaded file in File Explorer.
- Choose CRC SHA → SHA-256.
- A small dialog opens with the hash. Copy it and compare against the published value.
When the comparison fails
"Get-FileHash is not recognized"
You are on an old PowerShell — 4.0 or below. That version does not include the cmdlet. Either update Windows, or use CertUtil above. There is no third option worth bothering with.
The hash does not match
This is the important case. The file is not the build that was published. Reasons, in order of likelihood:
- The download was truncated or corrupted. Re-download and re-hash.
- A mirror served a different file. Compare the file size against the published size — if the sizes differ, you do not need to hash again to know the answer.
- The file was modified on your machine after download. Rare, but some antivirus engines do rewrite files in place during "cleanup". Restore from quarantine and hash again.
Do not run the file while the hash is mismatched. If the same source keeps serving a different hash, stop using that source and let us know via the contact page.
"The file is in use" or "Access denied"
Some process has a handle on the file. Close anything that might touch it — antivirus scans in progress, the installer itself if it is open, Explorer previews. Then run the command again.
Spaces in the path
Wrap the path in double quotes. PowerShell and CertUtil both need the quotes when the path contains spaces. The examples above already include them.
What the match does and does not prove
A matching SHA-256 confirms three things: the file is intact, the file is the exact build that was hashed, and any tampering between the publisher and you would be detectable. It does not confirm that the file is free of malware, that it does what its documentation claims, or that the distribution is authorised. Those are different questions, and the hash cannot answer any of them.
What it does is make the safety decision concrete: you are deciding whether to run the build that was inspected, not a random file someone served you. The rest of that decision is on the Safety Center.