Forum Discussion
Hupixdel
Oct 27, 2025Silver Contributor
How to fix windows 11 update error 0x800f0991?
 Hi everyone,  I'm not very good with computer troubleshooting, so I'm feeling a bit stuck. For the past few days, my Windows 11 laptop has been failing to install the latest update. Every time it tri...
Lawrencecem
Oct 27, 2025Iron Contributor
Using a script to remove pending updates and clear the update cache can be an effective and unobtrusive way to fix the Windows 11 update error 0x800f0991. Here's a simple batch script you can run as an administrator.
How to use this script:
- Open Notepad and paste the above code.
- Save it with a .bat extension, e.g., ClearUpdateCache.bat.
- Right-click the saved file and choose Run as administrator.
What this script does:
- Stops the Windows Update and Background Intelligent Transfer Service (BITS).
- Deletes all files in the SoftwareDistribution\Download and DataStore folders, which store temporary update files.
- Restarts the services to allow updates to proceed afresh. Maybe you can fix the Windows 11 update error 0x800f0991.