mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 23:02:41 +02:00
Updated ping-host.ps1 and enter-host.ps1
This commit is contained in:
@ -27,7 +27,7 @@ function GetPingLatency([string]$hostname) {
|
||||
try {
|
||||
[int]$latency = GetPingLatency($hostname)
|
||||
if ($latency -eq 1500) {
|
||||
Write-Host "⚠️ Host '$hostname' doesn't respond - check the connection or wake the host up."
|
||||
Write-Host "⚠️ Host '$hostname' doesn't respond - check the connection or maybe the host is down."
|
||||
exit 1
|
||||
}
|
||||
Write-Host "✅ $hostname is up and running ($($latency)ms latency)."
|
||||
|
Reference in New Issue
Block a user