mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Added SHA256.ps1 and refresh_dns_cache.ps1
This commit is contained in:
parent
af2a4bbd72
commit
23edb5c13f
13
Scripts/SHA256.ps1
Executable file
13
Scripts/SHA256.ps1
Executable 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
10
Scripts/refresh_dns_cache.ps1
Executable 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
|
Loading…
Reference in New Issue
Block a user