sodcalculator

10 Tech How-To

Fix Windows 10 Error 0xa0000400: Step-by-Step Guide

Guide 10-35479 · Updated · Step by step

Windows 10 error 0xa0000400 usually appears during a system update or upgrade, often accompanied by a message like “Windows could not install the update” or “The installation failed in the SAFE_OS phase with an error during APPLY_IMAGE operation.” This guide walks you through the most effective fixes, from freeing up disk space to repairing corrupted system files, so you can get your system updated and running normally.

What You’ll Need

  • Administrator access to the PC (you’ll need to log in with an account that has admin rights).
  • A stable internet connection (for downloading updates and running online repairs).
  • At least 20 GB of free disk space on the drive where Windows is installed (the C: drive typically).
  • Optional: A USB drive (8 GB or larger) if you need to create installation media for a repair install.

Step-by-Step

  1. Free up disk space. Error 0xa0000400 often occurs when the system drive doesn’t have enough room for the update files. Open File Explorer, right-click on your C: drive, select Properties, and check the free space. If it’s under 20 GB, run Disk Cleanup: type “Disk Cleanup” in the Start menu, select your system drive, and click “Clean up system files.” Also, consider moving large files (like videos or old downloads) to an external drive or cloud storage.
  2. Run the Windows Update Troubleshooter. Go to Settings (Windows key + I) > Update & Security > Troubleshoot > Additional troubleshooters. Select “Windows Update” and click “Run the troubleshooter.” Follow the prompts—it will automatically detect and fix common update issues, such as corrupted update cache or misconfigured services.
  3. Reset the Windows Update components manually. If the troubleshooter doesn’t resolve it, open Command Prompt as administrator (right-click Start > Command Prompt (Admin) or Windows PowerShell (Admin)). Run these commands one at a time, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    Then rename the SoftwareDistribution and catroot2 folders:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
    Restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    Close the Command Prompt and try the update again.
  4. Run System File Checker (SFC) and DISM. Corrupted system files can cause the error. Open Command Prompt as administrator and run:
    sfc /scannow
    Wait for the scan to complete (it may take 15-20 minutes). If it finds errors but can’t fix them, run:
    DISM /Online /Cleanup-Image /RestoreHealth
    This will repair the system image. After DISM completes, run sfc /scannow again to ensure all files are restored. Restart your PC and try the update.
  5. Disable third-party antivirus temporarily. Sometimes security software interferes with the update process. Right-click the antivirus icon in the system tray and choose “Disable” or “Pause protection.” If you’re unsure how, check the software’s help documentation. After disabling, attempt the update. Remember to re-enable the antivirus immediately after the update finishes.
  6. Perform a clean boot. Non-Microsoft services can conflict with the update. Type “msconfig” in the Start menu and open System Configuration. On the Services tab, check “Hide all Microsoft services” and then click “Disable all.” On the Startup tab, click “Open Task Manager” and disable all startup items. Restart the PC, try the update, and then revert the changes (re-enable services and startup items) after.
  7. Use the Media Creation Tool to upgrade. If the above steps fail, download the Media Creation Tool from Microsoft’s official website. Run it, choose “Upgrade this PC now,” and follow the prompts. This will reinstall Windows 10 while keeping your files and apps, and it often bypasses the error. Make sure you have a stable internet connection and enough disk space.
  8. Perform a repair install (in-place upgrade). As a more thorough version of the above, download the Windows 10 ISO from Microsoft, mount it (right-click > Mount), and run setup.exe from the mounted drive. Choose “Keep personal files and apps” when prompted. This will replace the entire Windows installation while preserving your data, and it’s the most reliable fix for persistent update errors.

Common Mistakes

  • Not freeing enough disk space. The update process needs temporary space for extracting files. If you only have a few GB free, the error will persist. Always aim for at least 20 GB free.
  • Skipping the DISM step. Running SFC alone often doesn’t fix underlying corruption. DISM repairs the system image that SFC relies on, so running both is essential.
  • Forgetting to re-enable antivirus. After disabling your antivirus, you might forget to turn it back on, leaving your system vulnerable. Set a reminder to re-enable it right after the update.
  • Interrupting the update process. If the update seems stuck, don’t force a restart or power off. Give it time—some updates can take over an hour. Interrupting can cause more errors.
  • Using the wrong command prompt. Running the commands in a regular Command Prompt window (not as administrator) will result in “Access denied” errors. Always right-click and select “Run as administrator.”

Tips

  • Back up your data before any major repair. Even though the repair install keeps your files, unexpected issues can occur. Use File History or a cloud backup to ensure your important documents are safe.
  • Check for driver updates. Outdated or incompatible drivers can cause update failures. Visit your PC manufacturer’s website or use Device Manager to check for driver updates, especially for graphics and network adapters.
  • Update in stages. If you’re trying to install a feature update (like 22H2), try installing the latest cumulative quality update first. Go to Settings > Update & Security > Windows Update and click “Check for updates” to get all pending updates.
  • Use the Windows Update Assistant. If the Media Creation Tool is too complex, the Update Assistant (available on Microsoft’s download page) can also force the update and often resolves the error.

Troubleshooting

If you’ve tried all the steps and still get error 0xa0000400, here are additional things to try:

  • Check the Windows Update log. Look at the file C:\Windows\Logs\CBS\CBS.log for details about what’s failing. Search for “0xa0000400” or “APPLY_IMAGE” to find the specific error. You might see a hint about which component is causing the issue.
  • Ensure your system is up to date. Sometimes the error is caused by a previous update that didn’t install correctly. Run Windows Update again and install any pending updates, then retry the failed update.
  • Check for hardware issues. In rare cases, failing RAM or a failing hard drive can cause update errors. Run Windows Memory Diagnostic (type “Windows Memory Diagnostic” in Start) and check the drive’s health with chkdsk /f from an admin Command Prompt.
  • Reset Windows Update components via a script. Microsoft provides a PowerShell script to reset Windows Update components automatically. You can download it from the Microsoft website (search for “Windows Update Troubleshooter script”). Run it as administrator and follow the prompts.
  • If all else fails, perform a clean install. Back up all your data, create a bootable USB with the Media Creation Tool, and reinstall Windows from scratch. This is a last resort but will definitely fix the error.

Frequently Asked Questions

What does error 0xa0000400 mean?

It’s a Windows update error that occurs during the installation process, usually in the SAFE_OS phase. It indicates that the system couldn’t apply the update image, often due to disk space issues, corrupted system files, or interference from third-party software.

Will I lose my files if I do a repair install?

No, a repair install (using the Media Creation Tool or ISO with “Keep personal files and apps”) preserves your personal files, installed applications, and settings. However, it’s always wise to back up your data before any major operation.

How long does a repair install take?

It typically takes 30-60 minutes, depending on your hardware and internet speed. The process may appear to hang at certain percentages (like 30% or 90%), but that’s normal—just wait it out.

Can I fix this error without a USB drive?

Yes, you can use the Media Creation Tool directly on your PC, which doesn’t require a USB drive. The tool will download the necessary files and start the upgrade process automatically.

Why does the error keep coming back after I fix it?

If the error recurs, it’s likely due to a deeper system issue, such as a corrupted Windows image or failing hardware. Running DISM and SFC again, checking disk health, and ensuring all drivers are up to date can help. If it persists, a clean install is the most reliable solution.

Is there a way to bypass the update and continue using Windows?

You can defer the update for a while, but Microsoft eventually forces updates for security reasons. It’s better to resolve the error so your system stays secure and compatible with new software.

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

The whole Tech How-To bed →