Share via

Fix error 0x800f0831 when trying to update Windows 10

Dottie B 0 Reputation points
2026-03-23T10:39:47.39+00:00

I have tried to fix 0x800f0831 using DSIM, but received errors.

I AM NOT A TECH and need an easy to understand solution. Been doing this for days.

Windows for home | Windows 10 | Windows update

4 answers

Sort by: Most helpful
  1. Lucus-V 6,335 Reputation points Microsoft External Staff Moderator
    2026-04-01T19:34:32.53+00:00

    Hi Dottie B,

    Please repair your system by performing an In-place upgrade:

    Disclaimer: Let’s try performing an in-place install or in-place upgrade which will refresh your Windows files and operating system without removing files or applications. That being said, we always recommend that if you have important data, you should back it up before making large system changes. If you want to back up your data first, please do so. Once you are done backing up, you can follow the steps in the following guides: How to perform an In-place Upgrade with Windows 10 Step-by-Step Guide - Microsoft Community

    After that, please try running Windows Update again.

    If you have any further information, please feel free to let me know.


  2. Alvise Cervellati 4,285 Reputation points Independent Advisor
    2026-03-23T11:15:16.0066667+00:00

    Hi Dottie, Welcome in Community

    Ok, You will need to proceed by identifying the specific version of Windows in use with the command:

    Get-ComputerInfo |select WindowsProductName,WindowsEditionId,WindowsVersion, OSDisplayVersion
    

    then get a Windows ISO or DVD in use, mount it with Windows Explorer and type the command

    Get-WindowsImage -ImagePath "D:\sources\install.wim"
    

    Now share what is the result of this command

    Let me Know

    Elvis

    0 comments No comments

  3. Dottie B 0 Reputation points
    2026-03-23T11:09:09.3133333+00:00

    Under Step 1 I received this error.
    =========100.0%==========================]

    Error: 0x800f081f

    The source files could not be found.

    Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

    What am I supposed to do with this information?

    0 comments No comments

  4. Q&A Assist
    2026-03-23T10:40:08.5066667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Error 0x800f0831 means there is a problem with the Windows Update files (component store or a specific update package). Since DISM already failed, use the simpler, supported repair methods below.

    Follow these steps in order.

    1. Run the basic repair tools
    1. Open Command Prompt as administrator:
      • Click Start, type cmd.
      • Right‑click Command Prompt > Run as administrator.
    2. In the black window, type these commands one by one and press Enter after each:
    DISM /ONLINE /CLEANUP-IMAGE /SCANHEALTH
    DISM /ONLINE /CLEANUP-IMAGE /CHECKHEALTH
    DISM /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH
    Sfc /Scannow
    
    1. When all commands finish, restart the PC.
    2. Try Windows Update again.

    If DISM still shows errors or the update still fails with 0x800f0831, continue.

    1. Fix the specific broken update (easy version) The error is usually caused by one particular update that is broken or incomplete. The fix is to remove that update and then add it back manually.

    Step 1: Find which update is failing

    1. Go to Settings > Update & Security > Windows Update.
    2. Try to install updates again and note the KB number of the update that fails (for example, KB4462937). Write it down.

    Step 2: Download that update manually

    1. Open a web browser and go to the Microsoft Update Catalog: https://www.catalog.update.microsoft.com/Home.aspx
    2. In the search box, type the KB number (for example, KB4462937) and press Enter.
    3. In the results, find the entry that matches:
      • Your Windows version (Windows 10 version 21H2, 22H2, etc.).
      • Your system type (x64 for most PCs).
    4. Click Download next to the correct entry.
    5. In the small window that opens, click the link to download the file and save it to C:\temp (create the folder if it doesn’t exist).

    Step 3: Expand the downloaded file

    1. Open Command Prompt as administrator again.
    2. Run these commands (replace the file name with the one actually downloaded):
    cd \
    cd temp
    expand -F:* windows10.0-kb4462937-x64_9e250691ae6d00cdf677707e83435a612c3264ea.msu C:\temp
    
    • The long file name in the command must match the .msu file you downloaded.
    1. After this, there will be a .cab file in C:\temp with a name like:
      • windows10.0-KBxxxxxxx-x64.cab

    Step 4: Remove the broken package (if it is already installed) This step is for the case where Windows thinks the update is installed but it is corrupted.

    1. In the same Command Prompt (administrator), run (replace with your actual CAB file name):
    Dism /online /remove-package /packagepath:C:\temp\windows10.0-kb4462937-x64.cab
    
    1. Restart the computer if asked.

    Step 5: Add the package back cleanly

    1. After restart, open Command Prompt as administrator again.
    2. Run (again, use your real CAB file name):
    Dism /online /add-package /packagepath:C:\temp\windows10.0-kb4462937-x64.cab
    
    1. Restart the computer.
    2. Go back to Settings > Update & Security > Windows Update and try to check for updates again.

    If the update was never installed (Windows Update history shows only failures for that KB), you can skip the remove-package step and only run the add-package command with the CAB file.

    1. If nothing works If the error continues after the steps above, the official guidance is that an in‑place upgrade repair of Windows may be required. This keeps files and apps but reinstalls the system components so Windows Update can work again.

    For that scenario, it is recommended to:

    • Back up important files first.
    • Then follow the in‑place upgrade instructions for Windows 10 from Microsoft documentation or get direct assistance from Microsoft Support or a local technician.

    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.