如果您在安装累积更新期间在Windows Server或Windows 11/10客户端上遇到错误 0x800f0831(error 0x800f0831),那么这篇文章旨在帮助您。在这篇文章中,我们将确定此错误的潜在原因,并提供您可以尝试帮助您解决此问题的解决方案。
经调查,触发此错误消息的最常见原因是缺少先前更新包的清单。换句话说,WU ( Windows Update ) 组件不知道上次安装了什么,因此它拒绝安装新的更新包。
如果Windows 更新(Windows Update)服务被禁用或缺少 .NET 3.5 Framework ,您也可能会遇到此问题。此错误 0x800f0831(error 0x800f0831)的另一个潜在原因是Windows 10客户端计算机无法与Windows 更新(Windows Update)服务器通信。这可能是由于系统文件损坏或VPN连接或代理(Proxy)服务器造成的。
修复 Windows 更新错误 0x800f0831
如果在Windows Server或Windows 11/10功能更新(Feature Update)或累积更新(Cumulative Update)失败并出现错误代码 0x800f0831,那么这里有一些可能对您有所帮助的建议。
- 运行 Windows 更新疑难解答
- 手动安装功能或累积更新
- 卸载VPN客户端或删除代理(Proxy)服务器(如果适用)
- 将(Set)Windows 更新(Windows Update)的状态设置为自动(Automatic)
- 启用 .NET Framework 3.5
- 通过命令提示符(Command Prompt)安装.NET Framework 3.5
- 运行 SFC 和 DISM 扫描
- 执行系统还原
- 执行全新启动(Fresh Start)、就地(In-place)升级修复或全新安装
让我们看一下与列出的每个解决方案相关的过程的描述。
1]运行Windows更新疑难解答(Run Windows Update Troubleshooter)
此解决方案要求您运行 Windows 10 更新疑难解答并查看是否可以解决错误。 如果这不起作用,您可以继续下一个解决方案。
2 ]手动(] Manually)安装功能或累积更新
此解决方案要求您从 Microsoft 更新目录手动下载累积更新(manually download the Cumulative Update from Microsoft Update Catalog),然后安装包。要安装功能更新(Feature Update),您可以使用Windows 更新助手(Windows Update Assistant)。安装成功后,错误将不再出现。
3]卸载VPN客户端或删除代理(Proxy)服务器(如果适用)
VPN 客户端或代理服务器(VPN client or a Proxy server)可能会由于某种干扰而触发此错误,最终阻止您的Windows 10(Windows 10)客户端计算机和Windows 更新(Windows Update)服务器之间的通信。在这种情况下,您可以尝试通过Windows 10 中的程序和功能小程序卸载您的 VPN 软件,或从您的计算机(uninstalling your VPN software via the Programs and Features applet)中删除任何代理服务器,看看是否能解决问题。
4]将(Set)Windows Update的状态设置为自动(Automatic)
如果遇到Windows 更新(Windows Update)安装失败的计算机是共享域的一部分,则可能是网络策略或第 3 方系统优化工具最终禁用了负责更新功能的主要服务。在这种情况下,您可以通过将Windows 更新(Windows Update)服务启动类型(Startup Type)设置为自动(Automatic)并强制启动Windows 更新(Windows Update)服务来解决问题。
就是这样:
- 按 Windows 键 + R。
- 在 Run 对话框中,输入services.msc并按 Enter打开 Services(open Services)。
- 在“服务(Services)”窗口中,滚动并找到Windows 更新(Windows Update) 服务。
- 双击(Double-click)条目以编辑其属性。
- 确保(Make) 服务属性窗口中 启动类型(Startup type)菜单下的选项 从下拉列表中设置为自动。(Automatic )确认(Confirm)更改启动类型时可能出现的任何对话框。
- 单击应用(Apply)>确定(OK)以保存更改。
- 重新启动计算机。
在启动时,检查问题是否已解决。如果Windows 更新(Windows Update)的启动类型已设置为“自动(Automatic)”并且这不能解决问题,请继续执行下一个解决方案。
5]启用.NET Framework 3.5
如果您在尝试安装累积更新时遇到错误 0x800f0831 ,您应该探索禁用 .NET 3.5 框架的可能性。(error 0x800f0831)累积更新安装过程相当复杂,除非启用所有需要的依赖项,否则可能会失败。在这种情况下,您可以尝试使用Windows 功能(Windows Features)菜单来确保已启用 .NET 3.5 框架。
6]通过命令提示符(Command Prompt)安装.NET Framework 3.5(Install .NET Framework 3.5)
如果通过Windows 功能(Windows Features)菜单启用 .NET 3.5 框架不成功,您可以尝试通过从提升的命令提示符(Command Prompt)安装缺少的框架来自己强制安装。
首先,您需要一个Windows 10 安装介质(Windows 10 installation media)。然后,您可以按照以下说明从提升的CMD提示符强制安装 .NET Framework 3.5 。(Framework 3.5from)
将(Insert)Windows 10安装介质插入您的计算机。
按 Windows 键 + R。
在“运行”(Run)对话框中键入记事本,然后按CTRL + SHIFT + ENTER以使用管理员权限打开记事本。(Notepad)
将以下语法复制并粘贴到记事本(Notepad)中。
@echo off
Title .NET Framework 3.5 Offline Installer
for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\install.wim" set setupdrv=%%I
if defined setupdrv (
echo Found drive %setupdrv%
echo Installing .NET Framework 3.5...
Dism /online /enable-feature /featurename:NetFX3 /All /Source:PLACEHOLDER:\sources\sxs /LimitAccess
echo.
echo .NET Framework 3.5 should be installed
echo.
) else (
echo No installation media found!
echo Insert DVD or USB flash drive and run this file once again.
echo.
)
pause
注意:将语法中的PLACEHOLDER替换为当前保存安装介质的驱动器的盘符。
使用名称保存文件并附加.cmd 文件扩展名 - 例如; 安装 DOTnet3.5.cmd(InstallDOTnet3.5.cmd)。
现在,右键单击该文件并从上下文菜单中选择以管理员身份运行。(Run as administrator)
接下来,在确认提示处单击 “是(Yes) ”并等待该过程完成。
安装.NET 3.5 Framework后,重新启动计算机并查看累积更新错误 0x800f0831(Cumulative Update error 0x800f0831)是否在下次计算机启动时得到解决。如果没有,请继续下一个解决方案。
7]运行SFC和DISM扫描
如果您仍在努力解决该错误,则该问题很可能实际上是由某种系统文件损坏引起的。在这种情况下,您可以运行SFC/DISM扫描,看看是否有帮助。
SFC/DISM 是Windows中的 实用程序,允许用户扫描Windows系统文件中的损坏并恢复损坏的文件。
为方便起见,您可以使用以下过程运行扫描。
按 Windows 键 + R。
在“运行”对话框中,键入记事本(notepad)并按 Enter 键打开记事本。
将以下命令复制并粘贴到文本编辑器中。
@echo off
date /t & time /t
echo Dism /Online /Cleanup-Image /StartComponentCleanup
Dism /Online /Cleanup-Image /StartComponentCleanup
echo ...
date /t & time /t
echo Dism /Online /Cleanup-Image /RestoreHealth
Dism /Online /Cleanup-Image /RestoreHealth
echo ...
date /t & time /t
echo SFC /scannow
SFC /scannow
date /t & time /t
pause
使用名称保存文件并附加.bat 文件扩展名 - 例如; SFC_DISM_scan.bat。
以管理员权限重复运行批处理文件(run the batch file with admin privilege) (右键单击保存的文件并从上下文菜单中选择 以管理员身份运行(Run as Administrator)),直到它没有报告错误。
重新启动您的电脑。
在启动时,检查问题是否已解决。如果没有,请继续下一个解决方案。
8]执行系统还原
如果您最近在安装驱动程序或更新或意外关闭机器后才开始注意到此累积更新错误 0x800f0831 ,并且未安装任何挂起的更新,则可能是最近的系统更改导致无法安装更新。(Cumulative Update error 0x800f0831)在这种情况下,您可以尝试系统还原(System Restore)(警告(Caveat):任何更改,如应用程序安装、用户首选项以及在您要恢复到的快照创建后所做的任何其他内容都将丢失),看看是否有帮助。
要执行系统还原(perform System Restore),请执行以下操作:
- 按 Windows 键 + R。
- 在“运行”对话框中,键入rstrui 并按 Enter 以打开“ 系统还原(System Restore) 向导”。
- 到达System Restore的初始屏幕后,单击Next前进到下一个窗口。
- 在下一个屏幕上,首先选中与Show more restore points关联的框。
- 完成此操作后,选择一个日期早于您第一次开始注意到错误的日期。
- 单击下一步(Next) 前进到下一个菜单。
- 单击完成(Finish) 并在最后的提示处确认。
在下一次系统启动时,您的旧计算机状态将被强制执行。如果问题仍然存在,您可以尝试下一个解决方案。
9]执行(Perform)全新启动(Fresh Start),就地升级(In-place)修复或全新安装
此时,如果累积更新错误 0x800f0831(Cumulative Update error 0x800f0831 )仍未解决,则很可能是由于某种常规无法解决的系统损坏。在这种情况下,您可以尝试全新启动、就地升级修复或全新安装(Fresh Start, In-place upgrade repair or clean install)来重置每个 Windows 组件。
Hopefully, any of these solutions should fix the issue for you!
Fix Windows Update error 0x800f0831
If you during the іnstallation of a Cumulative Update you encounter error 0x800f0831 on a Windows Server or on a Windows 11/10 client, then this post is intended to help you. In this post, we will identify the potential causes of this error as well as provide the solutions you can try to help you redress this issue.
Upon investigation, the most popular cause that will trigger this error message is a missing manifest of the previous update package. In other words, the WU (Windows Update) component is not aware of what was last installed, so it refuses to install new update packages.
You can also encounter this issue if Windows Update service is disabled or a missing .NET 3.5 Framework. Another potential cause of this error 0x800f0831 is whereby the Windows 10 client machine cannot communicate with Windows Update servers. This can be due to system file corruption or VPN connections or Proxy servers.
Fix Windows Update error 0x800f0831
If a Feature Update or Cumulative Update has failed with error code 0x800f0831, on Windows Server or Windows 11/10 client machines, then here are some suggestions that may help you.
- Run Windows Update Troubleshooter
- Manually install the Feature or Cumulative update
- Uninstall the VPN client or remove the Proxy server (if applicable)
- Set the status of Windows Update to Automatic
- Enable .NET Framework 3.5
- Install .NET Framework 3.5 via Command Prompt
- Run SFC & DISM scans
- Perform System Restore
- Perform a Fresh Start, In-place upgrade repair or clean install
Let’s take a look at the description of the process involved in relation to each of the listed solutions.
1] Run Windows Update Troubleshooter
This solution requires you to run the Windows 10 Update Troubleshooter and see if that resolves the error. If this doesn’t work, you can continue with the next solution.
2] Manually install the Feature or Cumulative update
This solution requires you manually download the Cumulative Update from Microsoft Update Catalog and then install the package. To install a Feature Update, you may use Windows Update Assistant. On successful installation, the error will no longer appear.
3] Uninstall the VPN client or remove the Proxy server (if applicable)
A VPN client or a Proxy server could trigger this error due to some kind of interference that ends up blocking communications between your Windows 10 client machine and the Windows Update server. In this case, you can try uninstalling your VPN software via the Programs and Features applet in Windows 10 or remove any proxy server from your computer and see if that resolves the issue.
4] Set the status of Windows Update to Automatic
If the computer that’s experiencing the failed Windows Update installation is part of a shared domain, it’s possible that a network policy or a 3rd party system optimizer tool has ended up disabling the main service responsible for the updating function. In this case, you can get the issue resolved by setting the Windows Update service Startup Type to Automatic and force start the Windows Update service.
Here’s how:
- Press Windows key + R.
- In the Run dialog box, type services.msc and hit Enter to open Services.
- In the Services window, scroll and locate the Windows Update service.
- Double-click on the entry to edit its properties.
- Make sure that the option under the Startup type menu in the service’s properties window is set to Automatic from the drop-down. Confirm any dialog boxes which may appear when changing the startup type.
- Click Apply > OK to save changes.
- Restart the computer.
On boot, check to see if the issue is resolved. In case the startup type of Windows Update was already set to Automatic and this didn’t resolve the issue, proceed with the next solution.
5] Enable .NET Framework 3.5
If you’re encountering the error 0x800f0831 when trying to install a cumulative update, you should explore the possibility of a disabled .NET 3.5 framework. Cumulative updates installation processes are rather more complex and might fail unless every needed dependency is enabled. In this case, you can try using the Windows Features menu to ensure that .NET 3.5 framework is enabled.
6] Install .NET Framework 3.5 via Command Prompt
If enabling, .NET 3.5 framework via the Windows Features menu was unsuccessful, you can try to force the installation yourself by installing the missing framework from an elevated Command Prompt.
First, you’ll need a Windows 10 installation media. Then you can follow the instruction below to force the installation of.NET Framework 3.5from an elevated CMD prompt.
Insert the Windows 10 installation media into your computer.
Press Windows key + R.
In the Run dialog box type notepad and press CTRL + SHIFT + ENTER to open Notepad with admin privilege.
Copy and paste the syntax below into Notepad.
@echo off
Title .NET Framework 3.5 Offline Installer
for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\install.wim" set setupdrv=%%I
if defined setupdrv (
echo Found drive %setupdrv%
echo Installing .NET Framework 3.5...
Dism /online /enable-feature /featurename:NetFX3 /All /Source:PLACEHOLDER:\sources\sxs /LimitAccess
echo.
echo .NET Framework 3.5 should be installed
echo.
) else (
echo No installation media found!
echo Insert DVD or USB flash drive and run this file once again.
echo.
)
pause
Note: Replace PLACEHOLDER in the syntax with the letter of the drive that’s currently holding the installation media.
Save the file with a name and append the .cmd file extension – eg; InstallDOTnet3.5.cmd.
Now, right-click the file and choose Run as administrator from the context menu.
Next, click Yes at the confirmation prompt and wait for the process to complete.
Once the .NET 3.5 Framework is installed, restart your computer and see if the Cumulative Update error 0x800f0831 is resolved at the next computer startup. If not, continue with the next solution.
7] Run SFC and DISM scans
If you’re still grappling with the error it’s most likely that the issue is actually caused by some kind of system file corruption. In which case, you can run the SFC/DISM scan and see if that helps.
The SFC/DISM is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.
For the purposes of ease and convenience, you can run the scan using the procedure below.
Press Windows key + R.
In the Run dialog box, type notepad and hit Enter to open Notepad.
Copy and paste the command below into the text editor.
@echo off
date /t & time /t
echo Dism /Online /Cleanup-Image /StartComponentCleanup
Dism /Online /Cleanup-Image /StartComponentCleanup
echo ...
date /t & time /t
echo Dism /Online /Cleanup-Image /RestoreHealth
Dism /Online /Cleanup-Image /RestoreHealth
echo ...
date /t & time /t
echo SFC /scannow
SFC /scannow
date /t & time /t
pause
Save the file with a name and append the .bat file extension – eg; SFC_DISM_scan.bat.
Repeatedly run the batch file with admin privilege (right-click the saved file and select Run as Administrator from the context menu) until it reports no errors.
Restart your PC.
On boot, check to see if the issue is resolved. If not, continue with the next solution.
8] Perform System Restore
If you only started noticing this Cumulative Update error 0x800f0831 recently after a driver or update installation or after an unexpected machine shutdown, and none of the pending updates are installed, it’s likely that a recent system change has brought about this inability to install updates. In this case, you can try System Restore (Caveat: any changes like application install, user preferences and anything else made after the snapshot that you’ll be reverting to was created will be lost) and see if that helps.
To perform System Restore, do the following:
- Press Windows key + R.
- In the Run dialog box, type rstrui and hit Enter to open up the System Restore Wizard.
- Once you arrive at the initial screen of System Restore, click Next to advance to the next window.
- At the next screen, start by checking the box associated with Show more restore points.
- After you’ve done this, select a point which has an older date than the one in which you first started to notice the error.
- Click Next to advance to the next menu.
- Click Finish and confirm at the final prompt.
At the next system startup, your older computer state will be enforced. If the issue persists, you can try the next solution.
9] Perform a Fresh Start, In-place upgrade repair or clean install
At this point, if the Cumulative Update error 0x800f0831 is still unresolved, it’s most likely due to some kind of system corruption that cannot be resolved conventionally. In this case, you can try Fresh Start, In-place upgrade repair or clean install to reset every Windows component.
Hopefully, any of these solutions should fix the issue for you!