This guide provides step-by-step instructions on resolving the issue of KB5051989 failing to install on Windows 11. You’ll learn how to reset services, clear cache, and register necessary DLL files to ensure a smooth installation of the Windows update.

Step 1: Stop Background Services

Begin by stopping the related Windows services that manage updates. Open Command Prompt as an administrator and execute the following commands:

net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc

Step 2: Delete the Downloaded Update Files

Next, clear the downloaded update files to remove any corrupted data:

Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*"
rmdir %systemroot%\SoftwareDistribution /S /Q
rmdir %systemroot%\system32\catroot2 /S /Q

Step 3: Reset Service Permissions

Adjust the service permissions for Background Intelligent Transfer Service (BITS) and Windows Update service:

sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

Step 4: Register DLL Files

Register the necessary DLL files that are integral to the update process. Execute the following commands:

cd /d %windir% system32
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll

Step 5: Reset Winsock and Start Services

Finally, reset the Winsock catalog and restart the services you stopped earlier:

netsh winsock reset
netsh winsock reset proxy
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc

Extra Tips & Common Issues

To improve your chances of success:

  • Ensure you have administrative privileges while executing commands.
  • Check your internet connection before attempting to download updates.
  • After making these changes, restart your computer and attempt to update again.

Conclusion

By following these steps, you should be able to resolve the installation issue with KB5051989 in Windows 11. If the problem persists, consider seeking further assistance or checking Microsoft support forums for additional solutions.

Frequently Asked Questions

What should I do if the installation still fails?

If the installation continues to fail, ensure all services are running correctly and check for any pending Windows updates that may cause conflicts.

Can I revert any of these changes?

Yes, you can reverse changes by stopping services and deleting the files you created. Ensure to create a system restore point before making major changes.

How can I check if the update is successfully installed?

After the update process, go to Settings > Update & Security > Windows Update and see if the update appears in your update history.

Content Protection by DMCA.com