Windows更新失败,错误代码0x80040154

匿名
2025-02-04T11:12:23+00:00
Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 设备和部署 | 安装 Windows 更新、功能或角色

锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。 为了保护隐私,对于已迁移的问题,用户个人资料是匿名的。

0 个注释 无注释
{count} 票

5 个答案

排序依据: 非常有帮助
  1. 匿名
    2025-02-04T11:22:59+00:00

    你好,可以试一下重置一下 Windows 更新服务:开始右键(Win+X)→终端管理员→输入 cmd 回车,然后复制粘贴以下内容:

    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose 
    
    RD /S /Q "%WinDir%\System32\GroupPolicyUsers" 
    
    RD /S /Q "%WinDir%\System32\GroupPolicy" 
    
    gpupdate /force 
    
    reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f 
    
    reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f 
    
    reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f 
    
    reg delete "HKLM\Software\Policies" /f 
    
    reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f 
    
    reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f 
    
    reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware 
    
    reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f 
    
    reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f 
    
    reg delete "HKCU\Software\Policies" /f 
    
    reg delete "HKLM\Software\Microsoft\Policies" /f 
    
    reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsUpdate" /f 
    
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f 
    
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 0 /t REG_DWORD /f 
    
    SC config wuauserv start= auto 
    
    SC config bits start= auto 
    
    SC config cryptsvc start= auto 
    
    SC config trustedinstaller start= auto 
    
    SC config wuauserv type=share 
    
    net stop wuauserv 
    
    net stop cryptSvc 
    
    net stop bits 
    
    net stop msiserver 
    
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old 
    
    net start wuauserv 
    
    net start cryptSvc 
    
    net start bits 
    
    net start msiserver 
    
    USOClient StartInteractiveScan 
    

    然后再看看能不能解决问题,如果不行话可以试一下下载离线包:

    Microsoft Update Catalog KB5050577

    Microsoft Update Catalog KB5050094

    升级修复:

    使用MediaCreationToolW11升级/修复Windows11系统 - Microsoft Community

    0 个注释 无注释
  2. 匿名
    2025-02-04T13:39:49+00:00

    重置更新服务后并不能解决问题,下载离线包也会显示“更新不适用于你的计算机”。

    图片

    这是我下载的离线包:

    图片

    使用MediaCreationToolW11无法保留应用。

    请问还有别的方法吗?

    0 个注释 无注释
  3. 匿名
    2025-02-04T16:26:37+00:00

    HKCR里的更新相关组件注册表缺失。

    0 个注释 无注释
  4. 匿名
    2025-02-04T23:27:04+00:00

    你可能需要使用 iso 镜像升级修复。

    0 个注释 无注释
  5. 匿名
    2025-02-05T11:17:12+00:00

    由于实在没有更好的方法,因此我选择直接重装系统,已经重装了。

    此贴终结。

    0 个注释 无注释