How to Fix Windows Update Error 0x8007000d

Error 0x8007000d almost always means Windows Update read an update file that was damaged, most often a corrupted download sitting in the update cache. The fix that works most often is to clear that cache (by renaming the SoftwareDistribution and catroot2 folders) and then repair Windows with DISM and SFC. The steps below are written for Windows 11, with Windows 10 differences in their own section.

What 0x8007000d actually means

The code is a Windows system error wrapped in an update error. The last part, 000d, is system error 13, which Microsoft lists as ERROR_INVALID_DATA with the message “The data is invalid.” In plain terms, Windows Update opened something it needed (a downloaded package, a catalog file that proves the package is genuine, or a piece of its own records) and the contents did not make sense.

Microsoft’s own troubleshooting page for update problems lists 0x8007000d as a problem with Windows Update files or cache corruption. That is why clearing the cache is the first serious fix, not the last.

A few terms come up repeatedly below:

  • Cumulative update: the monthly update that bundles all earlier fixes for your version of Windows. This is where 0x8007000d shows up most.
  • Feature update: a move to a newer version, such as Windows 11 version 24H2 to a later release. These are much larger downloads.
  • SoftwareDistribution: the folder at C:\Windows\SoftwareDistribution where Windows Update keeps downloads and its history database. Windows rebuilds it if it is missing.
  • catroot2: a folder in C:\Windows\System32 that holds signature catalog data used to check that update files are genuine.
  • Component store: the internal library of Windows parts (in the WinSxS folder) that updates are applied against. If it is damaged, updates fail even with a clean download. DISM repairs it.
  • Servicing stack: the part of Windows that installs updates. It records its work in a log called CBS.log.

Likely causes and the matching fix

CauseTypical signFix to try
Corrupted download in the update cacheFails during download or early in install, same update every timeRename SoftwareDistribution and catroot2
Damaged component store or system filesFails at a high percentage or during the restartDISM RestoreHealth, then SFC
Driver install fails during the restartUpdate seems to install, then rolls back on rebootUpdate or remove the driver, then retry
Wrong clock, no space, flaky connectionDownloads stall or never verifyFix date and time, free space, reconnect
Deeper servicing corruptionNothing above helpsReinstall the current version of Windows in place

Work through the fixes in order. Each one is safe on its own, and most people never need the last two.

Fix 1: Restart, check the basics, and retry

A partially written file can be cleaned up by a full restart, and several simple conditions can corrupt a download in the first place. Check these before running any commands.

  1. Select Start > Power > Restart (a restart, not shut down or sleep).
  2. Open Settings > Time & language > Date & time. Turn on Set time automatically and Set time zone automatically, then select Sync now under Additional settings. A wrong clock can make valid files look invalid.
  3. Check free space in File Explorer. Microsoft asks for at least 20 GB free on a 64-bit system for an upgrade. Monthly updates need less, but a nearly full drive is a common reason downloads break.
  4. Unplug external drives, docks and other hardware you don’t need right now.
  5. Go to Settings > Windows Update and select Check for updates. If the update installs, you’re done.

Fix 2: Run the Windows Update troubleshooter

On current Windows 11 builds, the Windows Update troubleshooter runs inside the Get Help app rather than as an old-style wizard. It checks services and settings, and can clear some cache problems on its own.

  1. Open Settings > System > Troubleshoot > Other troubleshooters.
  2. Next to Windows Update, select Run. If Get Help opens, let it finish its checks.
  3. Accept any fixes it offers, restart, and check for updates again.

If the troubleshooter reports nothing wrong, that’s normal for this error. It rarely catches a single bad file, so move on.

Fix 3: Clear the update cache by renaming two folders

This is the fix that matches the most likely cause. Renaming the folders (instead of deleting them) forces Windows to download fresh copies while keeping the old ones in case you want them back. You need an administrator account.

  1. Right-click Start and select Terminal (Admin) (the label can differ slightly by version), then approve the prompt. (Searching for Command Prompt and choosing Run as administrator works too.)
  2. Stop the update services by entering each line and pressing Enter after each one:
net stop wuauserv
net stop bits
net stop cryptsvc
  1. Rename the two cache folders:
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
ren %systemroot%\System32\catroot2 catroot2.old
  1. Start the services again:
net start wuauserv
net start bits
net start cryptsvc
  1. Restart the PC, open Settings > Windows Update and select Check for updates.

Expect the first check to be slow and the update to download from scratch. Your update history list may also look empty for a while, because the history database lived in the old folder. That’s cosmetic. If you’d like a fuller version of this reset with extra steps, see how to reset every Windows Update component on Windows 11.

Fix 4: Repair Windows with DISM, then SFC

If a fresh download still fails, the damaged data is probably inside Windows itself, usually the component store. DISM (Deployment Image Servicing and Management) compares the store against clean copies and replaces bad parts. SFC (System File Checker) then fixes protected system files using that repaired store, which is why the order matters.

  1. Open Terminal (Admin) again.
  2. Optional quick check, which only reports whether corruption has already been recorded:
DISM /Online /Cleanup-Image /CheckHealth
  1. Run the repair. It can sit at one percentage for several minutes; leave it alone until it finishes:
DISM /Online /Cleanup-Image /RestoreHealth
  1. When you see “The restore operation completed successfully,” run:
sfc /scannow
  1. Restart, then retry the update from Settings > Windows Update.

If DISM stops with a message that it could not find source files, it needs a local copy of Windows to repair from. That situation has its own code and walkthrough in fixing the 0x800f081f source files error, which covers pointing DISM at mounted installation media.

Fix 5: Deal with a driver that breaks the restart

Sometimes the update reaches 100 percent, asks for a restart, and then Windows says it is undoing changes. Microsoft documents this exact pattern for 0x8007000d: a driver included in the update fails to install during the restart, and Windows rolls the whole update back. Storage controller, chipset, network and display drivers are the usual suspects.

  1. Right-click Start and open Device Manager.
  2. Look for any device with a yellow warning icon. Right-click it and choose Update driver > Search automatically for drivers.
  3. For chipset, storage and network drivers, get the current version from your PC or motherboard maker’s support page and install it. Do this even if Device Manager shows no warning.
  4. Restart and retry the update.

Skip “driver updater” utilities from third parties. Drivers should come from Windows Update or the hardware maker.

Fix 6: Install the update by hand from the Microsoft Update Catalog

When one specific update keeps failing but everything else installs, a manual install skips the Windows Update download path entirely.

  1. Open Settings > Windows Update > Update history and note the KB number of the failed update.
  2. Check your version under Settings > System > About (for example, version 24H2, x64 or ARM64).
  3. Search for the KB number on the Microsoft Update Catalog and download the entry that matches your version and processor type.
  4. Double-click the downloaded .msu file, follow the prompts and restart.

If the standalone installer fails with the same code, the problem is inside Windows rather than the download, so go to Fix 7.

Fix 7: Reinstall the current version of Windows 11 in place

Microsoft’s own article on this error at restart calls an in-place upgrade the most reliable fix. Windows 11 has a built-in way to do it that keeps your apps, files and settings while replacing system files and components with fresh copies of the version you already have.

Before you start: back up anything important to OneDrive or an external drive. If BitLocker or device encryption is on, make sure you can find your recovery key, just in case the PC asks for it after the reinstall.

  1. Plug the PC into power and keep it online for the whole process.
  2. Go to Settings > System > Recovery.
  3. Under Fix problems using Windows Update, select Reinstall now.
  4. Choose whether the PC should restart on its own 15 minutes after the install finishes, then select OK.
  5. After the restart, return to Settings > Windows Update and check for updates.

The option is missing on Windows 11 releases earlier than the 2022 update, on PCs without the February 2024 optional update or later, and on PCs managed by work or school. Microsoft explains these limits on its reinstall the current version of Windows page. If you don’t see it, run setup from the Windows 11 Installation Assistant or a Windows 11 ISO from the Windows 11 download page and choose to keep personal files and apps if the setup offers that option.

Windows 10: what changes

The commands in Fixes 3 and 4 are identical on Windows 10, and so is the Update Catalog route. Two things differ.

  1. Settings is laid out differently. Windows Update lives under Settings > Update & Security, and in most versions the troubleshooter is under Update & Security > Troubleshoot > Additional troubleshooters.
  2. There is no Fix problems using Windows Update button. For an in-place repair, download the Media Creation Tool from Microsoft’s Windows 10 download page, run it on the PC, choose to upgrade this PC, and keep personal files and apps if you are asked.

Keep in mind that Windows 10 support ended on October 14, 2025. A PC without Extended Security Updates no longer gets security fixes, so if you are fighting this error on Windows 10, it may be a good moment to plan a move to Windows 11 if the hardware allows it.

Which case are you in?

The same code can show up in different moments, and where it appears changes which fix deserves your time first. Look at Update history to see which item failed (a cumulative update, a feature update, a driver or a .NET update) and whether it failed during download, during install, or after the restart. Then match it to one of the cases below.

Monthly cumulative update fails

This is the classic case. Fixes 3 and 4 solve most of these. If one KB keeps failing while others install, try the Update Catalog before the in-place reinstall.

Feature update to a newer Windows 11 version fails

Feature updates are large and touch more drivers, so free space and Fix 5 matter more here. Make sure you have at least 20 GB free, update chipset and storage drivers, and disconnect extra hardware. If it still fails, running setup from the Installation Assistant often gets past a damaged download.

Work or school PCs and servers

If updates come from WSUS or your organization’s management tools, talk to your IT team before renaming folders or reinstalling, since the in-place option is blocked on managed PCs anyway. Admins can search C:\Windows\Logs\CBS\CBS.log for ERROR_INVALID_DATA and read the lines around each hit. Microsoft’s guide to fixing Windows Update corruption explains how to repair from a network share running the same Windows version.

When the fixes hit a wall

“Access is denied” when you run a command

The window isn’t elevated. Close it and reopen Terminal or Command Prompt with Run as administrator. The title bar should say Administrator. If permissions keep getting in the way during updates, the 0x80070005 code has its own causes, covered in this walkthrough for access denied update failures.

A service won’t stop, or the rename fails

If net stop cryptsvc reports that other services depend on it, answer Y to stop them too, or simply restart the PC and run the commands again right after signing in, before Windows Update starts working. A rename fails with “The process cannot access the file” when a service is still running, so confirm each stop command said the service stopped successfully. If a .old folder already exists from an earlier attempt, use a different name such as SoftwareDistribution.old2.

The error comes back on the next update

Repeated corruption points to something damaging files as they’re written. Check the drive with an elevated chkdsk /f C: (it asks to run at the next restart; answer Y and reboot). Also temporarily turn off any third-party antivirus or VPN while you update, then turn it back on immediately afterward. Leave Microsoft Defender and Windows Firewall on.

Confirm the fix, or undo it

To confirm success, open Settings > Windows Update > Update history and look for the update listed as successfully installed. You can also press Windows key + R, type winver and press Enter to see your current version and build.

Once updates are working again, you can delete the SoftwareDistribution.old and catroot2.old folders to reclaim space. If you’d rather put them back, stop the three services, rename the new folders out of the way, rename the .old folders back to their original names, and start the services again:

net stop wuauserv
net stop bits
net stop cryptsvc
ren %systemroot%\SoftwareDistribution SoftwareDistribution.new
ren %systemroot%\SoftwareDistribution.old SoftwareDistribution
ren %systemroot%\System32\catroot2 catroot2.new
ren %systemroot%\System32\catroot2.old catroot2
net start wuauserv
net start bits
net start cryptsvc

If a newly installed update causes problems, go to Settings > Windows Update > Update history, then under Related settings select Uninstall updates. Some updates can’t be removed this way; System Restore (search for “Create a restore point” and select System Restore) can roll back to an earlier point if one exists.

Still stuck? Quick answers

Does 0x8007000d mean my hard drive is failing?

Not usually. Most cases trace back to a bad download or damaged Windows data. A drive is worth checking only if the error returns after a clean cache reset and a successful DISM repair, or if other files are going corrupt too.

Is it safe to delete the SoftwareDistribution folder instead of renaming it?

Windows rebuilds the folder, so deleting it is a documented option. Renaming does the same job and leaves you a way back, which is why it’s the better first move.

I see 0x8007000d together with another code. Which do I fix?

Fix the more specific one. If DISM or the update reports 0x80073712, the component store itself is flagged as inconsistent, and the steps for a damaged component store go deeper on that repair.

Will reinstalling Windows through Settings remove my programs?

No. “Fix problems using Windows Update” keeps apps, files and settings. It’s different from Reset this PC, which removes apps and can remove files. Back up first anyway.

Can I just pause updates and ignore the error?

You can pause for a short time, but the failed update usually carries security fixes, and the same corruption tends to break the next one too. Fixing it now is less work than fixing it later.

Your next step

If you haven’t yet, start with Fix 3: rename the two cache folders, restart, and check for updates. Most PCs install the update on that pass or right after DISM and SFC. Keep the built-in reinstall in reserve for the cases where the error keeps coming back.

Matthew Burleigh

Matthew Burleigh has been writing technology tutorials online since 2008. He holds Bachelor's and Master's degrees in Computer Science from Arizona State University and has worked in IT since 2003. At Update Error Code he writes step-by-step fixes for Windows Update errors on Windows 11 and Windows 10.