From 674d1368bb1d4181ddf2f6fdae6fed430bf94082 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Sun, 21 Sep 2025 23:21:18 +0200 Subject: [PATCH] [Offline] Fixed invalid command in PWSH 5 (#3604) -TimeoutSeconds is not a parameter in Test-Connection for PWSH 5 --- functions/private/Test-WinUtilInternetConnection.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/private/Test-WinUtilInternetConnection.ps1 b/functions/private/Test-WinUtilInternetConnection.ps1 index 17ef23d2..d2aaca4a 100644 --- a/functions/private/Test-WinUtilInternetConnection.ps1 +++ b/functions/private/Test-WinUtilInternetConnection.ps1 @@ -14,7 +14,7 @@ function Test-WinUtilInternetConnection { ) foreach ($site in $testSites) { - if (Test-Connection -ComputerName $site -Count 1 -Quiet -TimeoutSeconds 3 -ErrorAction SilentlyContinue) { + if (Test-Connection -ComputerName $site -Count 1 -Quiet -ErrorAction SilentlyContinue) { return $true } }