DISM fails, The source files could not be found, Error 0x800f081f

If the DISM Tool fails, you have 2 options – clean up the system components, and specify an alternative Windows image repair source, which will then be used to repair a corrupted Windows image. You can do this using the Group Policy. Normally, during the repair operation, the automatic corruption repair provides files. But of this itself has got corrupted, you can use a specified repair source on your network or use Windows Update to retrieve the source files that are required to enable a feature or to repair a Windows image.

Clean up system image components

Open an elevated command prompt windows, type the following and hit Enter: Once the operation is completed,the DISM Tool /RestoreHealth command and see if it works. If it does, great, else you will have to proceed to the next option.

DISM fails The source file could not be downloaded

If you receive an Error 0x800f081f or 0x800f0906 The source files could not be downloaded message, then you will have to set an alternative source file. Read on to learn how to do this.

Configure an alternative Windows Repair Source

You can configure your system to use an alternative repair source, via a Group Policy setting, Run gpedit.msc to open the Group Policy Editor, and navigate to the following setting: Computer Configuration > Administrative Templates > System Now in the right pane, double-click on Specify settings for optional component installation and component repair setting. Select Enabled and enter the Alternate source file path. You may also choose:

Never attempt to download payload from Windows UpdateContact Windows Update directly to download repair content instead of Windows Server Update Service (WSUS).

Click Apply/OK and exit. Remember that you will need to keep and maintain a  repair source that is current with the latest servicing updates, etc, on your network. Related tip: To use a running Windows installation as the repair source, or use a Windows side-by-side folder from a network share or from a removable media, such as the Windows DVD, as the source of the files, you can use the following command to run DISM Offline: Here you will have to replace C:\RepairSource\Windows with the location of your repair source. Once the process is complete, DISM will create a log file in %windir%/Logs/CBS/CBS.log and capture any issues that the tool finds or fixes. Read next: Fix DISM Errors 87, 112, 11, 50, 2, 3, 87,1726, 1393.