Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

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.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

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.

Source & further reading

Microsoft Learn — get-filehash

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles