Fix KB5022845 Failed to Install with Error in Windows 11 22H2

Best 7 methods to solve KB5022845 Failed to Install with 0x80070002, 0x800f081f, 0x80070422, 0x80248007, 0x80070005 or any other error in Windows 11 22H2.

KB5022845 Failed to Install

14/02/2023 Security update came up with fixes for a bunch of bugs and vulnerabilities in Windows 11 22H2 but unfortunately, several people complain that they can not get this patch. According to them, when they tried, KB5022845 failed to install with some errors such as 0x80070005, 0x80070002, 0x800f081f, 0x80070422, 0x80248007 or other. Furthermore, after a certain percentage of installation, you might see Undoing changes made to your computer. This ends up reverting back to the old patch which you have lately installed like KB5022303, KB5019274, etc.

Unable to install KB5022845 might be the result of malfunctioning Windows update database cache, deregistered DLL, or presence of 3rd-party applications. Incorrectly functioning services can also impede the process and cause an error code when trying to receive a patch.

KB5022845 failed to install with error in Windows 11 22H2

Here is how to fix KB5022845 failed to install with error in Windows 11 22H2 –

Way-1: Install the patch using Standalone package

If a patch exhibits strange behavior and its installation is often interrupted, Microsoft Update Catalog is there to help. This Microsoft website provides access to standalone packages of all significant releases and offers free download links.

Therefore, you can manually take the Cumulative update and install it on your computer.

  1. Navigate to – https://www.catalog.update.microsoft.com/Search.aspx?q=KB5022845
  2. Find the appropriate file on website that is compatible with your processor’s architecture (x64 or ARM64). You can go to “Settings > System > About > System type” (in Device specifications section) to locate the architecture.
  3. Click on the Download button for that file.
how to fix KB5022845 failed to install with error in Windows 11 22H2
  1. A page will prompt up; click on the standalone file’s link.
  2. Come back to the folder where the update is downloaded.
  3. Double click on

windows11.0-kb5022845-x64_279b2b5fcc98e99c79f85a395cd7e8eef8d06503.msu

or

windows11.0-kb5022845-arm64_841decf52b4c3066f716bd993cd7687d681a06ed.msu

  1. Click Yes on the confirmation dialog.
  2. The computer will restart a couple of times and the patch would be installed.

Way-2: Use the Windows update troubleshooter

When KB5022845 0x80070002, 0x80070422, 0x800f081f, 0x80248007, or other error appears, a handy utility may solve the problem and this is Windows update troubleshooter. The integrated utility will detect any potential issues, verify the service registration and database, and repair them if necessary.

  1. Click on Search from the taskbar.
  2. Write – troubleshoot.
  3. Press the ‘Enter’ key to open the related Settings page.
  4. Select – Other troubleshooters.
  5. Under “Most frequent”, look for Windows update and click on Run.
fixing 0x80070005, 0x80070002, 0x800f081f, 0x80070422, 0x80248007 in february security patch
  1. The tool will detect problems such as Services status and registration, missing and corrupt files, and security settings, initialize diagnostic and resolve the found ones.

See – Use Common Windows Update Troubleshooter on Windows 11, 10, 8.1, 7.

Way-3: Reset cache of Windows update

A corrupted Windows update cache is often the underlying cause of a patch not being installed. If Windows 11 22H2 KB5022845 is stuck with or without an error, resetting the cache could be more effective than you think.

This process is especially simple, as you can manually follow the steps below, or easily run the script provided as part of this procedure.

A] Using command prompt

  1. Press Windows + R.
  2. Type – cmd.
  3. Then, press – ctrl + shift + enter.2
  4. Give approval on ‘User account control’ by clicking on Yes.
  5. Copy the following lines of command one at a time, paste them into Command Prompt, and hit Enter
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
fix KB5022845 failed to install
  1. Right click on Start.
  2. Select – Run.
  3. Paste the following command into Run dialog box, and press “Enter” –
C:\Windows\SoftwareDistribution\Download
  1. Select all the files and folders lying in the directory and delete them.
  2. Reboot your computer.
  3. Once more, open the command prompt as administrator and run the below commands –
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
  1. Go to Settings > Windows Update.
  2. Select – Check for updates.

Reference – How to Reset Windows Update to Default in Windows 10.

B] Through Script (Batch file)

To automatically reset Windows Update to its default settings and avoid the above steps, follow these instructions to fix KB5022845 Failed to Install in Windows 11:

  1. Click on the link Reset_Windows_11_update.
  2. Right click on the downloaded zip file and select Extract all.
  3. Open the unpacked folder, right click on WuReset.bat and choose – Run as administrator.
  4. When a command prompt shows, press any key to continue.
  5. The script in the file will start working; once finished, reboot your device.
  6. In the end, click on Start and select Settings.
  7. Go to “Windows update” and click on ‘Check for updates’.

Way-4: Repair your internet connection

Assuming the steps outlined above do not resolve the problem of KB5022845 failing to install with an error, it is now time to revisit the fundamentals. One of the main hindrances to the update process is disruption or interruption of internet access.

Therefore, verify that the internet is functioning properly on your computer. If you are unsure, restart the router and re-establish the network connection.

  1. Turn the router off for minimum 10 seconds.
  2. Switch on the device, connect to the internet again, and then try checking for updates.

If the internet access is still faulty then reset the network –

  1. Press – Winkey and I simultaneously.
  2. Select – Network & internet.
  3. On the next page that appears, click on – “Advanced network settings”.
  4. Choose – Network reset.
  5. From the coming screen, select “Reset now”.,
KB5022303 Failed to install with error network reset
  1. On the confirmation prompt, click – Yes.
  2. After the reset is completed, try installing KB5022845.

Alternatively, you can also see the guide – How to Network Reset Settings and Adapter in Windows 11.

Way-5: Take help from System File Checker (SFC) and DISM

If KB5022845 failed to install issue occurs, it could be because of missing or corrupted system files. The malfunction is likely to happen due to malware, conflicts between core elements and third-party programs, or flaws in dll or exe files. Thankfully, you can solve them with built-in command line tools.

SFC has the capability to rescue a failed patch installation by identifying and fixing the underlying causes and  DISM utility will correct the .wim file that can trigger this issue. Hence, follow the steps –

  1. Press Windows and S keys.
  2. Type the term cmd.exe.
  3. Select – Run as administrator.
  4. On the UAC pop-up that appears, click on Yes.
  5. Then Write SFC /Scannow on the command prompt and hit Enter.
  6. Give some time as it will take a few minutes to finish the repair.
  7. Reboot the system and check if the security update is installed.
  8. If KB5022845 Failed to Install issue still persists then again open the Command prompt as administrator.
  9. Run the following commands consecutively –
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
KB5022845 failed to install with error in Windows 11
  1. After the 3 commands are executed, restart the PC and check if the update is installing now.

Read – Windows 11 KB5022845 Update 22H2 Rolled out to 22H2 22621.1105.

Way-6: Check Google Alternate and Preferred DNS

Changing the DNS server to Google DNS may work when you are in trouble with KB5022845 Failed to Install. Therefore, move forward with the steps –

  1. Hold the Windows key down and hit R.
  2. In the Run, type – ncpa.cpl.
  3. Click OK.
  4. When Control Panel\All Control Panel Items\Network Connections window appears, right-click on the active adapter.
  5. Select – Properties.
  6. Check the option – Internet Protocol version 4 (TCP/IPv4).
  7. Click on “Properties”.
  8. On the following window, select – Use the following DNS server addresses. Write the below DNS –

Preferred DNS server - 8.8.8.8
Alternate DNS server - 8.8.4.4

  1. Close the window by clicking OK.
how to fix KB5022845 failed to install with error in Windows 11
  1. Restart the PC and see if your modifications work now.

Way-7: Execute in-place upgrade

When you can not install KB5022845 and 0x80070005, 0x80070002, 0x800f081f, 0x80070422, 0x80248007, or any error code is generated, the last and most reliable tool is In-place upgrade. The method will upgrade your system to the latest version, which includes the most recent LCU.

  1. Go to the web page – https://www.microsoft.com/en-in/software-download/windows11.
  2. Select “Download Windows 11 Disk Image (ISO)” from the bottom part of website.
  3. Click on the dropdown that states – “Windows 11 (multi-edition ISO)”.
  4. Choose – Download.
  5. Select the correct product language.
  6. Then click on – Confirm.
  7. Click on 64-bit Download (depending on devices).
  8. Right-click on Win11_22H2_Language_x64v1.iso and select Mount.
  9. Open the setup.exe file.
  10. Choose “Yes” on UAC for giving permission.
  11. On the “Install Windows 11” wizard; click – Next.
  12. When on license agreement window; click – Accept.
  13. The application will scan for available space on the machine and show “Ready to install” page.
  14. Choose the option – Keep personal files and apps.
  15. Finally, click on – Install.

Methods:
Way-1: Install the patch using Standalone package
Way-2: Use the Windows update troubleshooter
Way-3: Reset cache of Windows update
Way-4: Repair your internet connection
Way-5: Take help from System File Checker (SFC) and DISM
Way-6: Check Google Alternate and Preferred DNS
Way-7: Execute 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.