-
Notifications
You must be signed in to change notification settings - Fork 0
/
MultiPing.ps1
175 lines (173 loc) · 10.5 KB
/
MultiPing.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# Define the IP addresses to ping
$ipAddresses = @('192.168.2.1', '192.168.2.4', '192.168.2.38', '192.168.169.100', '8.8.8.8')
# Continuously ping the IP addresses
while ($true) {
$results = @()
foreach ($ip in $ipAddresses) {
$result = Test-Connection -ComputerName $ip -Count 1 -ErrorAction SilentlyContinue
$ping = "Failed"
if ($result.Status -eq "Success") {
$ping = $result.Latency
} else {
$ping = $result.Status
}
$results += New-Object PSObject -Property @{
IPAddress = $ip
Ping = $ping
}
}
Clear-Variable result
$results | Select-Object IPAddress, Ping | Format-Table -AutoSize
Start-Sleep -Seconds 1
}
# SIG # Begin signature block
# MIIbwgYJKoZIhvcNAQcCoIIbszCCG68CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDD2A83Mcq+8AFW
# YuK+Xq//79OAhFEiHU7/PNaXJGmqOaCCFhMwggMGMIIB7qADAgECAhBpwTVxWsr9
# sEdtdKBCF5GpMA0GCSqGSIb3DQEBCwUAMBsxGTAXBgN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