Added SHA256.ps1 and refresh_dns_cache.ps1

This commit is contained in:
Markus Fleschutz 2020-06-08 20:23:43 +00:00
parent af2a4bbd72
commit 23edb5c13f
2 changed files with 23 additions and 0 deletions

13
Scripts/SHA256.ps1 Executable file
View File

@ -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

10
Scripts/refresh_dns_cache.ps1 Executable file
View File

@ -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