DISM restorehealth source error

tofa tofa 0 Reputation points
2024-04-24T14:44:24.11+00:00

When I run DISM through even "DISM /Online /Cleanup-Image /RestoreHealth /Source:\[SERVER]\C$\windows" I still get the source error. DISM log: https://1drv.ms/u/s!AuErbKJ1F-E6crV6Fk1IgSc8J1o?e=wuZ9hT

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,410 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 32,246 Reputation points
    2024-04-24T17:51:56.29+00:00

    My notes say to do it this way.

    First, download the ISO for your OS. https://www.microsoft.com/en-us/search/explore?q=download+windows+iso

    Mount the Windows iso as a drive and in this command specify the drive letter.

    dism /Get-WimInfo /WimFile:D:\sources\install.esd 
    

    Find the index that matches your Windows OS version. This machine is Win10 Home, so I will use index #1.

    User's image

    Extract the wim file to a temporary folder. Verify that it's the right version.

    dism /export-image /SourceImageFile:D:\sources\install.esd /SourceIndex:1 /DestinationImageFile:c:\temp\install.wim /Compress:max /CheckIntegrity
    dism /Get-WimInfo /WimFile:c:\temp\install.wim
    

    User's image

    Delete the dism log so you only see the output for this run. Then execute the restorehealth.

    del C:\Windows\Logs\DISM\dism.log
    Dism.exe /Online /Cleanup-Image /restoreHealth /source:c:\temp\install.wim 
    
    0 comments No comments