Updated train-dns-cache.ps1

This commit is contained in:
Markus Fleschutz 2020-11-22 09:42:43 +00:00
parent 3e1d7901e5
commit 3e1964cf8c

View File

@ -19,7 +19,7 @@ try {
$Count = $Table.Length $Count = $Table.Length
$StopTime = Get-Date $StopTime = Get-Date
$TimeInterval = New-Timespan -start $StartTime -end $StopTime $TimeInterval = New-Timespan -start $StartTime -end $StopTime
write-host "✔️ DNS cache trained with $Count domain names in $TimeInterval sec." write-host "OK - DNS cache trained with $Count domain names in $TimeInterval sec."
exit 0 exit 0
} catch { Write-Error $Error[0] } } catch { Write-Error $Error[0] }
exit 1 exit 1