Windows 7 incorrectly reports "No Internet Access"

PROBLEM DESCRIPTION

Windows 7 may sometimes report that it has "No Internet Access"; this is visible via the System Tray icon showing a yellow exclamation mark, and also if you go into the Network and Sharing Center.  I had this problem recently on my work laptop and spent some time researching possible causes.

DISCUSSION / ANALYSIS

After searching via Google, I learned that one common cause was the Bonjour service and that the recommended fix was to delay its starting (setting the startup type on the service to "Automatic (Delayed Start").  Unfortunately for me, I didn‘t have this service installed.

Eventually I focused on the Microsoft Network Location Awareness (NLA) service provider, which is the component that controls how the computer handles multiple network connections, such as multiple network interface cards (NIC) connected to different networks, or a physical network connection and a dial-up connection.

I also learned that at system startup (and every time you change NIC settings?) a little-known sub-system of Windows kicks into action.  Its called Microsoft NCSI and the Network Location Awareness service tries to access the following URL:  www.msftncsi.com/ncsi.txt

That URL returns a simple text string:   Microsoft NCSI

This is how Windows 7 (and Vista?) determines whether it is connected to the Internet or not ... if it gets the string, its connected; if it doesn‘t, it assumes it is not connected to the Internet.

Since I knew that I was connected to the Internet, why was the URL not working and causing the service to reach a false conclusion?

I eventually made the connection that I had recently put a new Fortigate-200B into production and had integrated it with our ActiveDirectory database.  All outbound web traffic (HTTP/80) was being processed by an Identity-Based policy which required (transparent) user validation against ActiveDirectory before approving the request ... and if the Network Location Awareness service started up and tried to reach that URL before a user logged on to the computer, it would fail the identity-based policy user authentication challenge/response and then conclude that it was not connected to the Internet.

SOLUTION

I changed the startup settings for the Network Location Awareness service from "Automatic" to "Automatic (Delayed Start)" but this only partially corrected the problem.  Eventually I wrote the following batch file and set it to run in my Startup folder:

echo off echo. echo     Restart "Network Location Awareness" service echo. net stop "Network List Service" ping localhost -n 5 > nul net stop "Network Location Awareness" ping localhost -n 5 > nul net start "Network Location Awareness" ping localhost -n 5 > nul net start "Network List Service" exit

Copyright © 2011 Stephen Frost

Windows 7 incorrectly reports "No Internet Access"

时间: 2024-08-02 03:23:55

Windows 7 incorrectly reports "No Internet Access"的相关文章

[mysql]刷新windows恢复后mysql和"Access denied for user'root'@'IP'"处理问题

mysql数据库软件实际上是绿色的,重装系统后能够继续使用. 1.重装系统保留原有的后mysql安装文件夹,数据文件夹. 2.制作用于启动一个批处理文件mysql:[run.bat]的文件存储在mysql安装文件夹bin下. mysqld.exe --defaults-file=../my-default.ini --console 3.运行run.bat就可以. 假设连接数据库时出现下面错误:"Access denied for user'root'@'IP'" 1. 管理员登陆系统

添加删除Windows组件里没有IIS(Internet信息服务)项的解决方法

现在,安装操作系统,对于个人用户而言基本都是用Ghost的,用原盘安装的,已经很少了 但是,使用克隆盘安装的系统,基本上都是没有安装IIS(Internet信息服务)的,对于做开发测试的人来说,是很不方便的,通常需要自己在 “添加/删除Windows组件” 里面,把IIS重新装上. IIS的独立安装包,已经很普遍了,网上N多,也省去了找原始系统安装盘的麻烦,很是方便,但是,有些Ghost的系统,为了精简和瘦身,对系统的一些默认设置进行了更改,隐藏和消减了一些安装项,这其中就包括IIS:使得在“添

使用Windows Server 2003搭建一个asp+access网站

鼠标右键->新建->网站->下一步->描述(随便给一个,这里我以test为例) ->下一步->下一步->输入主目录的路径,默认路径下是C:\Inetpub\wwwroot->下一步->下一步->完成 当前已创建好网站,默认是停止状态的(因为默认网站也在运行,并且新创建的网站端口号和默认网站端口号相同,都为80端口)直接办法是把默认的网站停止,然后启动test网站 要想同时运行多个网站三种方法:1.改端口号2.改IP地址3.绑定的域名不同 首先我们

windows sever 2008系统,internet explorer增强安全配置正在阻止来自下列网站的内容

windows sever 2008系统在使用中经常弹出"ie增强安全设置正在阻止来自下列网站的内容",每次都需要关闭或者点击"添加",十分麻烦,现在我给大家讲一下解决办法 在桌面上点击 "开始">>管理工具>>服务器管理器,在弹出的窗口中右侧选择"配置IE ESC", 点击之后,在弹出的界面中把管理员和用户都选择"禁用",点击确定,重启浏览器再打开界面,就不会出现阻止的弹窗提示了.

windows程序设计——飞机大战笔记(Access数据库的使用)

//////////////////2015/07/22/////////////////// /////////////////by xbw ///////////////////////// ////////////////环境 VS2013///////////////// 为了登陆界面的注册用的数据库鼓捣的一天了,必须得写篇文章发泄一下了, 昨天发表的文章还是存在一点bug的,不足之处很容易就看出来了,这样的,今天有修改了一下,是大改哦 int first = 1; while (!Db

windows ntp安装及调试

Setting up NTP on Windows It's very helpful that Meinberg have provided an installer for the highly-respected and high-accurate NTP software for Windows users - my thanks to them.  This Web page provides a quick guide to installing NTP on Windows XP,

windows 10 系统服务列表

名称 状态 启动类型 登录为 描述ActiveX Installer (AxInstSV) 手动 本地系统 为从 Internet 安装 ActiveX 控件提供用户帐户控制验证,并基于组策略设置启用对 ActiveX 控件安装的管理.此服务根据要求启动,是否禁用 ActiveX 控件的安装取决于默认浏览器设置.AllJoyn Router Service 手动(触发器启动) 本地服务 路由本地 AllJoyn 客户端的 AllJoyn 消息.如果停止此服务,则自身没有捆绑路由器的 AllJoy

Windows Server 2016技术预览

Windows Server 2016是微软将于2016年9月份发布的最新服务器操作系统.目前微软官方发布了许多Windows Server 2016新的功能和特性,下面我们来简单看下: 主要内容 预览版界面 系统需求及安装 服务器管理变化 新特性及变化 预览版界面 服务器界面,沉浸而不渲染 登录界面,色调变得活泼起来,用户图像由原先Windows2012的方块变成圆形 继续 进入系统,乍一看,以为是WIN10呢,注意右下角 如此做法,似乎在传递win10的最佳服务器系统就是他了 开始菜单,Al

What is the purpose for IT Pro in Windows 10 Creators Update

Windows 10, version 1703-also known as the Windows 10 Creators Update-is designed for today's modern IT environment with new features to help IT pros more easily manage, and better protect, the devices and data in their organizations. It also provide