Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Summary
Windows Update error 0x80070570 (ERROR_FILE_OR_DIRECTORY_CORRUPTED) indicates that Windows can't read or process the files that are required to install an update. This error typically occurs because of corrupted update cache files, a damaged Windows component store, disk errors, or interference from security software. This article describes the symptoms and causes of this error, and provides steps to resolve it on supported versions of Windows client, Windows Server, and Microsoft Azure Virtual Machines (VMs).
Symptoms
You install a Windows update, but the installation fails, and you see error code 0x80070570 reported.
To get more information, review the following resources:
Review the WindowsUpdate.log file or the CBS.log file. Look for entries that resemble the following example:
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]To scan the system files for issues, open a Command Prompt window, and then run the following command:
sfc /verifyonly
Cause
This error occurs if one of the following conditions exists:
- Downloaded update files in the %windir%\SoftwareDistribution\Download folder are corrupted.
- The Windows component store (in the %windir%\WinSxS folder) contains corrupted manifests or files.
- The system volume is corrupted (for example, the disk might have bad sectors or file system errors).
- An antivirus or security application interferes when Windows Update extracts files from downloaded update packages.
- The update files are truncated or partial because the download process was interrupted.
Note
%windir% represents the Windows system folder. The default folder name and location is "C:\Windows."
Resolution
Important
Before you troubleshoot this issue, back up the operating system disk. For information about this process for VMs, see About Azure Virtual Machine restore.
Step 1: Clear the Windows Update cache
To delete corrupted download files and force Windows Update to download new copies, open a Command Prompt window, and then run the following commands:
net stop wuauserv
net stop bits
rd /s /q %windir%\SoftwareDistribution\Download
net start bits
net start wuauserv
After you run these commands, restart the computer, and try again to install the update. If the update still doesn't install, go to step 2.
Step 2: Repair the component store
To repair the component store, run the following command at the command prompt:
DISM /Online /Cleanup-Image /RestoreHealth
Note
By default, DISM uses Windows Update as a repair source. For information about how to specify a different repair source, see Repair a Windows Image.
After you run this command, restart the computer, and try again to install the update. If the update still doesn't install, go to step 3.
Step 3: Check system file integrity
To verify the integrity of the system files, run the following command at the command prompt:
sfc /scannow
If this command identifies issues, see Use the System File Checker tool to repair missing or corrupted system files.
After this command finishes without errors, restart the computer. Try again to install the update. If the update still doesn't install, go to step 4.
Step 4: Check disk integrity
To check for disk issues, follow these steps:
On the affected computer, open a Command Prompt window, and run the following command:
chkdsk C: /f /rWhen prompted, confirm that you want to scan the operating system disk when the computer restarts.
Restart the computer. The tool automatically repairs any problems that it finds.
Important
If the affected computer is an Azure VM, and you use the Azure portal to monitor and remediate disk health, go to the next step of this procedure. You still have to restart the VM that uses the disk.
After the tool finishes, restart the computer, and try again to install the update. If the update still doesn't install, take one of the following actions:
- If the affected computer is a VM, go to step 5.
- Contact Microsoft Support for assistance.
Step 5: Use the Run Command reset tool (Azure)
If the previous steps don't resolve the issue on an Azure VM, try the Azure VM Windows Update Reset Tool. You can run the tool directly from the VM's Azure portal page by using Operations > Run command. When you use this method, you don't have to sign in to the VM.
This tool resets the Windows Update servicing stack. This action clears memory-related lock states in the update agent.
After you run the tool, try again to install the update. If it still doesn't install, go to step 6.
Step 6: Use a repair VM (Azure)
If the reset tool doesn't fix the issue, or the VM can't start:
Create a repair VM by using Azure VM repair commands.
Attach the affected operating system disk to the repair VM.
Make sure that you have an offline operating system image available, and then run the following command at the command prompt:
DISM /Image:<Drive>:\ /Cleanup-Image /RestoreHealthNote
- In this command, <Drive> represents the drive letter of the affected operating system disk.
- By default, DISM uses Windows Update as a repair source. For information about how to specify a different repair source, see Repair a Windows Image.
Run the following command at the command prompt:
chkdsk <Drive>: /f /rNote
In this command, <Drive> represents the drive letter of the affected operating system disk.
To verify the integrity of the system files, run the following command at the command prompt:
sfc /scannow /offwindir \<Drive>:%windir%Reattach the repaired disk to the original VM.
Try again to install the update. If the update still doesn't install, contact Microsoft Support for assistance.