
Installing updates on Windows 10 when Windows Update fails to install
Prerequisites:
- Windows installer image from:
- Windows Media Creation Tool
- Windows installation disc
- USB memory stick
- copied to hard disk
- individual updates as
*.msuor*.cabfiles in "%USERPROFILE%\Downloads" - Command Prompt opened as Administrator
NOTES:
- You can skip creating some directories if they already exist.
- Steemit might split some commands as multiple lines, but each command must be entered as single line.
Step 1
Extract all *.cab files from all *.msu files
For example:
cd %USERPROFILE%\Downloads
md KB5004237
expand -f:* "windows10.0-kb5004237-x64_9a7c569f5656d99533e9e945e8063251758ce4c0.msu" KB5004237
cd KB5004237
md KB5004237
expand -f:* "Windows10.0-KB5004237-x64.cab" KB5004237
cd KB5004237
dir update.*
Step 2
If you don't have install.wim, mount ISO image created by Windows Media Creation Tool or insert Windows 10 DVD in drive or plug in USB memory stick.
Convert install.esd to install.wim: (assuming the Windows installer is drive E: and you have Windows 10 Home)
md C:\$Windows.~WS
md C:\$Windows.~WS\Sources
Dism /Export-Image /SourceImageFile:E:\sources\install.esd /SourceIndex:1 /DestinationImageFile:C:\$Windows.~WS\Sources /Compress:Max /CheckIntegrity
For other Windows versions, you need to check the image index using:
Dism /Get-WimInfo /WimFile:E:\sources\install.esd
Step 3
Copy everything from drive E: except sources\install.esd to C:\$Windows.~WS\.
You can select all directories except sources and copy them first, then open sources directory, sort by size and select everything except install.esd, and copy its contents to C:\$Windows.~WS\Sources.
Step 4
Apply updates to install.wim:
md C:\install
Dism /Mount-Image /ImageFile:C:\$Windows.~WS\Sources\install.wim /Name:"Windows 10 Home" /MountDir:C:\install
Change to the directory containing update.mum starting from lowest KB number, for example %USERPROFILE%\Downloads\KB5004237\KB5004237 created above:
cd "%USERPROFILE%\Downloads\KB5004237\KB5004237"
Dism /Image:C:\install /Add-Package /PackagePath:.
Repeat for all other updates.
Step 5
Refresh install.wim to integrate all updates:
md c:\temp
Dism /Cleanup-Image /Image:"C:\install" /StartComponentCleanup /ResetBase /ScratchDir:C:\temp
Dism /Unmount-Image /MountDir:C:\install /Commit
Step 6
Run setup.exe in directory C:\$Windows.~WS.
Windows will restart after backing up files and start installing updates.
Leave Installing updates on Windows 10 when Windows Update fails to install to:
Read more #windows posts
Best Posts From Mika
We have not curated any of mtl1979's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Mika
- How to use MyHeritage Family Tree Builder without subscribing...
- PayPal launches its own stablecoin PYUSD... Is it safe or not?
- Design limitations of responsive websites
- April 1st, 2023 marks end of mainstream support of Ubuntu 18.04
- Understanding the Ethereum London Revised scam...
- How to use PancakeSwap for creating trading pair, swapping, buying and selling tokens - Part 2
- How to use PancakeSwap for creating trading pair, swapping, buying and selling tokens - Part 1
- How to combat abuse of token bridges...
- Finnish food and drink company recalls potato chips due to potential overdose...
- Why it is bad idea to let Ubuntu upgrade Python to 3.10...