diff --git a/scripts/ps/netcheck.ps1 b/scripts/ps/netcheck.ps1 index f1019c0..1e68133 100644 --- a/scripts/ps/netcheck.ps1 +++ b/scripts/ps/netcheck.ps1 @@ -15,8 +15,13 @@ Function fDefaultGatewayCheck() { Start-Sleep -Seconds 60 Exit 1 } - Test-Connection $vSCNextHop - $vSCNextHopResult = $? + else + { + Test-Connection $vSCNextHop + Test-Connection $vSCNextHop = $vSCNextHopResult + $vSCNextHopResult = $? + } + } fDefaultGatewayCheck @@ -25,6 +30,8 @@ if ($vSCNextHopResult -contains $false) { Write-Host "SC-NET-ERR002: CANNOT PING DEFAULT GATEWAY" Write-Host "Please check network connection" + Write-Host "If your default gateway doesn't respond to ping, this might be a security feature, might not be" + Write-Host "Please confirm if you can reach the internet" Write-Host "If you would like to [F]orcefully continue, connect a keyboard and type F" Write-Host "If you would like to run this test [A]gain, connect a keyboard and type A" $vSCNextHopUserResponse = Read-Host "F / A?"