mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-08 22:10:14 +01:00
14 lines
308 B
PowerShell
Executable File
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
|