Hello @MiguelRA22
Upon checking the dism.log, I noticed a small error in the syntax of the DISM command. It was logged as:
DISM /Online /Cleanup-Image /RestoreHealth /Source:ESD:C:\w10\Sources\install.wim
Copy
The correct command should be:
DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:C:\w10\Sources\install.wim:1
Copy
Note: Make sure that the index number matches the edition of your Windows OS. For more information about checking image indexes, see article https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/take-inventory-of-an-image-or-component-using-dism?view=windows-11#list-images-that-are-contained-in-a-wim-or-vhd-file on taking inventory of an image or component using DISM.
Best regards.
Juan S.
If you found my response helpful, please consider upvoting it. This will help other users with similar questions find the answer more easily. Thank you for your support!