Windows 更新卡住时重置 Windows 更新组件

停止更新相关服务,重命名 SoftwareDistribution 下载缓存,再重新启动服务。

Windows系统诊断低风险
net stop bits net stop wuauserv net stop cryptsvc ren %Systemroot%\SoftwareDistribution\DataStore DataStore.bak ren %Systemroot%\SoftwareDistribution\Download Download.bak net start bits net start wuauserv net start cryptsvc

01命令

命令
$ net stop bits
net stop wuauserv
net stop cryptsvc
ren %Systemroot%\SoftwareDistribution\DataStore DataStore.bak
ren %Systemroot%\SoftwareDistribution\Download Download.bak
net start bits
net start wuauserv
net start cryptsvc

02作用说明

按微软官方文档,先停止 BITS、Windows 更新(wuauserv)和加密服务,把 SoftwareDistribution 的 DataStore 和 Download 文件夹重命名为 .BAK 以强制重建缓存,然后再启动这三个服务。建议先尝试 Windows 更新疑难解答。

03风险

风险低风险
使用条件Run from an elevated (Administrator) command prompt
!注意: 需要以管理员身份运行命令提示符。清空缓存后待安装的更新会重新下载。微软提醒:用 sc.exe 重置服务安全描述符会覆盖现有 ACL,仅在万不得已时使用。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Additional resources for Windows Update - Windows Client | Microsoft Learn
    learn.microsoft.com · community · 2026-09-21
    依据: Stop the BITS service, the Windows Update service and the Cryptographic service... net stop bits / net stop wuauserv / net stop cryptsvc ... Restart the BITS service, the Windows Update service and the Cryptographic service. net start bits / net start wuauserv / net start cryptsvc
  • Net - Services, File/Print shares, Permissions command - Windows CMD
    ss64.com · technical · 2026-09-21
    依据: Net - Services, File/Print shares, Permissions command - Windows CMD SS64 CMD How-to NET.exe The NET Command is used to manage network resources as follows: NET ACCOUNTS, GROUP, LOCALGROUP - Account settings and group members. NET COMPUTER, CONFIG_ - Network configuration (Workstation/Server). NET FILE, SESSIONS - Manage open files and user sessions. NET HELP, HELPMSG - Help. NET PRI

最后验证: 2026-09-21 · 分类: 系统与设置

06相关方案