V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
loginv2
V2EX  ›  Windows

win10 右下角的网络图标没了,如何修复?

  •  
  •   loginv2 · 2023-03-06 05:08:28 +08:00 · 1902 次点击
    这是一个创建于 633 天前的主题,其中的信息可能已经有所发展或是发生改变。
    起因:网络图标变成地球了
    过程:
    1 搜索本站的时候发现了 https://www.v2ex.com/t/806309
    2 里面有人提到 https://github.com/dantmnf/NCSIOverride
    3 下载运行之后,并没有解决问题。网络图标也没了,系统更新也不能更新了,onedrive 也无法登录,连易升都连不上服务器,系统设置打不开“网络和 Inetrnet”(闪退)
    尝试:
    1 用对应 windows 版本的注册表替换回来,无效
    2 删除 NCSIOverride 的文件,无效
    3 安装了 Debugging Tools for Windows 并且根据 NCSIOverride 的说明手动修改偏移,无效

    目前 NlaSvc 这个服务无法启动,在日志里面的信息是

    Network Location Awareness 服务由于下列服务特定错误而终止:
    %%3221226008

    ```
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7024</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2023-03-05T21:06:17.4854587Z" />
    <EventRecordID>57328</EventRecordID>
    <Correlation />
    <Execution ProcessID="648" ThreadID="17356" />
    <Channel>System</Channel>
    <Computer>5950X</Computer>
    <Security />
    </System>
    - <EventData>
    <Data Name="param1">Network Location Awareness</Data>
    <Data Name="param2">%%3221226008</Data>
    <Binary>4E006C0061005300760063000000</Binary>
    </EventData>
    </Event>
    ```
    注册表
    ```
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc]
    "DependOnService"=hex(7):4e,00,53,00,49,00,00,00,52,00,70,00,63,00,53,00,73,00,\
    00,00,54,00,63,00,70,00,49,00,70,00,00,00,44,00,68,00,63,00,70,00,00,00,45,\
    00,76,00,65,00,6e,00,74,00,6c,00,6f,00,67,00,00,00,00,00
    "Description"="@%SystemRoot%\\System32\\nlasvc.dll,-2"
    "DisplayName"="@%SystemRoot%\\System32\\nlasvc.dll,-1"
    "ErrorControl"=dword:00000001
    "FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
    00,01,00,00,00,64,00,00,00,01,00,00,00,64,00,00,00,00,00,00,00,00,00,00,00
    "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
    74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
    00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
    6b,00,20,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,53,00,65,00,72,00,76,\
    00,69,00,63,00,65,00,20,00,2d,00,70,00,00,00
    "ObjectName"="NT AUTHORITY\\NetworkService"
    "RequiredPrivileges"=hex(7):53,00,65,00,43,00,72,00,65,00,61,00,74,00,65,00,47,\
    00,6c,00,6f,00,62,00,61,00,6c,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,\
    67,00,65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,\
    00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\
    00,00,53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,00,69,00,76,00,69,\
    00,6c,00,65,00,67,00,65,00,00,00,00,00
    "ServiceSidType"=dword:00000001
    "Start"=dword:00000002
    "Type"=dword:00000020

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\LANIds]
    "WLANDllName"="WlanApi.dll"

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters]
    "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
    00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
    6e,00,6c,00,61,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
    "ServiceDllUnloadOnStop"=dword:00000001

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Cache]
    "OpportunisticInternetGatewaysV4"=hex:06,00,50,56,e2,c3,bc,00,00,53,5a,02,00
    "KnownProxylessGatewaysV4"=hex:06,00,50,56,e2,c3,bc,00,00,53,5a,02,00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet]
    "ActiveDnsProbeContent"="131.107.255.255"
    "ActiveDnsProbeContentV6"="fd3e:4f5a:5b81::1"
    "ActiveDnsProbeHost"="dns.msftncsi.com"
    "ActiveDnsProbeHostV6"="dns.msftncsi.com"
    "ActiveWebProbeContent"="Microsoft Connect Test"
    "ActiveWebProbeContentV6"="Microsoft Connect Test"
    "ActiveWebProbeHost"="www.msftconnecttest.com"
    "ActiveWebProbeHostV6"="ipv6.msftconnecttest.com"
    "ActiveWebProbePath"="connecttest.txt"
    "ActiveWebProbePathV6"="connecttest.txt"
    "CaptivePortalTimer"=dword:00000000
    "CaptivePortalTimerBackOffIncrementsInSeconds"=dword:00000005
    "CaptivePortalTimerMaxInSeconds"=dword:0000001e
    "EnableActiveProbing"=dword:00000001
    "PassivePollPeriod"=dword:0000000f
    "StaleThreshold"=dword:0000001e
    "WebTimeout"=dword:00000023

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\ManualProxies]

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\NCSIOverride]

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\NCSIOverride\Offsets]
    "NCSI_INTERFACE_ATTRIBUTES_SetCapability"=hex(b):4c,a0,01,00,00,00,00,00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Security]
    "Security"=hex:01,00,04,80,98,00,00,00,a4,00,00,00,00,00,00,00,14,00,00,00,02,\
    00,84,00,05,00,00,00,00,02,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,\
    00,00,20,02,00,00,00,02,14,00,ff,01,0f,00,01,01,00,00,00,00,00,05,12,00,00,\
    00,00,00,14,00,9d,00,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,\
    8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,28,00,1d,00,02,00,01,\
    06,00,00,00,00,00,05,50,00,00,00,44,3e,41,bb,45,ba,a8,7a,6c,bd,92,68,f4,ad,\
    64,8f,d5,e6,70,e9,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,\
    05,12,00,00,00

    ```
    请问有什么办法修复系统,避免重装系统
    17 条回复    2023-03-09 08:13:58 +08:00
    loginv2
        1
    loginv2  
    OP
       2023-03-06 05:13:25 +08:00
    试过网络重置,wsock reset 也没有用
    hdp5252
        2
    hdp5252  
       2023-03-06 05:28:52 +08:00 via Android
    连接翻墙路由器看看正常不,不正常最简单的方法就是重装。
    正常就不要管它了
    yaoyao1128
        3
    yaoyao1128  
       2023-03-06 06:31:24 +08:00 via iPhone   ❤️ 1
    可能是注册表权限问题
    https://social.technet.microsoft.com/Forums/windows/en-US/451243f2-0ff3-47d9-b7b0-aa173cf10b9a/the-network-location-awareness-service-terminated-with-the-following-service-specific-error?forum=win10itpronetworking

    也可能是你替换的注册表信息有错误……替换注册表的来源是来自本机安装前的备份吗……

    c0000218 应该是一个源自注册表的错误……
    slrey
        4
    slrey  
       2023-03-06 08:30:32 +08:00
    试试禁用网卡再启用呢
    512357301
        5
    512357301  
       2023-03-06 08:44:56 +08:00 via Android
    上古时期,可以在任务栏设置里面配置哪些系统图标不在任务栏显示,现在不知道还有没有这个功能了
    weijancc
        6
    weijancc  
       2023-03-06 08:49:39 +08:00
    我最近也一样, 以前也出现过, 其实是因为微软的联网检测地址被墙了, 过段时间就好
    cslive
        7
    cslive  
       2023-03-06 08:53:31 +08:00
    重启大法,前几天更新过后出现过一次右下角图标都没了,连自启动的一些软件都没启动,后来重启好了
    selca
        8
    selca  
       2023-03-06 09:00:10 +08:00
    @slrey #4 我之前遇到的时候,就是用的这个方式
    villivateur
        9
    villivateur  
       2023-03-06 09:03:39 +08:00
    别折腾了,除非你是 Windows 系统的开发者,不然搞坏一些系统组件,再修复是几乎不可能的。重装大法好
    loginv2
        10
    loginv2  
    OP
       2023-03-06 09:03:58 +08:00
    @hdp5252 和墙无关,只是系统坏了。如果我要重装系统 那就不会折腾到早上了还没睡。


    @yaoyao1128 确实是这个问题
    管理员权限的命令行执行
    net localgroup administrators localservice /add
    net localgroup administrators networkservice /add
    解决了
    loginv2
        11
    loginv2  
    OP
       2023-03-06 09:05:10 +08:00
    @512357301 有的,任务栏右键 最后一项 - 打开或关闭系统图标。但我的问题是这里是灰色的,不能改。本质还是系统损坏了
    loginv2
        12
    loginv2  
    OP
       2023-03-06 09:05:52 +08:00
    @villivateur 已经修好了 非常开心
    loginv2
        13
    loginv2  
    OP
       2023-03-06 09:09:10 +08:00
    @yaoyao1128 备份来自于虚拟机安装的同版本 win10 。+ “3 安装了 Debugging Tools for Windows 并且根据 NCSIOverride 的说明手动修改偏移,无效” 这一步的操作。
    yaoyao1128
        14
    yaoyao1128  
       2023-03-06 09:49:18 +08:00 via iPhone
    @loginv2 以后尽量备份注册表,因为有一些数据即使同一个机器两次安装也可能会出现差别,直接恢复可能会直接导致无法开机之类的~
    BeforeTooLate
        15
    BeforeTooLate  
       2023-03-06 15:35:03 +08:00
    反正可以上网,不管他就行
    loginv2
        16
    loginv2  
    OP
       2023-03-07 08:13:58 +08:00
    @BeforeTooLate 有很多软件是根据这个状态来决定行为的,例如网盘同步,系统更新
    cat9life
        17
    cat9life  
       2023-03-09 08:13:58 +08:00
    @loginv2 #16 这一点还是头一次听到,学习了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3761 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:33 · PVG 18:33 · LAX 02:33 · JFK 05:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.