KB5120240 not installing or stuck in Windows 11
- Windows 11 version 23H2
- Build 22631.7517
Quick answer
If KB5120240 is stuck downloading or failing to install on Windows 11, running the built-in Windows Update troubleshooter or clearing the local update cache will usually fix the block. This cumulative release updates Windows 11 version 23H2 systems to OS Build 22631.7517. Resetting your update components or manually installing the package ensures your system finishes updating without restarting in an endless loop.
When Windows 11 updates refuse to finish, it can feel like your computer is stuck in limbo. KB5120240 is an update released on August 11, 2026, designed specifically for Windows 11 version 23H2 to bring systems up to OS Build 22631.7517. While it includes important underlying quality improvements, many users report that the download gets stuck at arbitrary percentages like 0%, 20%, or 99%, or fails during the reboot phase with a message stating that changes are being undone.
Update installation failures usually happen because temporary cache files became corrupted during the download, background update services stopped responding, or existing system files are preventing the installer from replacing operating system files. Regardless of why the process stalled on your machine, you can follow these step-by-step methods to clear the blockage and get your computer updated safely.
Method 1: Run the Windows Update troubleshooter
Illustration: the Troubleshoot > Other troubleshooters page under Settings > System
Use this method first because it is the quickest, completely safe, and automatically detects common glitches such as broken update flags or disabled background services. Afterwards, your system will clear transient error logs and attempt to fetch a fresh download.
- Click the Start button on your taskbar and select the gear icon to open Settings.
- In the left sidebar, click System, then scroll down the right panel and click Troubleshoot.
- Click Other trouble-shooters to open the list of automated diagnostic tools.
- Locate Windows Update near the top of the list and click the Run button right next to it.
- Wait while the window shows "Detecting problems." If the tool finds an issue, it will display a summary such as "Resolving problems" or "Check for pending updates."
- Follow any on-screen prompts, then click Close once the status shows "Troubleshooting has completed."
- Return to Settings > Windows Update and click Check for updates to retry installing KB5120240.
Method 2: Restart the core Windows Update services
Illustration: the Windows Update page in Windows 11 Settings
Use this method if the update process remains frozen at a specific percentage. Windows relies on background services to fetch and stage updates; if one of these services hangs, the entire queue stops. Restarting them forces Windows to re-establish a clean network session.
- Press the Windows Key + R on your keyboard to open the Run dialog box.
- Type
services.mscinto the text box and press Enter or click OK. - In the Services window, scroll down the central list to locate Windows Update.
- Right-click Windows Update and select Restart. If the service is not currently running, click Start instead.
- Scroll up and locate Background Intelligent Transfer Service (BITS).
- Right-click Background Intelligent Transfer Service and select Restart.
- Locate Cryptographic Services, right-click it, and select Restart.
- Close the Services window, open Settings > Windows Update, and click Check for updates.
Method 3: Clear the SoftwareDistribution cache folder
Use this method if the update download repeatedly fails or gets corrupt halfway through. Clearing this folder deletes already-downloaded installation files so Windows 11 can redownload KB5120240 cleanly. Expect your next update check to take a couple of extra minutes while Windows rebuilds the update index.
- Click the Start button, type
cmdinto the search bar, right-click Command Prompt, and choose Run as administrator. - Click Yes when the User Account Control prompt appears on your screen.
- Type the command
net stop wuauservand press Enter to pause the update service. You should see a message confirming the service stopped successfully. - Type
net stop bitsand press Enter to stop the transfer service. - Press Windows Key + E to open File Explorer, then navigate to
C:\Windows\SoftwareDistribution. - Select everything inside the SoftwareDistribution folder by pressing Ctrl + A, right-click the selected items, and click the trash can icon (Delete).
- Return to your administrator Command Prompt window.
- Type
net start wuauservand press Enter to re-enable the update service. - Type
net start bitsand press Enter to re-enable the transfer service. - Open Settings > Windows Update and click Check for updates to download KB5120240 from scratch.
Method 4: Repair system files with SFC and DISM
Warning: This step modifies core Windows system files to repair corruption. Ensure you do not turn off your PC while these tools are actively scanning. Use this method if updates fail during the restart phase when system files are being overwritten. Running these tools ensures your existing Windows 11 image is healthy before applying OS Build 22631.7517.
- Click the Start button, type
cmd, right-click Command Prompt, and select Run as administrator. - In the black command window, type
sfc /scannowand press Enter. - Wait for the verification scan to reach 100%. The screen will report whether it found corrupt files and if it successfully repaired them.
- Next, type
dism /online /cleanup-image /restorehealthand press Enter. - Allow the DISM tool to complete its operations. This process connects to Windows servers to replace damaged system files and can take up to 15 minutes.
- Once you see "The restore operation completed successfully," close the Command Prompt.
- Restart your computer, navigate to Settings > Windows Update, and attempt to install KB5120240 again.
Method 5: Manually install KB5120240 offline
Use this method if the automatic Windows Update center repeatedly throws errors despite clearing cache folders. Downloading the update package directly bypasses the Windows Update delivery engine entirely, ensuring a direct installation.
- Open your web browser and go to the official Microsoft Update Catalog website.
- Type
KB5120240into the search bar at the top right corner and press Enter. - Look for the file version that matches your system architecture for Windows 11 version 23H2.
- Click the Download button on the right side of the row corresponding to your machine.
- A popup window will appear showing a link to a
.msufile. Click the link to download the file to your computer. - Once the download completes, open your Downloads folder and double-click the downloaded
.msuinstaller file. - Follow the on-screen installer wizard prompts. When prompted, restart your system to complete the update to OS Build 22631.7517.
If nothing worked
If KB5120240 still refuses to install after following these methods, you have a few practical options remaining. First, you can temporarily pause updates by going to Settings > Windows Update and choosing Pause for 1 week. This allows Microsoft time to address potential server-side bottlenecks or release a revised update package.
Alternatively, you can perform an in-place repair upgrade using the official Windows 11 ISO or Media Creation Tool for version 23H2. Running the installer from within your current desktop and selecting "Keep personal files and apps" refreshes all underlying system files while preserving your settings, bringing your operating system current without needing a full system wipe.
Sources
Frequently asked questions
What is KB5120240?
KB5120240 is a cumulative update released on August 11, 2026, for Windows 11 version 23H2, updating systems to OS Build 22631.7517.
Why is KB5120240 stuck downloading at 0% or 99%?
Updates usually get stuck when temporary files in the SoftwareDistribution folder become corrupted or background update services stall during download.
Is it safe to clear the SoftwareDistribution folder to fix KB5120240?
Yes, it is safe. Stopping update services and clearing that folder simply removes cached download files so Windows 11 can fetch a fresh copy of KB5120240.
Checked against Microsoft's release notes on ; re-checked when a new build ships.
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