mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-30 21:54:43 +02:00
Update check-dns-resolution.ps1
This commit is contained in:
parent
5e5d359049
commit
3942b3cb26
@ -31,7 +31,7 @@ try {
|
|||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
$Average = [math]::round($Count / $Elapsed, 1)
|
$Average = [math]::round($Count / $Elapsed, 1)
|
||||||
"✔️ $Average domains/sec ($Count domains resolved in $Elapsed sec)"
|
"✔️ DNS resolves $Average domains/sec ($Count domains in $Elapsed sec)"
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
Loading…
Reference in New Issue
Block a user