Calculate a file SHA-256 hash
Build a paste-ready command, then review its compatibility and effects before running it.
Get-FileHash <file> -Algorithm SHA256Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-19
RequirementsGet-FileHashGet-FileHash must be installed and available on PATH.
Version supportGet-FileHash Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsAlgorithm Hash PathRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-FileHash: command not foundGet-FileHash is missing or is not available on PATH.
VerifyGet-FileHash {{file}} -Algorithm SHA256The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-FileHashCommandRuns the Get-FileHash stage of this one-liner.
02<file>ParameterA value supplied in the Fill parameters section.
03-AlgorithmOptionConfigures Get-FileHash with the -Algorithm option.
04SHA256ArgumentPasses SHA256 to Get-FileHash.
Example input
Get-FileHash C:\Downloads\release.zip -Algorithm SHA256
Example output
Algorithm Hash Path
--------- ---- ----
SHA256 A08F4F133A9E1151373A2F3CE02BC5D9FE0F6F6A2D6C4CC56CCF06A4725BC0DA C:\Downloads\release.zip
Illustrative output — exact values vary by system and data.
Official sources