Make sure all of these are set:

####[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet] EnableActiveProbing set to 1###
 Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet" -Name "EnableActiveProbing" -Value "1";


####[HKLM\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator] NoActiveProbe set to 0 (should either not present or value must be 0)###

Set-ItemProperty -path "HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator" -Name "NoActiveProbe" -Value "0";

 
####[HKLM\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator] New Dword DisablePassivePolling set to 1###


To prevent the system from reverting back the registry values set the permissions for that container: