mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-15 19:21:04 +01:00
Update check-dns.ps1
This commit is contained in:
parent
8bba46a997
commit
afdaabc0a8
@ -26,12 +26,12 @@ try {
|
||||
[float]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
|
||||
$Average = [math]::round($NumRows / $Elapsed, 1)
|
||||
Write-Progress -completed "."
|
||||
if ($Average -gt 10.0) {
|
||||
Write-Host "✅ DNS resolution is $Average domains per second"
|
||||
"✅ DNS resolution is $Average domains per second"
|
||||
} else {
|
||||
Write-Host "⚠️ DNS resolution is $Average domains per second only!"
|
||||
"⚠️ DNS resolution is $Average domains per second only!"
|
||||
}
|
||||
Write-Progress -completed "Done."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user