Fix KB5031354 Failed to Install with error in Windows 11 22H2

Simple solutions to KB5031354 Failed to Install with errors 0x800f0831, 0x800f081f, 0x800705b9, or other and stuck at a certain percentage in Windows 11 22H2.

KB5031354 Failed to Install

Patch Tuesday, October 10 2023 brought a security update for Windows 11 as per the schedule having fixes for existing bugs and vulnerabilities. Unfortunately, a large number of users are unable to receive this patch due to different error codes such as 0x800705b9, 0x800f081f, 0x800f0831, or other. They complain “KB5031354 failed to install with some errors. Many users are stuck on Undoing changes made to your computer when restart the system.

KB5031354 is not installing issue can mostly occur because of Corrupted Windows update cache, interference with third-party programs, faulty network, and damaged system files. Apart from this, DNS configurations and low space can also trigger the error code. However, there are a bunch of ways to rescue this Windows update issue as we have previously done it – Fix KB5030310 Failed to Install with Error in Windows 11. So follow the methods carefully and implement them in your system:

KB5030310 Failed to install in Windows 11

Here is how to fix KB5031354 Failed to install with error in Windows 11 22H2:

Manually Download and Install the patch

If the automatic update is not successful there is an alternative to help manually install patches in Windows. Microsoft Update Catalog hosts all the rolled-out security updates and the same for drivers. From here, you can download standalone package of KB5031354 with .msu file extension. Using this file, the update can be easily installed, so follow the steps:

  1. Go to the Microsoft Update Catalog.
  2. You will find multiple files on this page; choose one that is compatible with your Windows version and computer.
  3. Click on Download button.
how to fix KB5031354 Failed to install with error in Windows 11 22H2
  1. A separate page will prompt with a link to the Standalone file.
  2. Click on this and let the downloading complete.
  3. Go to Downloads location, right-click on the .msu file, and select Install.

Read: Windows 11 22H2 KB5031354 Rolled out with protection against CVE-2023-44487

Windows Update Troubleshooter will be the easiest option

Windows offers a fixit tool to deal with the problems arising when trying to install an update. This is Windows update troubleshooter that can rescue the issue with only a single click. When you are facing KB5031354 failed to install with error 0x800f081f, 0x800f0831, 0x800705b9, or other this tool must work wonderfully in a hassle-free manner.

  1. Click “Windows Search” and type troubleshoot.
  2. Hit Enter.
  3. Then, click “Other Troubleshooters” on the right panel on the Settings page.
  4. Locate Windows Update in Most frequent part
  5. Click on Run.
Troubleshooting Windows Update from Settings System
  1. Please stay patient until the troubleshooter completes its tasks and follow if suggestions are displayed.

Reference: Use Common Windows Update Troubleshooter on Windows 11, 10, 8.1, 7

Reset and clear Windows Update Cache

Whenever a patch or build is creating trouble when installing corrupted Windows update cache might be the root cause. This is a location in SoftwareDistribution folder where all the downloaded files and folders are stored. Sometimes data in this folder gets damaged and hinders the process of automatic update. To repair the cache follow these steps:

  1. Type the term cmd.exe in the search box.
  2. Press Ctrl, Shift and Enter keys simultaneously.
  3. On User Account Control dialog, click Yes.
  4. Copy the below-provided lines, paste into the command prompt and press Enter sequentially:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
net stop AppReadiness
fix KB5031354 Failed to install
  1. Now it is time to rename the SoftwareDistribution folder:
del %windir%\SoftwareDistribution
  1. Then, reset BITS by running the below command:
bitsadmin /reset /allusers
  1. Finally, start the services using:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
net start AppReadiness
  1. Close the Command Prompt and restart your system.

See: How to Reset Windows Update to Default in Windows 10

Make sure Internet Connection is behaving correctly

Oftentimes the most basic requirements like good internet access are not fulfilled and this leads to Windows update errors. We are usually involved in finding complex reasons for KB5031354 Failed to Install in Windows 11 and do not care for the network.

Before going to more solutions, make sure that the internet connection is working well to receive this October 2023 patch Tuesday release. If this is creating a problem then follow the method:

  1. Power off the modem and stay for at least 10 seconds.
  2. Then switch on the router and connect your system to the internet again
  3. Now go to Settings > Windows Update and click on Check for updates.

If you are facing a complex problem with your internet connection then:

  1. Open Settings (Winkey + I).
  2. Select Network & Internet from the left pane.
  3. Scroll down and click on “Advanced network settings” from the right.
  4. Choose Network reset.
  5.  Click on “Reset now” on the next page.
  6. Select Yes on the verification pop-up.
  7. The system will reboot in a while. After restarting, connect to the internet.
  8. Try to install the Patch Tuesday update for Windows 11 once again.

Temporarily disable third-party antivirus

Interference with third-party antimalware or Firewall is one of the basic and root causes that may trigger KB5031354 error. However, the protection software is important for the safety of your computer but in reality, they are prone to conflicts with system files or other installed programs. So at least consider disabling the third party antivirus in the following manner:

  1. Click on Up arrow from the right side of taskbar.
  2. In system tray, look for antivirus icon and right click on it.
  3. Select Disable or Pause whichever is showing.
  4. If available specify a time frame.
  5. Now try Installing the Windows update.
  6. In case, you got success, re-enable the antivirus.

Run System File Checker and DISM Commands

If the issue still persists and you are unable to install KB5031354 then file corruption or inconsistencies deep inside the operating system might be liable. System File Checker or SFC and Deployment Imaging Service and Management Tool or DISM)command line tools may help overcome such circumstances.

Using both commands will repair the file system and structure and allow you to successfully install the Windows update:

  1. Press Windows key and type cmd.exe.
  2. From the right side of the result flyout, select – Run as administrator.
  3. Type this command SFC /SCANNOW and hit “Enter”.
  4. Wait for a while until you notice “Verification 100% complete” on the Command Prompt.
  5. Restart the system and check for updates once again. Suppose KB5031354 failed to install is still the issue then launch elevated command prompt once more.
  6. Run the below-written commands consecutively:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
Running DISM Command on Cmd Command prompt
  1. Allow the process to finish and reboot your PC.

SFC /Scannow, DISM.Exe, CHKDSK Windows 11 or 10

Reconfigure Alternate and Preferred DNS Settings

DNS contributes vitally to a Windows update process because its configuration helps establish connection between the local system and Microsoft update server. KB5031354 is not installing problem might be the outcome of some difficulties with the concerned settings. But you can fix them using below guide:

  1. Type ncpa.cpl. in Windows Search.
  2. Press Enter.
  3. Once the Network Connections window loads, right-click your running adapter.
  4. Select the option Properties from context menu.
  5. Check Internet Protocol version 4 (TCP/IPv4).
  6. Click on “Properties”.
  7. Select radio box for – Use the following DNS server addresses from the lower part.
  8. Enter IP addresses just as follows:

Preferred DNS server - 8.8.8.8
Alternate DNS server - 8.8.4.4

  1. Close the Properties window by clicking on OK.

Try installing in a Clean Boot State

The Clean boot may help to fix KB5031354 failed to install problem because this state prevents unnecessary services and drivers at startup. Furthermore, you detect the programs leading to this installation issue using this feature. So advance to the instructions:

  1. Click on Start, type “msconfig” (without quotes), and press Enter.
  2. Go to the Services tab, and check the option “Hide all Microsoft Services“.
  3. Click on the button saying “Disable all”.
  4. Then click on the Startup tab.
  5. Click on the link reading Open Task Manager.
  6. On Task Manager, right click on each item in the list and select Disable.
  7. After you are done, return back to System Configuration and click on Apply.
  8. Click OK and choose Restart from the warning dialog.

Follow the ultimate solution – In-Place Upgrade

Once you are facing the KB5031354 update problem, in-place upgrade is the sure shot method to get rid of it. Using this tool will reinstall the latest Windows 11 version with your files, settings, and apps preserved. Moreover, it can fix system inconsistencies and other glitches, ensuring a successful installation. Go with out the steps mentioned below:

  1. Navigate to the official web page where the ISO file is located.
  2. Go far down and find the heading – Download Windows 11 Disk Image (ISO).
  3. Click on “Select Download” drop-down and choose the option Windows 11 (multi-edition ISO).
  4. Now click the Download button.
  5. After validation of your request, click on Choose one.
  6. Select a suitable language from the list.
  7. Then, click on the button reading Confirm.
  8. Again validation process will be done.
  9. Click 64-bit Download.
  10. Go to the folder where the ISO is saved.
  11. Right-click on the Windows11_22H2_x64v2_Language.iso and select Mount.
  12. From the next folder, launch the setup.exe file.
  13. Choose Yes on the confirmation pop-up
  14. Click Next on the Install Windows 11 wizard.
  15. If you are asked to give consent for license agreement window; go with – Accept.
  16. The process will make sure your device has enough space and show the Ready to Install page.
  17. Select radio box for “Keep personal files and apps”.
  18. In the end, click on Install and allow the process to complete.

Methods:
Manually Download and Install the patch
Windows Update Troubleshooter will be the easiest option
Reset and clear Windows Update Cache
Make sure Internet Connection is behaving correctly
Temporarily disable third-party antivirus
Run System File Checker and DISM Commands
Reconfigure Alternate and Preferred DNS Settings
Try installing in a Clean Boot State
Follow the ultimate solution – In-Place Upgrade

That’s all!!

Sharing is caring    Share Whatsapp

 
Topics:  Windows
  
About Sunita
Love to play with Windows 11 and 10. Suggestion - Going for Registry change or system files edit then remember to take a backup or create a restore point before Starting.