How To fix error code 0x80070157 on Windows 11/10

Error code 0x80070157 appears when installing pending Windows updates or when upgrading from Windows 10 to 11. In this guide, you will find all possible causes for this error code and three ways that should help you fix this type of error.

The topics of the post hide ]

  • 1Ways to Fix Error Code 0x80070157 on Windows 11/10
  • 21] Troubleshoot Windows Update
    • 1Windows 11:
    • 2Windows 10:
  • 32] Reset update components
  • 43] Manually install Windows updates

Ways to fix error code 0x80070157 on Windows 11/10

In most cases, Windows automatically downloads and installs pending updates on your computer. After that, once the installation is complete, you will see a message suggesting to restart your PC. However, in some cases, you may encounter an error code 0x80070157.

The consequences are that you will not be able to continue installing the update, and finish it in the best possible way. The three solutions that can fix this error on your Windows 11/10 PC are as follows:

  1. Run the Windows Update Troubleshooter
  2. Reset update components
  3. Manually install Windows updates

1] Troubleshoot Windows Update

Windows 11/10 includes a troubleshooter that can look for causes that are preventing Windows updates and help you fix them. All you need is to start launching this tool and activate it.

Here’s how you can accomplish this task:

Windows 11:

  • Press Win + I to launch Settings and navigate to the following path:

Settings> System> Troubleshooting> Other Troubleshooting Tools.

  • Locate Windows Update and press the Run button.

The troubleshooter will then start. Follow the onscreen instructions to resolve this error code.

Windows 10:

  • Press Win + I to launch Settings and go to below path –
  • Settings> Update & Security> Troubleshooting> Additional Troubleshooting Tools
  • Locate Windows Update and click on it.
  • When it expands, hit Run the troubleshooters.

The troubleshooter will then start. Follow the onscreen instructions to resolve this error code.

The troubleshooter will do its best to find a solution to this problem and offer you an option: “ Apply this fix “.

When you click this button, the update problem will automatically resolve itself. If it doesn’t find a solution to this problem, you can move on to the next workaround.

2] Reset update components

Within Windows 11/10 there are two cache folders that store all essential information about an update. All this for only a period of time. In some cases, such as the occurrence of errors like 0x80070157, the best thing to do is to delete these folders.

However, you must be very careful when deleting these folders, as deleting the Windows cache folders could cause the operating system to crash.

There is a way to do this and that includes stopping all Windows Update services. Once this is done, you can proceed with deleting the Windows cache folders.

Follow the guidelines below on how to perform this task on your Windows PC:

  • Press Win + X and choose Windows Terminal (Admin). The UAC window may appear later, click Yes to authorize opening as administrator.
  • By default, the terminal opens in Windows PowerShell (administrator). Hold down the “Ctrl + Shift + 2” keys on your keyboard to launch the command prompt.
  • On the console with elevated privileges, run these codes one after the other. Make sure you run all of these commands separately.

net stop bits

 

net stop wuauserv

 

net stop appidsvc

 

net stop cryptsvc

Run the following code to delete any network profiles added to your system.

Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*”

Delete the two cache folders we talked about by running these two codes.

rmdir %systemroot%\SoftwareDistribution /S /Q

 

rmdir %systemroot%\system32\catroot2 /S /Q

While you are working on resetting Windows Update components, be sure to reset your network as well. For this, you need to run the following codes one by one.

netsh winsock reset

 

netsh winsock reset proxy

Fix system file corruption by running this code.

sfc /scannow

Reactivate those services that you had previously stopped.

net start bits

 

net start wuauserv

 

net start appidsvc

 

net start cryptsvc

Restart your PC and hope the 0x80070157 error is resolved.

3] Manually install Windows updates

Once you have followed the steps listed above, the error 0x80070157 should be resolved. If not, you can manually download the packages and install them on your device.

Doing this will allow you to install a particular update and does not fix the underlying cause. Hence, there is a chance that you may encounter that error on your PC again.

Here’s how to manually get the latest cumulative updates and install them on Windows 11/10:

  • First of all, visit the Windows 11 update history. If you get this error code on your Windows 10 PC, go to this webpage instead.
  • Use the navigation on the left and select the version of Windows 11/10 installed on your system. Select the link above and you will get the required KBnumber . Note this KB number and visit the Microsoft Update Catalog .
  • Copy / pastethe cumulative update number (the number starting with “ KB “) into the search bar and press Enter .
  • A list of updates matching this number will be displayed. Choose the one that best suits your system architecture and press the Download button. In the snapshot below, I have opted for ARM64. If the same differs on your computer, choose the 64-bit option. On Windows 10, you have three options to choose from as it also supports 32-bit.
  • Click the link at the top in the next window and navigate to the folder where you want to save this file.
  • When the installation files are finished downloading, double-click on it to begin the installation.

That’s it, you have successfully bypassed the error code and installed the required update on your PC.