PowerShell/Scripts/SHA256.ps1
2020-06-08 20:23:43 +00:00

14 lines
308 B
PowerShell
Executable File

#!/snap/bin/powershell
#
# PowerShell Script to Calculate SHA256 Hashes for Files
# ------------------------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
param(
[string]$File)
$Result = get-filehash $File
write-host $Result.Hash
exit 0