top of page

PowerShell Command to get Hash Values

You can use the Get-FileHash command in PowerShell to generate hash values of an electronic file. PowerShell supports the MD5; SHA1; SHA256; SHA384; and SHA512 algorithms.

Enter the Get-FileHash command, followed by the path of the file to be analyzed, and then the specification for the algorithm. The Format-List cmdlet will show each of the properties of the command on a separate line.

Get-FileHash C:\foofolder\FederalRulesofEvidence.pdf -Algorithm SHA1 | Format-List

bottom of page