Error code 0x80040c97 typically appears in Windows Update when the system cannot install a specific update, often due to corrupted update files or a stalled Windows Update service. This guide explains the most common causes and provides step-by-step fixes to resolve the error and get your system updating normally again.
What Is Error 0x80040c97?
Error 0x80040c97 is a Windows Update error that generally indicates a problem with the update installation process itself. The code is part of the broader 0x80040cxx range, which points to issues within the Windows Update components. Users most often encounter it when trying to install feature updates or cumulative updates, and the failure can occur either during the download phase or while the update is being applied.
The error is not tied to a single Windows version—it has been reported on Windows 10 and Windows 11, and occasionally on older systems. The underlying cause is usually one of the following:
- Corrupted update cache or temporary files
- Windows Update service not running or stuck
- System file corruption
- Conflicts with third-party antivirus or security software
- Insufficient disk space
Because the error is generic, the fix usually involves resetting the update components and clearing the cache. The steps below are ordered from least to most invasive, so try them in sequence.
Before You Start: Preliminary Checks
Before diving into advanced fixes, verify a few basic things that can cause the error:
- Restart your computer. A simple reboot clears temporary glitches and stops background processes that might interfere with updates.
- Check disk space. Windows updates need several gigabytes of free space. Open File Explorer and confirm that your system drive (usually C:) has at least 10 GB free. If not, free up space by deleting temporary files or moving large files to another drive.
- Disconnect external devices. Sometimes USB drives or external hard drives with drive letters can confuse the update process. Unplug non-essential peripherals.
- Run Windows Update again. Go to Settings > Windows Update and click “Check for updates” once more. The error may be transient.
If the error persists after these checks, proceed to the fixes below.
Fix 1: Run the Windows Update Troubleshooter
Windows includes a built-in troubleshooter that can automatically detect and fix common update problems. This is the easiest first step and often resolves the error without manual intervention.
- Open Settings (Windows key + I).
- Go to System > Troubleshoot > Other troubleshooters (on Windows 11) or Update & Security > Troubleshoot (on Windows 10).
- Select Windows Update and click Run.
- Follow the on-screen instructions. The troubleshooter will scan for issues and apply fixes if it finds any.
- Restart your computer and try updating again.
If the troubleshooter doesn’t find anything or the error returns, move on to the next fix.
Fix 2: Reset Windows Update Components Manually
If the troubleshooter fails, the most reliable method is to manually reset the Windows Update components. This stops the relevant services, clears the update cache, and restarts everything fresh. You’ll need to run commands as an administrator.
- Press Windows key + X and select Terminal (Admin) or Command Prompt (Admin).
- Type the following commands one by one, pressing Enter after each, to stop the Windows Update services:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserver - Rename the SoftwareDistribution and CatRoot2 folders (these hold the update cache). Type:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 Catroot2.old - Restart the services you stopped:
net start wuauservnet start cryptSvcnet start bitsnet start msiserver - Close the Command Prompt and restart your computer.
- Go back to Windows Update and try again.
This process clears any corrupted update files. The old folders are renamed, not deleted, so you can remove them later once you confirm everything works.
Fix 3: Run System File Checker and DISM
Corrupted system files can also cause update failures. Windows includes two tools to repair them: System File Checker (SFC) and Deployment Imaging Service and Management Tool (DISM). Run them in order.
- Open Terminal (Admin) or Command Prompt (Admin) as before.
- Run
sfc /scannowand wait for it to complete. This scans protected system files and repairs any that are corrupted. - If SFC finds issues but can’t fix them, run DISM:
DISM /Online /Cleanup-Image /RestoreHealth - After DISM finishes, run
sfc /scannowagain to catch anything that was repaired. - Restart your computer and attempt the update again.
These commands can take 15-30 minutes, so be patient. They are safe and won’t affect your personal files.
Fix 4: Check for Antivirus Interference
Third-party antivirus software can sometimes block Windows Update from modifying system files, leading to error 0x80040c97. This is more common with security suites that have real-time protection or ransomware shields.
To test if your antivirus is the culprit:
- Temporarily disable real-time protection (look for a toggle in the antivirus settings).
- Try running Windows Update again.
- If the update succeeds, re-enable your antivirus immediately.
- If the update fails even with antivirus disabled, re-enable it and move to the next fix.
If antivirus is indeed the problem, consider adding an exception for Windows Update or switching to a different security solution. Never leave your antivirus disabled for extended periods.
Fix 5: Use the Media Creation Tool (for Feature Updates)
If the error occurs when installing a major feature update (like upgrading from Windows 10 to Windows 11 or a new version), the Windows Update mechanism itself may be broken. In that case, you can bypass it by using the Media Creation Tool or the Installation Assistant from Microsoft’s official website.
- Download the Media Creation Tool from Microsoft’s official site (search “Windows 10 Media Creation Tool” or “Windows 11 Installation Assistant”).
- Run the tool and select “Upgrade this PC now.”
- Follow the prompts. The tool will download the update and install it, keeping your files and apps.
This method often succeeds when Windows Update fails because it uses a different installation path. It’s also useful if you need to create a bootable USB drive for a clean install, but the upgrade option is the least disruptive.
Frequently Asked Questions
Will these fixes delete my personal files?
No. All the fixes above—resetting update components, running SFC/DISM, and using the Media Creation Tool—preserve your personal files, apps, and settings. The only thing that gets cleared is the Windows Update cache, which is safe to remove.
How long does the SFC scan take?
The System File Checker scan typically takes 10-20 minutes, but it can be longer on older or heavily fragmented drives. Let it run to completion; interrupting it can cause further issues.
Can I delete the SoftwareDistribution.old folder?
Yes, after you confirm that Windows Update works correctly, you can delete the renamed folders to free up disk space. Right-click the folder and select Delete, or use Disk Cleanup to remove them.
Why does the error appear only for certain updates?
Error 0x80040c97 often occurs with cumulative updates that modify many system files. If the update cache is corrupted or a service is stuck, the update fails. The fixes above address those root causes.
Is there a way to prevent this error in the future?
Keeping your system clean and up-to-date helps. Regularly run Disk Cleanup to clear temporary files, ensure you have enough free space, and avoid forcibly shutting down your computer during updates. Also, keep your drivers and third-party software updated to reduce conflicts.
What if none of these fixes work?
If the error persists after trying all the fixes, consider performing a repair install using the Media Creation Tool (which reinstalls Windows while keeping your files) or a clean install as a last resort. Back up your data first. If the problem is hardware-related, such as failing disk or RAM, you may need to diagnose those components separately.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Play Minesweeper: Rules, Tips, and Winning Strategy
- Browser SQL Sandbox for Games: Build Guide
- Fix 0x80070005 DISM Error & the 0x800070005 Typo
- Fix Access Denied Adding Shared Printer in Windows 10
- Snapchat Face Swap: Step-by-Step Guide
- Fix a Computer Chair Height Adjuster: Step-by-Step