Please run Windows Update troubleshooter from Settings app > System > Troubleshoot > Other troubleshooters. Let us know what it reports back.
when i try to update windows 11, I keep getting error code 4
Jan Winiarczuk
0
Reputation points
when i try to update windows 11, I keep getting error code 4. i dont know how to fully use the troubleshooter. it gets too complicated.
Windows for home | Windows 11 | Windows update
2 answers
Sort by: Most helpful
-
Kapil Arya 38,856 Reputation points Volunteer Moderator2026-11-28T09:00:45.13+00:00 -
AI answer
2026-11-28T08:59:06.2833333+00:00 Start with the simplest path:
- Open Start > Settings > System > Troubleshoot > Other troubleshooters.
- Find Windows Update and select Run.
- Let it finish, then restart the PC.
- Go to Start > Settings > Windows Update > Check for updates.
If that still fails, try these easier checks:
- Restart the PC and try Windows Update again.
- Disconnect extra hardware such as USB drives, docks, printers, and other nonessential devices.
- Make sure the PC has enough free space. Windows needs at least 16 GB free for a 32-bit OS or 20 GB for a 64-bit OS to upgrade.
- Check date and time:
- Start > Settings > Time & language > Date & time
- Turn on Set time automatically and Set time zone automatically
- Select Sync now if needed
If the troubleshooter feels too complicated, use the automated option first:
- On Windows 11, run the Windows Update troubleshooter in the Get Help app. It automatically runs diagnostics and attempts to fix most problems.
If updates still do not install, the next supported repair steps are:
- Open Command Prompt as administrator.
- Run:
DISM.exe /Online /Cleanup-image /Restorehealth - Wait for the success message.
- Then run:
sfc /scannow - Wait until it reaches 100%.
- Try Windows Update again.
If needed, the update cache can also be cleared. This deletes temporary update files only:
- Press Win + R, type
services.msc, and press Enter. - Find Windows Update, right-click it, and select Stop.
- Go to
C:\Windows\SoftwareDistribution. - Delete everything inside that folder.
- Go back to Services, right-click Windows Update, and select Start.
- Try Check for updates again.
AI-generated content may be incorrect. Read our transparency notes for more information.