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:
Table of Contents
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:
- Go to the Microsoft Update Catalog.
- You will find multiple files on this page; choose one that is compatible with your Windows version and computer.
- Click on Download button.
- A separate page will prompt with a link to the Standalone file.
- Click on this and let the downloading complete.
- 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.
- Click “Windows Search” and type troubleshoot.
- Hit Enter.
- Then, click “Other Troubleshooters” on the right panel on the Settings page.
- Locate Windows Update in Most frequent part
- Click on Run.
- 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:
- Type the term cmd.exe in the search box.
- Press Ctrl, Shift and Enter keys simultaneously.
- On User Account Control dialog, click Yes.
- 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
- Now it is time to rename the SoftwareDistribution folder:
del %windir%\SoftwareDistribution
- Then, reset BITS by running the below command:
bitsadmin /reset /allusers
- Finally, start the services using:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
net start AppReadiness
- 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:
- Power off the modem and stay for at least 10 seconds.
- Then switch on the router and connect your system to the internet again
- Now go to Settings > Windows Update and click on Check for updates.
If you are facing a complex problem with your internet connection then:
- Open Settings (Winkey + I).
- Select Network & Internet from the left pane.
- Scroll down and click on “Advanced network settings” from the right.
- Choose Network reset.
- Click on “Reset now” on the next page.
- Select Yes on the verification pop-up.
- The system will reboot in a while. After restarting, connect to the internet.
- 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:
- Click on Up arrow from the right side of taskbar.
- In system tray, look for antivirus icon and right click on it.
- Select Disable or Pause whichever is showing.
- If available specify a time frame.
- Now try Installing the Windows update.
- 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:
- Press Windows key and type cmd.exe.
- From the right side of the result flyout, select – Run as administrator.
- Type this command
SFC /SCANNOW
and hit “Enter”. - Wait for a while until you notice “Verification 100% complete” on the Command Prompt.
- 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.
- Run the below-written commands consecutively:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
- 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:
- Type ncpa.cpl. in Windows Search.
- Press Enter.
- Once the Network Connections window loads, right-click your running adapter.
- Select the option Properties from context menu.
- Check Internet Protocol version 4 (TCP/IPv4).
- Click on “Properties”.
- Select radio box for – Use the following DNS server addresses from the lower part.
- Enter IP addresses just as follows:
Preferred DNS server - 8.8.8.8
Alternate DNS server - 8.8.4.4
- 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:
- Click on Start, type “msconfig” (without quotes), and press Enter.
- Go to the Services tab, and check the option “Hide all Microsoft Services“.
- Click on the button saying “Disable all”.
- Then click on the Startup tab.
- Click on the link reading Open Task Manager.
- On Task Manager, right click on each item in the list and select Disable.
- After you are done, return back to System Configuration and click on Apply.
- 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:
- Navigate to the official web page where the ISO file is located.
- Go far down and find the heading – Download Windows 11 Disk Image (ISO).
- Click on “Select Download” drop-down and choose the option Windows 11 (multi-edition ISO).
- Now click the Download button.
- After validation of your request, click on Choose one.
- Select a suitable language from the list.
- Then, click on the button reading Confirm.
- Again validation process will be done.
- Click 64-bit Download.
- Go to the folder where the ISO is saved.
- Right-click on the Windows11_22H2_x64v2_Language.iso and select Mount.
- From the next folder, launch the setup.exe file.
- Choose Yes on the confirmation pop-up
- Click Next on the Install Windows 11 wizard.
- If you are asked to give consent for license agreement window; go with – Accept.
- The process will make sure your device has enough space and show the Ready to Install page.
- Select radio box for “Keep personal files and apps”.
- 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!!