Windows 更新-其他资源Windows Update - additional resources

适用于:Windows 10Applies to: Windows 10

以下资源提供有关使用 Windows 更新的其他信息。The following resources provide additional information about using Windows Update.

WSUS 疑难解答WSUS Troubleshooting

对 WSUS 客户端代理的问题进行故障排除Troubleshooting issues with WSUS client agents

如何解决 WSUS 问题How to troubleshoot WSUS

当 WSUS 客户端扫描更新时出现错误80244007Error 80244007 when WSUS client scans for updates

在 Windows 10 中,可能无法通过 "快速启动" 安装更新Updates may not be installed with Fast Startup in Windows 10

如何重置 Windows 更新组件?How do I reset Windows Update components?

此脚本将完全重置 Windows 更新客户端设置。This script will completely reset the Windows Update client settings. 它已在 Windows 7、8、10和 Windows Server 2012 R2 上进行了测试。It has been tested on Windows 7, 8, 10, and Windows Server 2012 R2. 它将配置与 Windows 更新的默认设置相关的服务和注册表项。It will configure the services and registry keys related to Windows Update for default settings. 除了 BITS 相关数据,它还将清理与 Windows 更新相关的文件。It will also clean up files related to Windows Update, in addition to BITS related data.

此脚本允许重置 Windows 更新代理解决 windows 更新的问题。This script allow reset the Windows Update Agent resolving issues with Windows Update.

手动重置 Windows 更新组件Reset Windows Update components manually

  1. 打开 Windows 命令提示符。Open a Windows command prompt. 若要打开命令提示符,请单击 "开始 > 运行"。To open a command prompt, click Start > Run. 复制并粘贴(或键入)以下命令,然后按 ENTER:Copy and paste (or type) the following command and then press ENTER:

    cmd
    
  2. 停止 BITS 服务和 Windows Update 服务。Stop the BITS service and the Windows Update service. 若要执行此操作,请在命令提示符处键入以下命令。To do this, type the following commands at a command prompt. 键入每个命令后按 ENTER。Press ENTER after you type each command.

    net stop bits
    net stop wuauserv
    
  3. 删除 qmgr \ * .dat 文件。Delete the qmgr*.dat files. 若要执行此操作,请在命令提示符处键入以下命令,然后按 ENTER:To do this, type the following command at a command prompt, and then press ENTER:

    Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
    
  4. 如果第一次尝试使用本文中的步骤解决 Windows 更新问题,请转到步骤5,无需执行步骤4中的步骤。If this is your first attempt at resolving your Windows Update issues by using the steps in this article, go to step 5 without carrying out the steps in step 4. 步骤4中的步骤仅应在疑难解答中的步骤中执行,前提是在执行完所有步骤后仍无法解决 Windows 更新问题(步骤4)。The steps in step 4 should only be performed at this point in the troubleshooting if you cannot resolve your Windows Update issues after following all steps but step 4. 步骤4中的步骤也由上述 Fix it 解决方案的 "积极" 模式执行。The steps in step 4 are also performed by the "Aggressive" mode of the Fix it Solution above.

    1. 将以下文件夹重命名为 *。.BAKRename the following folders to *.BAK:

      • %systemroot%\SoftwareDistribution\DataStore%systemroot%\SoftwareDistribution\DataStore
      • %systemroot%\SoftwareDistribution\Download%systemroot%\SoftwareDistribution\Download
      • %systemroot%\system32\catroot2%systemroot%\system32\catroot2

      若要执行此操作,请在命令提示符处键入以下命令。To do this, type the following commands at a command prompt. 键入每个命令后按 ENTER。Press ENTER after you type each command.

      • Ren%systemroot%\SoftwareDistribution\DataStore * .bakRen %systemroot%\SoftwareDistribution\DataStore *.bak
      • Ren%systemroot%\SoftwareDistribution\Download * .bakRen %systemroot%\SoftwareDistribution\Download *.bak
      • Ren%systemroot%\system32\catroot2 * .bakRen %systemroot%\system32\catroot2 *.bak
    2. 将 BITS 服务和 Windows 更新服务重置为默认安全描述符。Reset the BITS service and the Windows Update service to the default security descriptor. 若要执行此操作,请在命令提示符处键入以下命令。To do this, type the following commands at a command prompt. 键入每个命令后按 ENTER。Press ENTER after you type each command.

      • sc.exe sdset 位 D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PUsc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
      • sc.exe sdset wuauserv D:(A;;)CCLCSWRPWPDTLOCRRC;;;SY)(A;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PUsc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
  5. 在命令提示符处键入以下命令,然后按 ENTER:Type the following command at a command prompt, and then press ENTER:

    cd /d %windir%\system32
    
  6. 重新注册 BITS 文件和 Windows 更新文件。Reregister the BITS files and the Windows Update files. 若要执行此操作,请在命令提示符处键入以下命令。To do this, type the following commands at a command prompt. 键入每个命令后按 ENTER。Press ENTER after you type each command.

    regsvr32.exe atl.dll
    regsvr32.exe urlmon.dll
    regsvr32.exe mshtml.dll
    regsvr32.exe shdocvw.dll
    regsvr32.exe browseui.dll
    regsvr32.exe jscript.dll
    regsvr32.exe vbscript.dll
    regsvr32.exe scrrun.dll
    regsvr32.exe msxml.dll
    regsvr32.exe msxml3.dll
    regsvr32.exe msxml6.dll
    regsvr32.exe actxprxy.dll
    regsvr32.exe softpub.dll
    regsvr32.exe wintrust.dll
    regsvr32.exe dssenh.dll
    regsvr32.exe rsaenh.dll
    regsvr32.exe gpkcsp.dll
    regsvr32.exe sccbase.dll
    regsvr32.exe slbcsp.dll
    regsvr32.exe cryptdlg.dll
    regsvr32.exe oleaut32.dll
    regsvr32.exe ole32.dll
    regsvr32.exe shell32.dll
    regsvr32.exe initpki.dll
    regsvr32.exe wuapi.dll
    regsvr32.exe wuaueng.dll
    regsvr32.exe wuaueng1.dll
    regsvr32.exe wucltui.dll
    regsvr32.exe wups.dll
    regsvr32.exe wups2.dll
    regsvr32.exe wuweb.dll
    regsvr32.exe qmgr.dll
    regsvr32.exe qmgrprxy.dll
    regsvr32.exe wucltux.dll
    regsvr32.exe muweb.dll
    regsvr32.exe wuwebv.dll
    
  7. 重置 Winsock。Reset Winsock. 若要执行此操作,请在命令提示符处键入以下命令,然后按 ENTER:To do this, type the following command at a command prompt, and then press ENTER:

    netsh winsock reset
    
  8. 如果运行的是 Windows XP 或 Windows Server 2003,则必须设置代理设置。If you are running Windows XP or Windows Server 2003, you have to set the proxy settings. 若要执行此操作,请在命令提示符处键入以下命令,然后按 ENTER:To do this, type the following command at a command prompt, and then press ENTER:

    proxycfg.exe -d
    
  9. 重启 BITS 服务和 Windows Update 服务。Restart the BITS service and the Windows Update service. 若要执行此操作,请在命令提示符处键入以下命令。To do this, type the following commands at a command prompt. 键入每个命令后按 ENTER。Press ENTER after you type each command.

    net start bits
    
    net start wuauserv
    
  10. 如果你运行的是 Windows Vista 或 Windows Server 2008,请清除 BITS 队列。If you are running Windows Vista or Windows Server 2008, clear the BITS queue. 若要执行此操作,请在命令提示符处键入以下命令,然后按 ENTER:To do this, type the following command at a command prompt, and then press ENTER:

    bitsadmin.exe /reset /allusers