To check a SHA256 checksum in Windows 10, open PowerShell and type Get-FileHash followed by the file’s path, then press Enter. Compare the Hash it shows with the checksum on the download page. If they match, the file wasn’t changed or damaged. In Command Prompt, certutil -hashfile <file> SHA256 does the same thing.
Applies to: Windows 10. Checked against Microsoft Learn on September 27, 2026.
Use PowerShell (SHA256 by default)
- Right-click Start and select Windows PowerShell.
- Type
Get-FileHash, a space, and the full path to the file. For example:
Get-FileHash C:\Users\Alex\Downloads\contoso-setup.exe
- Press Enter.

Tip: type Get-FileHash with a space, then drag the file from File Explorer into the window to paste its path.
For SHA1 or another type: add -Algorithm, for example:
Get-FileHash C:\Users\Alex\Downloads\contoso-setup.exe -Algorithm SHA1
Other choices include SHA384, SHA512, and MD5.
Use Command Prompt (certutil)
- Open Command Prompt. See how to open Command Prompt in Windows 10.
- Go to the folder with
cd, or use the full path, and type:
certutil -hashfile contoso-setup.exe SHA256

Replace SHA256 with SHA1, SHA512, or MD5 if the publisher lists a different type.
Compare the hash
- The checksum on the download page must match exactly. Upper and lower case don’t matter.
- If it doesn’t match, download the file again from the official site. Don’t open a file with a wrong checksum.
- To let PowerShell compare for you, run:
(Get-FileHash C:\Users\Alex\Downloads\contoso-setup.exe).Hash -eq "PASTE-THE-CHECKSUM-HERE"
It shows True if they match.
Frequently asked questions
SHA1 or SHA256: which should I use?
Use the one the publisher lists. If both are listed, choose SHA256. Microsoft notes that MD5 and SHA1 are no longer considered secure against deliberate tampering.
Where do I find my downloaded file?
See how to find downloads on Windows 10.
I downloaded an ISO. What’s next?
After checking it, see how to mount an ISO file in Windows 10.
Microsoft’s references are Get-FileHash and certutil. More help is on our Windows Help & Guides page.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.