File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
source/internal/functions Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -284,11 +284,14 @@ function NewGet-AllInstanceInfo {
284
284
$authscheme = ' skipped'
285
285
}
286
286
}
287
-
288
- if (-not (($__dbcconfig | Where-Object { $_.Name -eq ' skip.connection.ping' }).Value)) {
289
- $pingu = New-Object System.Net.NetworkInformation.Ping
290
- $timeout = 1000 # milliseconds
291
- $ping = ($pingu.Send ($instance.ComputerName , $timeout )).Status
287
+ if ($IsWindows ) {
288
+ if (-not (($__dbcconfig | Where-Object { $_.Name -eq ' skip.connection.ping' }).Value)) {
289
+ $pingu = New-Object System.Net.NetworkInformation.Ping
290
+ $timeout = 1000 # milliseconds
291
+ $ping = ($pingu.Send ($instance.ComputerName , $timeout )).Status
292
+ } else {
293
+ $ping = ' skipped'
294
+ }
292
295
} else {
293
296
$ping = ' skipped'
294
297
}
You can’t perform that action at this time.
0 commit comments