I had the same problem as described on this thread. Here is how I solved it:
- Download the Windows 10 image from Microsoft Tech Bench (those images have the install.wim).
- Run PowerShell with administrative privileges by going to TaskManager -> File -> Run New Task and typing powershell (don't forget to check the option of administrative priveligies). Select Run.
- Now, Run this command:
Dism /Online /Cleanup-Image /RestoreHealth /Source:WIM:X:\sources\install.wim:1 /LimitAccess
Now it should run smoothly.
If you want to know how I got to the solution here it goes:
First, I was getting the following error from DISM (when using /Source:X:\sources\install.wim):
Then I discovered that when I was defining the source as /Source:WIM:X:\sources\install.wim (without the :1) it wouldn't recognize the source and would even say that it didn't exist:
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 Configure a Windows Repair Source.
The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
Finally I found the DISM GUI tool, and opened the wim file to discover that it packed 2 versions of Windows 10: Pro (Index 1) and Home (Index 2)
An error occurred while processing WIM:C:\RestoreImage\install.wim. The specified path was not found.
Ensure that the argument is valid and that the path exists.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
So I realized that it would need an explicit specificatio of the index, hence the solution.
Hope it helps!