Windows 10: DISM fails to repair offline Windows

Discus and support DISM fails to repair offline Windows in Windows 10 Performance & Maintenance to solve the problem; I am trying to revive my Windows OS using DISM but it fails with error 0x800F081F. I am booting the machine with latest USB Boot Media (2004) and... Discussion in 'Windows 10 Performance & Maintenance' started by pvivekm, Oct 8, 2020.

  1. pvivekm Win User

    DISM fails to repair offline Windows


    I am trying to revive my Windows OS using DISM but it fails with error 0x800F081F.
    I am booting the machine with latest USB Boot Media (2004) and trying to repair Windows.
    The details are:
    1. Original Disk failed due to bad sectors.
    2. Cloned disk using Macrium Reflect (Free Edition) to a new disk of same size.
    3. Windows 10 Home Edition Version 2004 Build 10.0.19041.504 (Not able to boot)
    4. Dual boot configured with Ubuntu Linux. (Can boot into Linux)
    5. Before using DISM, tried fixing boot record (BCDEdit, Bootrec, etc) but boot process still fails with BSOD ( 0xC0000135)
    6. Logs of DISM attached.dism-log.txt
    DISM Command used:
    Dism /image:C:\ /WinDir:Windows /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim:15. Latest Update Log (From Before Crash) : CBS.zip
    Appreciate your help.

    Please let me know if more details are needed. (I have backup image of the Windows partition)

    :)
     
    pvivekm, Oct 8, 2020
    #1
  2. Kursah Win User

    Repair Windows 7/8/10

    Repairing Windows 8

    Further improving on previously deployed OS repair methods, Windows 8, 8.1, Server 2012 and 2012 R2 further allowed advanced repair where an in-place upgrade or total re-install would be required on previous operating systems. In all honesty, before Windows 10 implementation, this was arguably the easiest OS to repair for a couple of years by running more basic commands.

    This has since been advanced to more closely match Windows 10/Server 2016 repairs but with the below information I hope to guide you through performing these advanced tasks more easily!

    Spoiler: Windows 8/8.1 Repair DISM

    If CHKDSK and SFC fail to repair the issues with the system, then it this is your next option and besides restoring from a previous backup might be the second-to-last option before re-installing the operating system. We will utilize DISMfor this next repair option.
    • In some instances, you won't need the OS ISO to perform the DISM image cleanup. You can attempt this on any OS from 8-10 by using the following command in elevated CLI: DISM /Online /Cleanup-Image /RestoreHealth
    • In many cases now due to some changes Microsoft made, you'll need to have a copy of the OS ISO available. The ISO will need to be a standard deployment variety that contains Install.WIM in the Sources directory, otherwise the process will fail. Once you have the correct ISO, mount it in Explorer (can do this natively on Microsoft Windows 8.0+), verify the drive letter, verify Image.WIM in the Sources directory.
      • To download a Windows 8.1 ISO from Microsoft, click here.
    • Enter the following in elevated CLI: DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess
      • X = drive letter of mounted ISO. Change to match the appropriate drive letter.
      • Say I had the Install.WIM located in C:\Images, I would type the following command: DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:C:\Images\Install.WIM:1 /LimitAccess
    The DISM scan can take a while, often times longer than an CHKDSK or SFC scan. To speed up the process, have the Image.WIM on a faster flash media or on local storage rather than disc media. This will help greatly. In many cases one or two runs of this command will repair most issues I've found with Windows 8/8.1.

    Once the DISM repair process has been found successful, or not, I will perform a reboot. If the repair was unsuccessful, this will be when I attempt a second pass. If the second pass fails, it is time to move onto the next solution.

    However, if the DISM repair passes at any point, reboot the system and then perform an SFC to confirm no further issues are found or need resolved. This step is likely overkill for those not seeking to do optional steps.

    Operating System Refresh

    It should be noted that in the event DISM fails to repair the system, then an OS refresh would be the next suggestion if the deployed that could save the user's files and OS deployment.

    This feature has been an available feature since Windows 8 launched in 2012. The biggest benefit with this option over Windows 7's in-place-upgrade is not necessarily requiring the OS installation media to perform the repair.

    If the system is an OEM, an OS refresh from the OEM partition may mean a reinstall of the OS and loss of user data but the restoration of OEM software and bloatware. But you can still choose a manual OS-only refresh without the bloatware if you take the correct steps.

    The best choice in my opinion is to run an OS refresh procedure from the advanced boot menu or you can run the installation media while in Windows to perform and Upgrade installation, this will keep your files and settings but replace Windows files and components.

    To access the advanced boot menu for Windows 8, there are a several options.
    • When choosing restart from the OS GUI, hold down SHIFT and click restart. This method will work even if you cannot log into a profile on the system which makes it very useful in some situations.
    • If logged in, access PC Settings, and click Restart Now under Advanced Startup.
    • If logged in, open a command prompt window and type shutdown /r /o /t 0 which will initiate a reboot into the advanced menu right with no delay. Without /t 0, there will be a 60-second delay. The number value after the /t is delay seconds.
    Once you've reached the advanced boot menu, choose Troubleshoot. From there you can choose to Refresh your PC, Reset your PC and Advanced Options. For this repair, we want to choose Refresh your PC. It's description reads "If your PC isn't running well, you can refresh it without losing our files." That is exactly what we want to accomplish here!

    Follow the prompts and processes, and after the refresh installation and rebooting, you should be greeted with a login screen back to your profile in your stable OS environment. At this point you should be able to use the system as intended, if in doubt then re-run the SFC and DISM scans.

    In-Place Upgrade

    If CHKDSK, SFC and DISM fail to repair the issues with the system, yet you can still boot to the Windows desktop, then the next option is to perform an in-place upgrade. This is more in-depth than an Operating System Refresh. It re-installs most of the operating system's core image and critical files without losing your profiles, data or programs, but do expect to lose some settings. In many cases this process can fix some major issues and refresh an otherwise corrupt and issue-ridden OS installation back to something stable and usable.

    Time to close the CLI windows and get back into the GUI, unless you want to deploy Windows through CLI. You'll have to source a different guide for that process!

    Requirements to perform an in-place upgrade:
    • Must have installation media that matches the installed OS version and type. This applies to both Windows and Windows Server.
    • Must be able to get to the desktop on the affected system to correctly initiate this process, booting to the media will not allow an upgrade to be performed.
    That last rule is the frustrating part of this repair process if you cannot get that far, backup what you can and do a fresh installation. Otherwise proceed.
    • Start the process by using autorun or manually running setup.exe from the installation media.
    • Windows 8/Server 2012+ can mount ISO's in Windows Explorer, you can use that instead of physical media options to perform this task.
    • You'll come to the installation window, the options will be Upgrade or Custom. Choose Upgrade. This is critical as choosing custom will force you to overwrite, append or wipe out the current install rather than performing any kind of repair.
    • Follow the on-screen prompts, which should be very few for you to interact with. The overall process looks and is the Windows install GUI. Once it is completed, the system will automatically reboot (may need to more than once).
    • After the reboot(s) after the in-place upgrade you should have a fully functional Windows without issues or corruptions.
    Performing an in-place upgrade makes sense, and gives you a stable and clean running operating system when there's an issue or corruption you just can't fix but things aren't broken enough to warrant a fresh installation. The point of this process is to refresh the Windows OS files but retain your data, programs, and settings. That is precisely what the in-place upgrade procedure accomplishes.

    I should also add that this process can be accomplished remotely as well, from start to finish. I have done so with persistent LogMeIn, ScreenConnect and Teamviewer installations on various remote systems I have performed this task on, RDP should work as well. Being able to do this level of repair remotely is a huge benefit to any sysadmins out there looking to keep a client happy and perform that "remote magic" IT guys are known for.


    **If at this point your issues are not fixed, then there is something else occurring that is causing the issue be it Malware, hardware, drivers, etc. Please refer to the OP in this thread to run through some of those tests and diagnostics, or create a new thread seeking help and stating what you've tried.**
     
    Kursah, Oct 8, 2020
    #2
  3. OneMoar Win User
    How to get damn DISM to work?

    you need to run DISM first before running SFC
    SFC query's the local component stores to make repairs
    DISM is targeted for rebuilding the component stores and a offline image the 'live' section is still handled by SFC in some cases
    except on windows 8.1 and up because they changed it
    but only for certain files and only if x part of the store is corrupt
    so yea pretty confusing eh
     
    OneMoar, Oct 8, 2020
    #3
  4. DISM fails to repair offline Windows

    DISM fails to repair offline Windows :( DISM (Error 0x800f081f) and SFC (Failed to Repair)


    Hi Brink,

    Your tutorial regarding this error (see title) is wonderfully written and I give you two thumbs up, but so far no joy for me. I have tried everything in your tutorial from running all the steps suggested as much in an elevated Command Prompt as in PowerShell to no avail. I have attached the "sfcdetails.text" file for you to check out and see if you can come up with any valid suggestions with regard to my case.

    I am a little bit hesitant to refresh Windows 10 since I have lots of applications and it will be mind-boggling to reinstall all of them. Below you have either a screenshot or a copy/paste of all the steps I have tried so far:

    A-DISM CLEANUP-IMAGE TOOL IN POWERSHELL


    Windows PowerShell
    Copyright (C) 2015 Microsoft Corporation. All rights reserved.

    PS C:\WINDOWS\system32> Repair-WindowsImage -Online -CheckHealth
    Path :
    Online : False
    ImageHealthState : Repairable
    RestartNeeded : False

    PS C:\WINDOWS\system32> Repair-WindowsImage -Online -ScanHealth
    Path :
    Online : False
    ImageHealthState : Repairable
    RestartNeeded : False


    PS C:\WINDOWS\system32> Repair-WindowsImage -Online -RestoreHealth
    Repair-WindowsImage : The restore operation failed. Either the repair source was not found or the component store
    cannot be repaired.
    At line:1 char:1
    + Repair-WindowsImage -Online -RestoreHealth
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: DISM fails to repair offline Windows :)) [Repair-WindowsImage], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.RepairWindowsImageCommand


    PS C:\WINDOWS\system32> Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:E:\sources\install.wim:1 /limitaccess

    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384
    Image Version: 10.0.10240.16384
    [==========================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 informat
    ion on specifying a source location, see Configure a Windows Repair Source.
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
    PS C:\WINDOWS\system32>

    B-REPAIRING WINDOWS 10 IMAGE USING DISM:

    Microsoft Windows [Version 10.0.10240]
    (c) 2015 Microsoft Corporation. All rights reserved.
    C:\WINDOWS\system32>Dism /Online /Cleanup-Image /CheckHealth
    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384
    Image Version: 10.0.10240.16384
    The component store is repairable.
    The operation completed successfully.


    C:\WINDOWS\system32> Dism /Online /Cleanup-Image /ScanHealth
    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384
    Image Version: 10.0.10240.16384
    [==========================100.0%==========================]
    The component store is repairable.
    The operation completed successfully.


    C:\WINDOWS\system32>Dism /Online /Cleanup-Image /RestoreHealth
    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384
    Image Version: 10.0.10240.16384
    [==========================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 t
    o restore the feature. For more information on specifying a source location, see
    Configure a Windows Repair Source.
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log


    C:\WINDOWS\system32>Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:E:\so
    urces\install.wim:1 /limitaccess
    Deployment Image Servicing and Management tool
    Version: 10.0.10240.16384
    Image Version: 10.0.10240.16384
    [==========================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 t
    o restore the feature. For more information on specifying a source location, see
    Configure a Windows Repair Source.
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log


    C:\WINDOWS\system32>


    DISM fails to repair offline Windows [​IMG]


    I am really hoping that you can have a look at my case. Thanks.
     
    IronZorg89, Oct 8, 2020
    #4
Thema:

DISM fails to repair offline Windows

Loading...
  1. DISM fails to repair offline Windows - Similar Threads - DISM fails repair

  2. Corruption not repairable, DISM is also failing to repair

    in Windows 10 Gaming
    Corruption not repairable, DISM is also failing to repair: Hi I wanted to know is there a reason why DISM is failing to repair the component store under impossible to find the sources files error.The sfc return those errors :p CSI Payload Corrupt n...
  3. Corruption not repairable, DISM is also failing to repair

    in Windows 10 Software and Apps
    Corruption not repairable, DISM is also failing to repair: Hi I wanted to know is there a reason why DISM is failing to repair the component store under impossible to find the sources files error.The sfc return those errors :p CSI Payload Corrupt n...
  4. Corruption not repairable, DISM is also failing to repair

    in Windows 10 BSOD Crashes and Debugging
    Corruption not repairable, DISM is also failing to repair: Hi I wanted to know is there a reason why DISM is failing to repair the component store under impossible to find the sources files error.The sfc return those errors :p CSI Payload Corrupt n...
  5. Windows 10 dism unmount offline image failed with error 32

    in Windows 10 Installation and Upgrade
    Windows 10 dism unmount offline image failed with error 32: Hi thereI am trying to change some registry keys in an offline image BOOT.WIM as to ensure a recovery-media startup uses the right screen resolution.Therefore i use Windows Powershell admin and make some commandline entries.dism /mount-wim /wimfile:G:\SOURCES\BOOT.WIM...
  6. Windows Update fail / Repair install fail / SFC + DISM fail

    in Windows 10 Installation and Upgrade
    Windows Update fail / Repair install fail / SFC + DISM fail: Hey there - really grateful for this forum's answers over the years but only now becoming a member to submit a puzzle of my own. Thanks for being here! This is a few-day-old new HP Envy x360 with 21H1 19043.1052 which I was getting set up, when it stopped being able to get...
  7. DISM offline source

    in Windows 10 Performance & Maintenance
    DISM offline source: Hi, I have one Win 10 system that's in perfect health, passes sfc & dism with flying colors. I have another Win 10 system, same build as the good one, that has... issues. I'd like to prepare an offline source for DISM from the good system for repairing the bad one. By...
  8. DISM Windows 10 offline problem

    in Windows 10 Performance & Maintenance
    DISM Windows 10 offline problem: Hello I have problem with my win its wont start normally, I downloaded a windows 10 home 64 on USB using media creation from Microsoft website to fix the problem. But it seems I have a problem with the DISM offline command!! Can you please show me wht is the correct DISM...
  9. DISM offline fix failing - no source

    in Windows 10 Performance & Maintenance
    DISM offline fix failing - no source: A client dropped off a machine to be repaired. It was loaded with Windows 10 home, and the initial build was 1809 (I am unsure if the user has done any of the feature upgrades). The machine will not boot into normal mode or into safe mode. I can get it to troubleshooting and...
  10. dism offline repair fails with 'The cleanup-image option is unknown."

    in Windows 10 Updates and Activation
    dism offline repair fails with 'The cleanup-image option is unknown.": Hello I have a laptop that I took the HDD out of and connected it to another Windows 10 machine. I ran the command Dism /Image:e:\ /Cleanup-Image /RestoreHealth but get the error Deployment Image Servicing and Management tool Version: 10.0.10240.16384 Image...

Users found this page by searching for:

  1. recovery media dism offline

    ,
  2. recovery media dism /WinDir