diff --git a/Scripts/SHA256.ps1 b/Scripts/SHA256.ps1 new file mode 100755 index 00000000..2d3d8ca3 --- /dev/null +++ b/Scripts/SHA256.ps1 @@ -0,0 +1,13 @@ +#!/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 diff --git a/Scripts/refresh_dns_cache.ps1 b/Scripts/refresh_dns_cache.ps1 new file mode 100755 index 00000000..f8c1881b --- /dev/null +++ b/Scripts/refresh_dns_cache.ps1 @@ -0,0 +1,10 @@ +#!/snap/bin/powershell +# +# PowerShell Script to Refresh the DNS Cache +# ------------------------------------------ +# Author: Markus Fleschutz +# Source: github.com/fleschutz/PowerShell +# License: CC0 + +Resolve-DnsName -name bing.com -DnsOnly +exit 0