Get-FileHash -Path ".\debian-13.2.0-amd64-netinst.iso" -Algorithm SHA512 | fl
# output
Algorithm : SHA512
Hash : 891D7936A2E21DF1D752E5D4C877BB7CA2759C902B0BFBF5527098464623BEDAA17260E8BD4ACF1331580AE56A6A87A08CC2F497102
DAA991D5E4E4018FEE82B
Path : \\mynas\myshare\ISO\Debian\debian-13.2.0-amd64-netinst.iso
You have to format the output using Format-List (fl) so you can see the full hash without it being truncated

Get just the hash by wrapping the Get-FileHash command in ().Hash
(Get-FileHash -Path ".\debian-13.2.0-amd64-netinst.iso" -Algorithm SHA512).Hash
# output
891D7936A2E21DF1D752E5D4C877BB7CA2759C902B0BFBF5527098464623BEDAA17260E8BD4ACF1331580AE56A6A87A08CC2F497102DAA991D5E4E4018FEE82B

0 Comments