To resolve the Windows Update error code 0x80040154, you can try the following steps:
- Use DISM to Repair Windows Update Corruptions:
- Open an elevated command prompt (Run as administrator).
- Execute the command:
DISM.exe /Online /Cleanup-image /Restorehealth - Ensure your computer is connected to the internet so DISM can fetch necessary files from Microsoft Update servers.
- Run SFC Scan: After running DISM, run the System File Checker to repair any corrupted system files:
- Execute the command:
sfc /scannow
- Execute the command:
- Check CBS.log: If the SFC scan indicates it cannot repair some files, check the CBS.log file located at
%windir%\Logs\CBS\CBS.logfor details on the corrupted files. - Extract Missing Files: If you identify missing or corrupted files from the CBS.log, you may need to extract the necessary
.msuor.cabfiles and copy them to a specific folder (e.g.,C:\temp\Source). Use the PowerShell script provided in the Microsoft documentation to assist with this. - Use the Correct Source for DISM: If DISM fails to restore health, you can specify a source for the repair files:
- Use the command:
DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\temp\Source\ /LimitAccess
- Use the command:
- Check for Updates Again: After completing these steps, attempt to run Windows Update again to see if the issue is resolved.
If these steps do not resolve the issue, consider checking for any third-party software that might be interfering with the update process or performing a clean boot to eliminate software conflicts.
References: