Search notes:

PowerShell cmdLet get-fileHash

get-fileHash calculates a hash value for a file and returns a psObject with the following three members (Note Properties) whose type is string:
$hash = get-fileHash xyz.txt

$hash.algorithm
#
# SHA256

$hash.path
#
# C:\Users\rene\PowerShell\cmdlets\fileHash\get\xyz.txt

$hash.hash
#
# B1B113C6ED8AB3A14779F7C54179EAC2B87D39FCEBBF65A50556B8D68CAAA2FB
Github repository about-PowerShell, path: /cmdlets/fileHash/get/calculate-hash.ps1

Choosing the algorithm

The -algorithm option allows to choose from one of the following algorithms:

See also

Powershell command noun: fileHash

Index