0x80240031
Microsoft Windows Update
Severity: ModerateWhat Does This Error Mean?
The 0x80240031 error means the Windows Update process failed during its initialization phase — before it even started downloading anything. Windows Update tried to start up and set itself up, but something stopped it at that early stage. This is usually caused by a corrupted Windows Update database, a stopped background service, or a registry entry pointing to a wrong location. The fix involves resetting the Windows Update components back to a clean state.
Affected Models
- Windows 10
- Windows 11
- Windows 8.1
Common Causes
- The Windows Update database (DataStore.edb) is corrupted and cannot be read
- The Background Intelligent Transfer Service (BITS) is stopped or has corrupted settings
- A registry key used by Windows Update has become invalid or points to a missing file
- A previous failed update left Windows Update in a broken initialization state
- Group Policy settings applied by an administrator or software are blocking Windows Update initialization
How to Fix It
-
Run the Windows Update Troubleshooter. In Windows 10: Settings > Update and Security > Troubleshoot > Windows Update. In Windows 11: Settings > System > Troubleshoot > Other troubleshooters > Windows Update. Click Run and let it finish.
The troubleshooter can detect and repair corrupt database files and stopped services automatically. It is the right first step before doing anything manually.
-
Reset the Windows Update data store. Open Command Prompt as Administrator. Run: net stop wuauserv — then rename the database folder by running: ren C:\Windows\SoftwareDistribution\DataStore DataStore.old — then run: net start wuauserv — and restart your computer.
Renaming the DataStore folder instead of deleting it creates a backup. Windows will create a fresh DataStore on next boot. If this fixes the issue, you can safely delete the .old folder later.
-
Reset the BITS service. Open Command Prompt as Administrator and run: sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) — then restart and try Windows Update.
BITS is the download manager that Windows Update relies on. Resetting its security descriptor repairs permission issues that can prevent initialization.
-
Re-register Windows Update DLL files. Open Command Prompt as Administrator and run these commands: regsvr32 wuapi.dll — regsvr32 wuaueng.dll — regsvr32 wucltui.dll — regsvr32 wups.dll — regsvr32 wups2.dll — then restart.
These DLL files are the core components of Windows Update. Re-registering them refreshes their system registration and can fix initialization failures.
-
Run DISM to repair the Windows component store. Open Command Prompt as Administrator and run: DISM /Online /Cleanup-Image /RestoreHealth — Let it complete fully — it may take 15 to 30 minutes. Restart when done.
DISM downloads clean versions of Windows components directly from Microsoft. This repairs deeper corruption that SFC and troubleshooters cannot reach.
When to Call a Professional
If resetting Windows Update components does not fix this error, a professional can check the Windows Update registry hive for corruption. In enterprise or work environments, Group Policy from a domain controller may be preventing Windows Update from initializing — your IT department will need to investigate. As a last resort, a Windows repair install (in-place upgrade) fully rebuilds the Windows Update system.
Frequently Asked Questions
What is the DataStore.edb file?
DataStore.edb is a database file used by Windows Update to track which updates have been downloaded, installed, and are available. It stores the entire update history for your computer. If this file becomes corrupted — due to a power cut during an update, a disk error, or a software conflict — Windows Update cannot initialize properly. Renaming or deleting this file forces Windows to build a fresh database, which usually fixes initialization errors.
Will resetting Windows Update delete my installed updates?
No. Resetting the Windows Update components does not uninstall any updates that are already installed on your computer. It only affects the downloaded files waiting to be installed and the update tracking database. Your existing installed updates are recorded in a separate part of Windows and are not affected by these reset procedures.
What is BITS and why does Windows Update need it?
BITS (Background Intelligent Transfer Service) is a Windows service that manages downloads in the background. Windows Update uses BITS to download update files without slowing down your internet connection. BITS is designed to pause and resume downloads automatically — it uses idle bandwidth and resumes if the download is interrupted. If BITS is stopped or broken, Windows Update cannot download anything, and initialization fails.