Downloaded a Windows Installer? Verify Its SHA-256 Hash and Digital Signature First
Learn to verify a downloaded EXE, MSI or ISO with PowerShell SHA-256 hashes and Authenticode signatures without running suspicious software.
- 8 min read
- 5 steps
View article illustration

A fake software download can look exactly like the real installer. Search ads, copied download buttons, unofficial mirrors, and deceptive filenames can send you to a different file than the one its vendor intended. Windows provides two useful verification tools: SHA-256 file hashes and digital signatures. They answer different questions, and neither is a substitute for choosing the correct publisher’s website in the first place.
This guide shows how to use built-in PowerShell commands on a downloaded EXE, MSI, ISO, or ZIP file before opening it. The steps are read-only: they inspect a file, not execute it. They also explain when the results are meaningful and when a file can still be risky despite looking normal.
What each check can and cannot prove
| Check | Useful question | It does not prove |
|---|---|---|
| Official download source | Did I navigate to a website controlled by the vendor? | That the file on disk is unchanged |
| SHA-256 hash | Does my file match a specific published reference value? | That the reference itself came from a trustworthy source |
| Authenticode signature | Was this supported file signed, and does Windows validate the signature? | That the software is bug-free, harmless, or appropriate for my PC |
| Antivirus/security scan | Do current defences detect known threats? | That no unknown threat exists |
A hash is essentially a digital fingerprint of the file’s bytes. If even one byte changes, a secure cryptographic hash should change dramatically. A signature relates the content to a signing identity and trust chain. Matching a SHA-256 hash copied from the same untrusted download page is weak evidence; the attacker could replace both the file and the advertised hash.
Step 1: Download from the publisher, not a search-ad shortcut
Type the publisher’s known domain or navigate from your own trusted bookmark. Check whether the vendor offers an official download portal, Microsoft Store listing, or package manager installation instruction. Avoid pages that bundle multiple unrelated apps, demand a custom “download manager,” or ask you to disable Windows security before installation.
Record the exact product version and intended architecture, such as x64 or Arm64. An authentic installer for the wrong platform can still fail to run or install the wrong components. If a developer provides a release page with release notes and a published checksum file, save the matching version information with your download.
Do not trust a site simply because its address starts with https://. TLS can protect your connection to a malicious domain too. The exact domain and trustworthy distribution route matter.
Step 2: Calculate a SHA-256 hash in PowerShell
Open PowerShell; no administrator rights should be necessary merely to hash a file you can read. Run a command like this with your actual file path:
Get-FileHash -LiteralPath "C:\Users\YourName\Downloads\ExampleInstaller.exe" -Algorithm SHA256
PowerShell returns the file path, algorithm, and a long hexadecimal hash. Compare that result character by character with the checksum published on the software vendor’s official release page. You can copy each value into a local text editor and compare without uploading the installer anywhere.
For another file type, use the same command with its extension. This works for ISO, ZIP, MSI, and other files because hashing treats them as bytes. It does not inspect the software’s behaviour. The file must remain unchanged during hashing; if it is still downloading, wait for completion.
Microsoft’s Get-FileHash documentation states that SHA256 is the default algorithm. Explicitly providing -Algorithm SHA256 makes the intent clear and prevents confusion with older checksum formats.
Step 3: Compare against the correct version and source
A frequent mistake is comparing a new release against last month’s hash. The digest will differ even when both downloads are legitimate. Before treating a mismatch as malware, verify the vendor’s release number, architecture, installer type, and whether the publisher distributes different regional or channel builds.
If the values still differ, do not run the file. Delete or quarantine the questionable copy, go back to the vendor’s official site, and download again. If the official download itself consistently differs from a checksum on the same vendor’s official page, contact the publisher and provide the discrepancy without executing the file.
Be careful with checksum files downloaded from public comment threads: anybody can post a plausible 64-character string. Ideally, the publisher protects or signs the checksum announcement through a trusted channel.
Step 4: Inspect the digital signature where supported
For Windows files that support Authenticode, use PowerShell:
Get-AuthenticodeSignature -LiteralPath "C:\Users\YourName\Downloads\ExampleInstaller.exe" | Format-List Status,StatusMessage,SignerCertificate
Look at the status and the certificate’s subject/publisher details. A Valid status means Windows accepted the signature under its current validation rules. It does not mean the named company is reputable or that the program cannot perform unwanted actions. Signed malicious programs exist, and a legitimate but compromised publisher could issue harmful software.
Not every file format carries an Authenticode signature. A normal ZIP or certain vendor installers may show no embedded signature even though they are legitimate. In that case, relying on the original site plus a trusted published checksum and established distribution method is more appropriate than assuming “not signed” always means “virus”.
For some MSI and EXE files, Properties > Digital Signatures offers a graphical view. If that tab is absent, it may simply mean the file lacks a compatible embedded signature. Avoid claiming that a signature was verified without actually checking its status.
Step 5: Understand a valid signer versus a trustworthy signer
Suppose a program shows a valid signature from “Sample App LLC”. That confirms something about the signer and the file integrity, not that Sample App LLC is the company you intended to buy from. Check that the publisher name matches the official product’s documentation and that the file came from its intended distribution channel.
Some companies use subsidiary names, certificate service providers, or different legal entity names. A mismatch calls for verification, not an instant conclusion. Likewise, code-signing certificates can expire or be revoked, and signatures may be timestamped. Windows’ reported validation result reflects the applicable policy and certificate trust at the time of checking.
Do not bypass SmartScreen or antivirus warnings just because a hash matches or a certificate exists. Investigate the warning through the vendor’s support page and Windows Security’s own details.
Practise with a harmless file and a real expected result
This exercise writes only three ASCII characters, abc, to a new temporary text file. It does not download or run an installer. Run it in ordinary PowerShell:
$hashPractice = New-TemporaryFile
[System.IO.File]::WriteAllText($hashPractice.FullName, 'abc', [System.Text.Encoding]::ASCII)
$expectedHash = 'BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD'
$actualHash = (Get-FileHash -LiteralPath $hashPractice.FullName -Algorithm SHA256).Hash
$actualHash
$actualHash -eq $expectedHash
The hash should match that 64-character value and the comparison should return True. We ran this small PowerShell exercise during this guide’s command check. It tests the comparison process, not the safety of any downloaded program.
Now change that temporary file to abcd and repeat the comparison:
[System.IO.File]::WriteAllText($hashPractice.FullName, 'abcd', [System.Text.Encoding]::ASCII)
(Get-FileHash -LiteralPath $hashPractice.FullName -Algorithm SHA256).Hash -eq $expectedHash
Remove-Item -LiteralPath $hashPractice.FullName
This time the comparison should return False; the last line removes only the temporary practice file. Adding a newline or saving with another encoding also changes the bytes and can change a hash. For a real installer, use its publisher’s verified checksum for that exact version, not the practice value above.
What to do with a file from a third-party mirror
If the publisher provides an official mirror list, it can be legitimate to download from one of those destinations. Compare the file against a checksum obtained from the publisher’s own trusted channel, not from the mirror. If the publisher offers no reference hash and you cannot verify the mirror’s legitimacy, prefer the official download instead.
For open-source projects, signed release artifacts, official repositories, and package-manager verification may be more useful than a web page’s lone checksum. Follow the project’s documented verification process rather than inventing a generic workflow.
Your pre-installation checklist
- Opened the exact official vendor domain or trusted package source.
- Confirmed edition, version, and architecture.
- Download finished without errors.
- SHA-256 matched a trusted publisher reference, if one is provided.
- Authenticode signer/status checked where supported.
- Windows Security shows no unexplained warning.
- A backup or restore plan exists for high-impact system software.
- Any installer prompt is understood before granting administrator permissions.
Frequently asked questions
Can I hash a ZIP or ISO? Yes. Get-FileHash reads file bytes regardless of extension.
Does SHA-256 tell me which company made the file? No. It identifies byte content; trust comes from how you obtained the reference value.
Is every unsigned installer unsafe? No. But unsigned files warrant more caution and stronger verification of the distribution source.
Should I upload an unpublished installer to an online scanner? Consider confidentiality and licences first. Corporate or private software may contain sensitive material and should not be uploaded to unknown services.
Will a digital signature guarantee there is no malware? No. It verifies signing-related information, not harmless behaviour.
Related guides
Official references
Microsoft Learn: Get-FileHashOfficial reference checked 20 November 2026
Microsoft Learn: Get-AuthenticodeSignatureOfficial reference checked 20 November 2026
FTC: Recognise and avoid phishing scamsOfficial reference checked 20 November 2026


