[Offline] Fixed invalid command in PWSH 5 (#3604)

-TimeoutSeconds is not a parameter in Test-Connection for PWSH 5
This commit is contained in:
CodingWonders
2025-09-21 23:21:18 +02:00
committed by GitHub
parent c7495059fd
commit 674d1368bb

View File

@@ -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
}
}