diff --git a/farmq-install-en.ps1 b/farmq-install-en.ps1 index f2545dc..7c513c9 100644 --- a/farmq-install-en.ps1 +++ b/farmq-install-en.ps1 @@ -85,7 +85,7 @@ function Test-Requirements { # Check internet connection try { - Test-Connection "8.8.8.8" -Count 1 -Quiet | Out-Null + Microsoft.PowerShell.Management\Test-Connection "8.8.8.8" -Count 1 -Quiet | Out-Null } catch { Write-Warning "Please check your internet connection." @@ -295,7 +295,7 @@ function Configure-Firewall { # ================================ # Verify Connection # ================================ -function Test-Connection { +function Test-NetworkConnection { Write-Status "Verifying network connection..." Start-Sleep -Seconds 5 @@ -333,7 +333,7 @@ function Test-Connection { Write-Status "Testing network connectivity..." try { - Test-Connection "100.64.0.1" -Count 2 -Quiet | Out-Null + Microsoft.PowerShell.Management\Test-Connection "100.64.0.1" -Count 2 -Quiet | Out-Null Write-Success "FARMQ network ($FarmqNetwork) connection successful!" } catch { @@ -433,7 +433,7 @@ function Main { if ($registerSuccess) { Configure-Firewall - Test-Connection + Test-NetworkConnection Complete-Installation Show-FinalInfo } else {