From 23edb5c13fa6b0e474dedde753cabc345d8def97 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 8 Jun 2020 20:23:43 +0000 Subject: [PATCH] Added SHA256.ps1 and refresh_dns_cache.ps1 --- Scripts/SHA256.ps1 | 13 +++++++++++++ Scripts/refresh_dns_cache.ps1 | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100755 Scripts/SHA256.ps1 create mode 100755 Scripts/refresh_dns_cache.ps1 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