Skip to content

Commit 78ceb4b

Browse files
committed
Updated ping-host.ps1
1 parent 982debb commit 78ceb4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/ping-host.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Specifies the hostname or IP address to ping (x.com by default)
88
.EXAMPLE
99
PS> ./ping-host.ps1 x.com
10-
✅ Host 'x.com' at IP 104.244.42.1 is up with 20ms latency.
10+
✅ Host 'x.com' with 20ms latency at IP 104.244.42.1 is up 👍
1111
.LINK
1212
https://github.com/fleschutz/PowerShell
1313
.NOTES
@@ -22,7 +22,7 @@ try {
2222
[Threading.Tasks.Task]::WaitAll($tasks)
2323
foreach($ping in $tasks.Result) {
2424
if ($ping.Status -eq "Success") {
25-
Write-Output "✅ Host '$hostname' at IP $($ping.Address) is up with $($ping.RoundtripTime)ms latency."
25+
Write-Output "✅ Host '$hostname' with $($ping.RoundtripTime)ms latency at IP $($ping.Address) is up 👍"
2626
exit 0 # success
2727
} else {
2828
Write-Output "⚠️ No reply from '$hostname' (IP $($ping.Address)) - check the connection or maybe the host is down."

0 commit comments

Comments
 (0)