when i try to update windows 11, I keep getting error code 4

Jan Winiarczuk 0 Reputation points
2026-11-28T08:58:49.87+00:00

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
0 comments No comments

2 answers

Sort by: Most helpful
  1. Kapil Arya 38,856 Reputation points Volunteer Moderator
    2026-11-28T09:00:45.13+00:00

    Please run Windows Update troubleshooter from Settings app > System > Troubleshoot > Other troubleshooters. Let us know what it reports back.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-28T08:59:06.2833333+00:00

    Start with the simplest path:

    1. Open Start > Settings > System > Troubleshoot > Other troubleshooters.
    2. Find Windows Update and select Run.
    3. Let it finish, then restart the PC.
    4. Go to Start > Settings > Windows Update > Check for updates.

    If that still fails, try these easier checks:

    1. Restart the PC and try Windows Update again.
    2. Disconnect extra hardware such as USB drives, docks, printers, and other nonessential devices.
    3. 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.
    4. 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:

    1. Open Command Prompt as administrator.
    2. Run:
         DISM.exe /Online /Cleanup-image /Restorehealth
      
    3. Wait for the success message.
    4. Then run:
         sfc /scannow
      
    5. Wait until it reaches 100%.
    6. Try Windows Update again.

    If needed, the update cache can also be cleared. This deletes temporary update files only:

    1. Press Win + R, type services.msc, and press Enter.
    2. Find Windows Update, right-click it, and select Stop.
    3. Go to C:\Windows\SoftwareDistribution.
    4. Delete everything inside that folder.
    5. Go back to Services, right-click Windows Update, and select Start.
    6. Try Check for updates again.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.