Windows Commands / IT Support Guides
Verify a downloaded installer with Get-FileHash
Calculate a downloaded installer’s SHA-256 hash and compare it with the publisher’s value.
Environment and inputs: Windows 11 · Command Prompt unless PowerShell is specified
Understand the problem
Find the official SHA-256 value for the same filename, version and architecture. If the publisher signs its checksum list, verify the signature as directed.
Run the command
Run the displayed command with your file path in place of C:\Support\installer.msi. LiteralPath treats characters such as brackets as part of the filename.
Get-FileHash -LiteralPath 'C:\Support\installer.msi' -Algorithm SHA256
Read the output
Read the Hash field and compare all 64 hexadecimal characters with the publisher’s SHA-256 value. Hexadecimal letter case does not affect the match.
Choose the next step
If one character differs, set the installer aside. Confirm the release and filename, then download a fresh copy from the official source and check again.
Before making changes
Record the filename and the source of the reference value. A match verifies that the bytes agree with the reference, so choose the reference from an authenticated source.