mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-02 20:26:56 +02:00
16 lines
352 B
PowerShell
Executable File
16 lines
352 B
PowerShell
Executable File
#!/snap/bin/powershell
|
|
#
|
|
# PowerShell Script to Refresh the DNS Cache
|
|
# ------------------------------------------
|
|
# Author: Markus Fleschutz
|
|
# Source: github.com/fleschutz/PowerShell
|
|
# License: CC0
|
|
|
|
$DomainTable = import-csv refresh_domains.csv
|
|
|
|
foreach($Line in $DomainTable) {
|
|
$Ignore = Invoke-WebRequest $Line.Domain
|
|
}
|
|
write-host "Done."
|
|
exit 0
|