Skip to content

Commit 6d46821

Browse files
author
Markus Fleschutz
committed
Update ping-hosts.ps1
1 parent b2485aa commit 6d46821

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/ping-hosts.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<#
22
.SYNOPSIS
3-
Pings the local hosts
3+
Pings local hosts
44
.DESCRIPTION
55
This PowerShell script pings well-known hostnames in the local network and lists which one up.
66
.EXAMPLE
@@ -13,7 +13,7 @@
1313
#>
1414

1515
try {
16-
[string]$hosts = "Amnesiac,ArchLinux,Berlin,Boston,Brother,Canon,Castor,Cisco,Epson,Fedora,Fireball,Firewall,fritz.box,Gateway,Hippo,Io,Jarvis,Jenkins01,Jenkins02,LA,Laptop,Jupiter,Mars,Mercury,Miami,Mobile,NY,OctoPi,Paris,Pluto,Printer,Proxy,R2D2,Raspberry,Rocket,Rome,Router,Server,SmartPhone,SmartWatch,Sunnyboy,Tablet,Ubuntu,Vega,Venus,XRX,Zeus" # sorted alphabetically
16+
[string]$hosts = "Amnesiac,ArchLinux,Berlin,Boston,Brother,Canon,Castor,Cisco,EchoDot,Epson,Fedora,Fireball,Firewall,fritz.box,Gateway,Hippo,HomeManager,Io,iPhone,Jarvis,Jenkins01,Jenkins02,LA,Laptop,Jupiter,Mars,Mercury,Miami,Mobile,NY,OctoPi,Paris,Pluto,Printer,Proxy,R2D2,Raspberry,Rocket,Rome,Router,Server,Shelly1,SmartPhone,SmartWatch,Soundbar,Sunnyboy,Switch,Tablet,Tolino,TV,Ubuntu,Vega,Venus,XRX,Zeus" # sorted alphabetically
1717
[int]$timeout = 600 # milliseconds
1818
$hostsArray = $hosts.Split(",")
1919
$count = $hostsArray.Count

0 commit comments

Comments
 (0)