diff --git a/scripts/check-network.ps1 b/scripts/check-network.ps1 index 8dd18d3a..0e74a317 100755 --- a/scripts/check-network.ps1 +++ b/scripts/check-network.ps1 @@ -22,4 +22,5 @@ & "$PSScriptRoot/check-dns.ps1" & "$PSScriptRoot/check-vpn.ps1" & "$PSScriptRoot/list-public-ip.ps1" +& "$PSScriptRoot/ping-local-hosts.ps1" exit 0 # success \ No newline at end of file diff --git a/scripts/ping-hosts.ps1 b/scripts/ping-local-hosts.ps1 similarity index 87% rename from scripts/ping-hosts.ps1 rename to scripts/ping-local-hosts.ps1 index ad61c920..41693780 100755 --- a/scripts/ping-hosts.ps1 +++ b/scripts/ping-local-hosts.ps1 @@ -2,9 +2,9 @@ .SYNOPSIS Pings local hosts .DESCRIPTION - This PowerShell script pings well-known hostnames in the local network and lists which one up. + This PowerShell script pings the computers in the local network and lists which one are up. .EXAMPLE - PS> ./check-hosts.ps1 + PS> ./ping-local-hosts.ps1 ✅ Up are: Hippo Jenkins01 Jenkins02 Rocket Vega .LINK https://github.com/fleschutz/PowerShell @@ -18,7 +18,7 @@ try { $hostsArray = $hosts.Split(",") $count = $hostsArray.Count - Write-Progress "Sending pings to $count local hosts..." + Write-Progress "Sending pings to the local hosts..." $queue = [System.Collections.Queue]::new() foreach($hostname in $hostsArray) { $ping = [System.Net.Networkinformation.Ping]::new()