Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Windows Update error 0x80070570 (ERROR_FILE_OR_DIRECTORY_CORRUPTED): clear the cache, repair the component store, check the disk

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A Windows update downloads, begins to install and fails with error code 0x80070570. Microsoft's page names the error ERROR_FILE_OR_DIRECTORY_CORRUPTED and says it "indicates that Windows can't read or process the files that are required to install an update". The page gives five causes and four steps for Windows client, Windows Server and Azure virtual machines, in a fixed order, ending with the one that locks the disk.

The sections below follow that order, add a read-only check before each step, and show how to reverse each step where it can be reversed. Everything before the Fix section only reads information.

What the error means

Microsoft's page (Troubleshoot Windows Update error 0x80070570, page dated 2026-05-06) says the error "typically occurs because of corrupted update cache files, a damaged Windows component store, disk errors, or interference from security software". The two folders it points to are the download folder, %windir%\SoftwareDistribution\Download, and the component store in %windir%\WinSxS. The page notes that %windir% is the Windows system folder, "C:\Windows" by default.

For more detail, the page says to look at the WindowsUpdate.log file or the CBS.log file and look for entries that resemble these:

Error CBS Failed to internally open package. [HRESULT = 0x80070570 - ERROR_FILE_OR_DIRECTORY_CORRUPTED]
Info CBS Failed to resolve package [Package_for_KB5XXXXXX~31bf3856ad364e35~amd64~~XX.X.X.X] [HRESULT = 0x80070570]

Microsoft's page on Windows Update log files (dated 2026-02-11) says that CBS.log, in %systemroot%\Logs\CBS, "provides insight on the update installation part in the servicing stack", and that windowsupdate.log is in C:\Windows\Logs\WindowsUpdate. It also says that to merge and convert the Windows Update trace files (.etl) into one readable WindowsUpdate.log file, you use Get-WindowsUpdateLog, and that the resulting file is a static copy that does not update unless you run the cmdlet again.

Likely causes

Microsoft lists five conditions. The page gives no counts, so the order below is the page's, not a ranking.

Cause on the page What it points to
Downloaded update files in %windir%\SoftwareDistribution\Download are corrupted Step 1, clear the cache
The component store in %windir%\WinSxS contains corrupted manifests or files Step 2, DISM
The system volume is corrupted, for example bad sectors or file system errors Steps 3 and 4, sfc and chkdsk
An antivirus or security application interferes when Windows Update extracts files from downloaded packages Check the security product's log and exclusions; the page names no setting
The update files are truncated or partial because the download was interrupted Step 1 again, so that Windows Update downloads new copies

Prove the cause before changing anything

All of these only read.

  1. Find the failing update in the logs. Search CBS.log for 0x80070570 and note whether the failure names a package. Note the time. As general advice, not Microsoft's words: a failure that names a package suggests the component store or a bad download, and a time that matches an antivirus update or scan suggests interference.
  2. Check the system files without repairing anything. Microsoft's page says to open a Command Prompt window and run:
sfc /verifyonly

Microsoft's sfc page describes /verifyonly as scanning "the integrity of all protected system files, without performing repairs". It needs an elevated command prompt, because the page says you must be logged on as a member of the Administrators group.

  1. Check the disk's state without fixing it. Microsoft's chkdsk page says that "If used without parameters, chkdsk displays only the status of the volume and doesn't fix any errors", and that running it without /f on an active partition "might report spurious errors because it can't lock the drive". So treat a read-only result as an indication, not a verdict:
chkdsk C:
  1. Look at free disk space and at what else is running during updates. Microsoft's page for this error gives no space figure, so none is given here.

Example (illustrative): a hosted application server at a Newcastle firm fails the same monthly cumulative update on two attempts. CBS.log shows the line "Failed to internally open package" with 0x80070570 for the same package each time, and sfc /verifyonly reports no problem. That fits a damaged download or component store entry before it fits a disk fault, so Step 1 is the first change to try.

Fix

Microsoft's page opens the Resolution section with an Important note: "Before you troubleshoot this issue, back up the operating system disk." That backup is the save-first step for everything below. On an Azure VM the page refers to its VM restore documentation; on any other computer, take your usual full backup or snapshot of the system disk and confirm that it completed.

Step 1: Clear the Windows Update download cache

Risk: the next commands stop the Windows Update service (wuauserv) and the Background Intelligent Transfer Service (bits), delete every file in the update download folder, and start the services again. Updates in the middle of downloading are lost and must start again, and the commands must be run from an administrator Command Prompt.

The page introduces the step as a way to "delete corrupted download files and force Windows Update to download new copies".

net stop wuauserv
net stop bits
rd /s /q %windir%\SoftwareDistribution\Download
net start bits
net start wuauserv

After the commands, restart the computer and try the update again. If it still fails, go to Step 2.

To undo it: the deleted files are copies that Windows Update downloads again, so there is nothing to restore. If a command failed part-way and left a service stopped, run net start bits and net start wuauserv.

Step 2: Repair the component store

Risk: the next command checks the component store and repairs it, and by default Microsoft's page says "DISM uses Windows Update as a repair source", so the computer needs access to Windows Update. It can run for a long time and changes system files, so run it outside business hours.

DISM /Online /Cleanup-Image /RestoreHealth

Restart the computer and try the update again. If it still fails, go to Step 3. Microsoft's Repair a Windows Image page (dated 2021-12-15) adds that you can use the /Source argument with /RestoreHealth to name other repair locations, and /LimitAccess to stop DISM using Windows Update.

To undo it: no DISM command reverses a repair. If the repair made things worse, restore the system disk backup taken at the start.

Step 3: Check system file integrity

Risk: the next command verifies every protected system file and replaces incorrect versions with correct ones. Microsoft's sfc page says it retrieves the correct version of an overwritten protected file from the system folder and replaces the incorrect file.

sfc /scannow

If it finds problems, the page refers to Microsoft's article on using the System File Checker tool to repair missing or corrupted system files. After it finishes with no errors, restart and try the update again. If it still fails, go to Step 4.

To undo it: no sfc option reverses a replaced file. Restore the system disk backup if a replacement causes a problem.

Step 4: Check the disk

Disruptive step: the next command repairs file system errors and locates bad sectors on the system drive. Microsoft's chkdsk page says that /r includes the functionality of /f, that the disk must be locked, and that if it cannot be locked it asks to run at the next restart. For the boot partition, the page says chkdsk "automatically restarts the computer after it checks the drive". The check can take a long time on a large disk or one with millions of files, and the computer is out of service while it runs.

chkdsk C: /f /r

When prompted, confirm that you want to scan the operating system disk when the computer restarts, then restart. The tool repairs any problems it finds automatically; after it finishes, restart again if asked and try the update again. Microsoft's chkdsk page says interrupting chkdsk is not recommended.

To undo it: a disk repair cannot be reversed. The system disk backup taken at the start is the only way back.

If the computer is an Azure virtual machine

Microsoft's steps 5 and 6 apply only to Azure VMs. Step 5 is the Azure VM Windows Update Reset Tool, run from the VM's Azure portal page under Operations > Run command. Step 6 uses a repair VM: the affected disk is attached to a repair VM, DISM /Image:<Drive>:\ /Cleanup-Image /RestoreHealth and chkdsk <Drive>: /f /r are run against it, and the disk is reattached. After the last step, Microsoft says to contact Microsoft Support if the update still will not install. This is a description of Microsoft's steps, not an instruction to run them here; Microsoft's page gives no way to reverse either, so the system disk backup taken at the start is the only way back.

Confirm the fix

  • The update installs and the computer shows it in its update history, with no new 0x80070570 entry in CBS.log.
  • sfc /verifyonly reports no integrity violations.
  • The next monthly cumulative update installs without the error.

What to watch afterwards

  • A repeat of the error on the same computer. Microsoft's causes include disk errors, so a repeat after a clean chkdsk justifies a look at the storage underneath, which on a hosted virtual server is the provider's.
  • Security software logs at update time. The page lists interference during extraction as a cause but names no product or setting.
  • Free space on the system drive, which the page does not discuss but which any update needs.
  • A service that stops starting after Step 1. A service that is stopped or disabled is the subject of Windows Update error 0x80070422.

Risks and limits

All commands and causes come from Microsoft's page; the read-only checks use the sfc and chkdsk reference pages. The page gives no count for how common each cause is, no time estimate for any step and no setting for security software. Steps 1 to 4 each need a restart, so plan the order around maintenance windows. If the update still fails after Step 4, Microsoft's page directs you to Microsoft Support (or, for a VM, to Steps 5 and 6).

Sources