COMMAND EVERYTHING.
Calculate a SHA-256 fingerprint so a file can be compared with a trusted published checksum.
PowerShell · Risk: Low · Documentation VerifiedLast verified: 2026-10-26
Returns the algorithm, digest, and file path. A matching hash establishes integrity only when the expected hash comes from a trusted source.
Get-FileHash [-Path] <String[]> [[-Algorithm] <String>] [<CommonParameters>]Copied 0 timesNo elevation is required for the in-memory examples. Filesystem operations require read or traversal access to the selected path.
PowerShell · 7.6; filesystem examples require the FileSystem provider
-AlgorithmPowerShell 7.6 with Microsoft.PowerShell.Utility. For file examples, replace the sample path with an accessible file or directory.
Low risk for the supplied example. Protect file contents, paths, and returned system metadata. Review any modifications to the example before execution.
Get-FileHash -LiteralPath './download.zip' -Algorithm SHA256Returns the algorithm, digest, and file path. A matching hash establishes integrity only when the expected hash comes from a trusted source.
Sign in to keep your own command reference lists.
Explain or customize this command with AI