PowerShell

Get-FileHash

SafeCompute file hashes

Get-FileHash <file> -Algorithm SHA256

Hashes files for integrity checks — cleaner output than certutil for scripting.

Examples

  • Get-FileHash setup.exe | % HashJust the hash string

Syntax

Get-FileHash <file> [-Algorithm SHA256|MD5]

Before you run it

Read only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store