mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-21 12:11:08 +01:00
14 lines
308 B
PowerShell
14 lines
308 B
PowerShell
|
#!/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
|