get-fileHash calculates a hash value for a file and returns a psObject with the following three members (Note Properties) whose type is string: Algorithm
Hash
Path $hash = get-fileHash xyz.txt $hash.algorithm # # SHA256 $hash.path # # C:\Users\rene\PowerShell\cmdlets\fileHash\get\xyz.txt $hash.hash # # B1B113C6ED8AB3A14779F7C54179EAC2B87D39FCEBBF65A50556B8D68CAAA2FB
-algorithm option allows to choose from one of the following algorithms: