Skip to Content

How to fix Windows 11 24H2/23H2/22H2 KB5040527 update not installing problem

If you’re trying to install the recent Windows 11 security update KB5040527, you might run into some roadblocks. Many users report they can’t download or install this update, encountering various error codes. Since it’s an optional update, you can skip it for now, especially because it might force you to perform a BitLocker recovery after installation.

How to fix Windows 11 24H2/23H2/22H2 KB5040527 update not installing problem

However, if you still want to install KB5040527, here are two solutions that can help:

Solution 1: Download and install the update manually using the MSU package

  1. Go to the official Microsoft Update Catalog website.
  2. Download the appropriate MSU package for your device architecture.
  3. Double-click the downloaded setup file to run it.
  4. Let the installer complete the update process.

Solution 2: If the manual installation fails, try resetting Windows Update

  1. Open the Notepad.
  2. Paste the following command in the Notepad:
    SC config trustedinstaller start=auto
    net stop bits
    net stop wuauserv
    net stop msiserver
    net stop cryptsvc
    net stop appidsvc
    Ren %Systemroot%\SoftwareDistribution SoftwareDistribution.old
    Ren %Systemroot%\System32\catroot2 catroot2.old
    regsvr32.exe /s atl.dll
    regsvr32.exe /s urlmon.dll
    regsvr32.exe /s mshtml.dll
    netsh winsock reset
    netsh winsock reset proxy
    rundll32.exe pnpclean.dll,RunDLL_PnpClean /DRIVERS /MAXCLEAN
    dism /Online /Cleanup-image /ScanHealth
    dism /Online /Cleanup-image /CheckHealth
    dism /Online /Cleanup-image /RestoreHealth
    dism /Online /Cleanup-image /StartComponentCleanup
    Sfc /ScanNow
    net start bits
    net start wuauserv
    net start msiserver
    net start cryptsvc
    net start appidsvc
  3. Save the Notepad and name it as Wufix.bat
  4. Right-click on the Wufix.bat file and click Run as administrator option.
  5. Restart your PC.
  6. After resetting, attempt to download and install KB5040527 again via the Windows Update settings page or the MSU file.

Remember, the changes in this optional update will be included in the next mandatory update. So, if you encounter issues installing KB5040527, waiting for the next required update is a sensible alternative.