Skip to content

KB5087420 not installing or stuck in Windows 11

Affects
  • Windows 11, version 23H2
  • OS Build 22631.7079
Daniel Okafor5 min read

Quick answer

If KB5087420 fails to install or gets stuck during download, first run the built-in Windows Update troubleshooter in Settings. If that does not resolve the issue, clear the temporary update cache inside the SoftwareDistribution folder using Command Prompt. Finally, run the DISM and SFC repair tools to fix any corrupted system files preventing the update from completing.

Released on May 12, 2026, cumulative update KB5087420 brings Windows 11, version 23H2 to OS Build 22631.7079. This package contains critical security patches and system improvements designed to keep your machine running smoothly. However, many users report that the update process can freeze at specific percentages such as 0%, 20%, or 99%, or fail outright with vague error messages during the reboot process.

When Windows Update gets stuck or repeatedly fails to apply KB5087420, it is usually caused by corrupted temporary download files, interrupted background services, or damaged system components. Fortunately, you do not need to be a technical expert to resolve this issue. Below are four reliable methods to get your update installation back on track, ordered from the simplest to the most advanced.

Method 1: Run the Windows Update troubleshooter

Illustration: the Troubleshoot > Other troubleshooters page under Settings > System

Illustration: the Troubleshoot > Other troubleshooters page under Settings > System

Use this method first whenever a monthly update gets stuck downloading or fails with a generic error message. Windows includes an automated diagnostic tool designed specifically to detect and resolve stuck update services and common background glitches.

  1. Click the Start button on your taskbar and select Settings (represented by the gear icon).
  2. In the left menu panel, make sure System is selected, then scroll down on the right pane and click Troubleshoot.
  3. Click Other troubleshooters to view the list of automated repair tools available on your system.
  4. Locate Windows Update near the top of the list and click the Run button next to it.
  5. Wait while the screen shows "Detecting problems" and follow any on-screen prompts if the tool asks for permission to apply a fix.

What to expect afterwards: The troubleshooter will check your background services and clear minor cache bottlenecks. Once complete, return to Settings, select Windows Update, and click Check for updates to retry installing KB5087420.

Method 2: Clear the SoftwareDistribution cache folder

Illustration: the Windows Update page in Windows 11 Settings

Illustration: the Windows Update page in Windows 11 Settings

Use this method if KB5087420 stops responding at a specific download percentage or if your system attempts to install broken download files repeatedly. The SoftwareDistribution folder stores temporary update files, and clearing it forces Windows to download a fresh copy of the update package.

Warning: Stopping update services and clearing cache folders temporarily resets your download progress, but it will not erase your personal files or installed programs.

  1. Click the Start button, type "cmd" into the search bar, right-click Command Prompt in the results list, and select Run as administrator.
  2. In the Command Prompt window, type net stop wuauserv and press Enter to pause the main update service.
  3. Type net stop bits and press Enter to halt the background transfer service.
  4. Press Windows Key + R on your keyboard to open the Run box, type C:\Windows\SoftwareDistribution, and click OK.
  5. Press Ctrl + A to select all files and folders inside this directory, right-click any highlighted item, and select Delete.
  6. Switch back to your administrator Command Prompt window, type net start wuauserv and press Enter, then type net start bits and press Enter to restart the services.

What to expect afterwards: Windows Update will automatically recreate the deleted subfolders and download a clean, uncorrupted copy of KB5087420 when you check for updates again.

Method 3: Repair damaged system files with DISM and SFC

Use this method if the update reaches the installation stage but fails during reboot, indicating that essential Windows core files might be corrupted or missing.

Warning: DISM and System File Checker scan and replace system files in your Windows installation. While safe, this process makes direct modifications to core system components to repair corruption.

  1. Click the Start button, type "cmd", right-click Command Prompt, and choose Run as administrator.
  2. Type DISM.exe /Online /Cleanup-image /Restorehealth and press Enter.
  3. Wait for the operation to reach 100%. The screen will display "The restore operation completed successfully."
  4. Type sfc /scannow and press Enter to initiate the system file verification scan.
  5. Wait for the scan to finish. The screen will report whether it found corrupt files and successfully repaired them.
  6. Restart your computer when the commands complete.

What to expect afterwards: Corrupted system files required for patching will be restored to their default state, allowing KB5087420 to integrate smoothly.

Method 4: Manually reset Windows Update components

Use this advanced method if temporary files remain locked or if background database corruption stops Windows Update from connecting properly to Microsoft servers.

  1. Click Start, type "cmd", right-click Command Prompt, and select Run as administrator.
  2. Stop all related services by executing these four commands one by one (press Enter after each): net stop wuauserv, net stop cryptSvc, net stop bits, and net stop msiserver.
  3. Rename the main update catalog folders by entering ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and pressing Enter, then entering ren C:\Windows\System32\catroot2 catroot2.old and pressing Enter.
  4. Restart the services by executing net start wuauserv, net start cryptSvc, net start bits, and net start msiserver.
  5. Close Command Prompt and restart your PC.

What to expect afterwards: Windows will completely rebuild its update databases from scratch, clearing away deep-seated update installation blocks.

If nothing worked

If KB5087420 still refuses to install after running these fixes, there are a few final steps you can take. First, make sure your system drive has at least 20 GB of free space, as update installations require ample temporary storage to extract files. Next, check if third-party antivirus software or active VPN connections are interfering with the download process; temporarily disabling them can often allow the patch to complete.

Alternatively, you can temporarily pause updates by opening Settings, navigating to Windows Update, and selecting Pause for 1 week. This gives Microsoft time to address potential server-side glitches or release a revised installer. If you need the update immediately for security compliance, consider using Windows 11 installation media to run an in-place repair upgrade, which refreshes your system files to OS Build 22631.7079 while keeping all apps and personal data intact.

Sources

Frequently asked questions

What is update KB5087420?

KB5087420 is a cumulative update released on May 12, 2026, for Windows 11, version 23H2. It updates your operating system build to OS Build 22631.7079 and includes key security patches and reliability fixes.

Why does KB5087420 get stuck downloading at 99%?

Updates usually freeze at 99% when temporary files in the SoftwareDistribution folder become corrupted or when background services stall while extracting patch packages. Clearing the update cache forces Windows to download a clean file.

Is it safe to clear the SoftwareDistribution folder in Windows 11?

Yes, clearing the SoftwareDistribution folder is completely safe. Windows automatically rebuilds the folder and downloads fresh updates the next time you run Windows Update.

Checked against Microsoft's release notes on ; re-checked when a new build ships.

Written by

Daniel Okafor

Writes Thea's error-code and app-breakage guides. Each fix is checked against Microsoft's documentation and community reports, and updated when a new Windows 11 build changes the steps.

More from Daniel Okafor

Related guides

  • Update ProblemsWindows 11, version 25H2 (OS Build 26200.9278)

    KB5120998 Not Installing or Stuck in Windows 11

    KB5120998 is an optional preview update for Windows 11 versions 24H2 and 25H2. If it becomes stuck during download or fails to install, you can resolve the issue by running the Windows Update troubleshooter, clearing the SoftwareDistribution cache folder, or running SFC and DISM scans. Because KB5120998 is a non-security preview release, you can also safely pause or skip the update until next month.

    Maya Reyes

  • Error CodesSupported versions of Windows Server

    How to fix error 0x80070002 Windows Update

    Windows Update error 0x80070002 occurs when updates fail due to missing or corrupted system files, missing folders, or invalid registry service entries. You can resolve this issue by restoring missing directory paths, deleting orphaned .NET optimization registry keys, or using DISM alongside manually restored assembly files. Importing missing driver registry entries from a working machine also fixes recurring cumulative update rollbacks.

    Daniel Okafor

  • Update ProblemsWindows 11 version 23H2

    KB5082052 not installing or stuck in Windows 11

    If KB5082052 fails or gets stuck downloading on Windows 11, running the Windows Update troubleshooter or clearing the update cache folder usually fixes the problem. Resetting the update services or repairing system files with SFC and DISM will resolve underlying file conflicts. These steps allow your computer to complete the update to OS Build 22631.6936 without risking your personal files.

    Daniel Okafor

  • Windows UpdatesWindows 11 version 23H2

    What's new in KB5082052 (Windows 11 build 22631.6936)

    KB5082052 is a mandatory cumulative security update released on April 14, 2026, for Windows 11 version 23H2. It updates your system to OS Build 22631.6936 and includes cumulative security patches, bug fixes, and servicing updates. You can download it via Windows Update or manually from the Microsoft Update Catalog.

    Priya Natarajan

  • Update ProblemsWindows 11, version 24H2 (OS Build 26100.8246)

    KB5083769 not installing or stuck in Windows 11

    If KB5083769 fails to install or gets stuck during the download process, run the built-in Windows Update troubleshooter to clear pending errors. If that does not resolve the issue, resetting the update cache or running system repair commands like SFC and DISM can clear corrupted setup files. These steps allow Windows 11 to download and apply OS Build 26100.8246 or 26200.8246 successfully.

    Maya Reyes