You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

已通过PowerShell脚本恢复更新,但Windows Update UI仍显示‘更新已暂停’

Windows Update UI 显示“更新已暂停”的问题解决方法

问题背景

已通过PowerShell脚本执行以下操作恢复Windows Update,但UI仍错误显示“更新已暂停”及“恢复更新”按钮:

  • 修改注册表路径HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\Settings下的PauseUpdates和PauseEndTime为0
  • 重启wuauserv和UsoSvc服务
  • 执行(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()触发更新检测
  • 清理SoftwareDistribution缓存
  • 安装关键更新

注册表及服务状态均显示更新已恢复,但UI未同步更新,预期应显示“检查更新”按钮。

可能原因

Windows Update UI的状态依赖多个注册表路径的设置,而非仅UpdatePolicy\Settings;同时UI进程可能未自动刷新,或存在组策略/MDM配置覆盖脚本的修改。

解决步骤

1. 补充修改UI相关注册表项

Windows Update UI的暂停状态还受HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings下的键值控制,需同步修改:

# 设置UI端的暂停过期时间为0
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "PauseUpdatesExpiryTime" -Value 0 -Type DWord
# 禁用UI端的暂停开关
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "PauseUpdatesEnabled" -Value 0 -Type DWord

2. 强制刷新UI进程

Windows Update UI嵌入在资源管理器进程中,需重启相关进程以加载新设置:

# 结束Windows Update客户端进程(若存在)
Stop-Process -Name wuauclt -Force -ErrorAction SilentlyContinue
# 重启资源管理器
Stop-Process -Name explorer -Force
Start-Process explorer.exe

3. 检查并重置组策略/MDM配置

若系统受组策略或MDM管理,可能覆盖注册表设置:

  • 打开本地组策略编辑器,导航至计算机配置>管理模板>Windows组件>Windows更新>管理更新暂停,确认该策略为「未配置」或「禁用」
  • 执行命令更新组策略:
    gpupdate /force
    

4. 彻底重置Windows Update组件

若上述步骤无效,可重置整个Windows Update组件以清除缓存和异常配置:

# 停止所有相关服务
Stop-Service -Name wuauserv, cryptSvc, bits, msiserver -Force
# 重命名缓存文件夹
Rename-Item -Path C:\Windows\SoftwareDistribution C:\Windows\SoftwareDistribution.old -Force
Rename-Item -Path C:\Windows\System32\catroot2 C:\Windows\System32\catroot2.old -Force
# 重启服务
Start-Service -Name wuauserv, cryptSvc, bits, msiserver

5. 手动触发更新检测同步

执行以下命令强制Windows Update Agent同步状态并刷新UI:

$updateSession = New-Object -ComObject Microsoft.Update.Session
$updateSearcher = $updateSession.CreateUpdateSearcher()
# 执行一次更新搜索以触发状态同步
$null = $updateSearcher.Search("IsInstalled=0 and Type='Software'")

验证方法

完成上述步骤后,打开Windows Update设置界面,确认是否已显示「检查更新」按钮;同时再次检查以下注册表项值是否均为0:

  • HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\Settings\PauseUpdates
  • HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\Settings\PauseEndTime
  • HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings\PauseUpdatesEnabled
  • HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings\PauseUpdatesExpiryTime

内容的提问来源于stack exchange,提问作者214 7B11

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 09:26:17