Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dism The Source Files Could Not Be Downloaded

41 views
Skip to first unread message

Amada Buerstatte

unread,
Dec 3, 2023, 2:39:55 AM12/3/23
to
The source files could not be downloaded.
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 =243077.

Dism The Source Files Could Not Be Downloaded
Download https://liavifafra.blogspot.com/?download=2wHJDG



On a Windows 10 Home based computer, I realized that DISM fails with error 0x800f0906, at 100% of the Restore Health process. So, I decided to run "DISM /Online /Cleanup-Image /RestoreHealth" command again and fortunately the DISM problem "The source files could not be downloaded" disappeared.

I tried to run DISM but got this error. I plugged in the Windows 8 USB stick that I requested from Dell (no CD-ROMs were provided) and re-ran it with the source options and it still gave the error. I read the link but it didn't make much sense and didn't say exactly what a source was. I don't know what a group policy is, or what a WIM is. Windows Update already works OK. I searched for 'group policy' on my system and in Control Panel, but nothing was found. I don't know why it can't just download the files it needs.

Download the MSU files and add them to the Install.wim with DISM. Now run DISM /Online /Cleanup-Image /RestoreHealth /source:D:\install.wim:1 /limitaccess and use the updated WIM as source which includes now all files.

2020-11-27 22:29:53, Info DISM DISM Package Manager: PID=8500 TID=8796 Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS HRESULT=0x800f081f) - CCbsConUIHandler::Error
2020-11-27 22:29:53, Error DISM DISM Package Manager: PID=8500 TID=17644 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f081f)
2020-11-27 22:29:53, Error DISM DISM Package Manager: PID=8500 TID=17644 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg
2020-11-27 22:29:53, Error DISM DISM Package Manager: PID=8500 TID=17644 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x800f081f)
2020-11-27 22:29:53, Error DISM DISM Package Manager: PID=8500 TID=17644 The source files could not be found; their location must be specified using the /source option to restore the feature. - GetCbsErrorMsg
2020-11-27 22:30:08, Error DISM DISM Package Manager: PID=8500 TID=17644 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)
2020-11-27 22:30:08, Error DISM DISM Package Manager: PID=8500 TID=17644 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)

RestoreHealth parameter uses Windows Update to provide the files that are required to fix corruptions. But if your Windows update component file is corrupted, it will return repair file failure or need to specify location or resource for restore health.



The default measure it repair is that download needed files from Windows update, but we could change it through Group Policy settings like below:
Click Computer Configuration, click Administrative Templates, click System, and then double-click the Specify settings for optional component installation and component repair setting.
Or we could use command line below to limit source to Winsxs component store.
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\Windows\WinSxS /LimitAccess

dism /online /cleanup-image /restorehealth
the default source is from internet (Windows Update) so I'd check an internet connection is available when running.
-us/windows-hardware/manufacture/desktop/repair-a-windows-image

By default DISM looks online to find the required files to repair the Windows Image. But in most cases, this doesn't work, so you need to specify a local source for the known good files by using the /Source switch.
The error "The Sources files could not be found files" in DISM tool, is commonly caused because of the following reasons:
Reason 1. DISM tool cannot find online (in Windows Update or WSUS) the files needed to perform the repair, when using this command: "DISM /Online /Cleanup-Image /RestoreHealth"

The source files could not be downloaded.
Use the "source" option to specify the location of the files that are required to restore the feature. For more information about specifying a source location, see =243077.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
Windows couldn't complete the requested changes.

Windows couldn't connect to the Internet to download necessary files. Make sure that you're connected to the Internet, and click "Retry" to try again.

Installation of one or more roles, role services, or features failed.
The source files could not be found. Try installing the roles, role services, or features again in a new Add Roles and Features Wizard session, and on the Confirmation page of the wizard, click "Specify an alternate source path" to specify a valid location of the source files that are required for the installation. The location must be accessible by the computer account of the destination server.
0x800F0906 - CBS_E_DOWNLOAD_FAILURE

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 about specifying a source location, see =243077.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
0x800F081F - CBS_E_SOURCE_MISSING
Error code: 0x800F081F
Error: 0x800F081F

The DISM (Deployment Image Servicing and Management) command-line utility is an incredibly nifty little tool that can be used to service and repair a Windows installation. The DISM.exe command failing can be a pretty significant issue, especially if this happens when you desperately need the utility to work its magic. When the DISM command-line tool fails with error code 0x800f0906, the accompanying error message either states that the source files could not be downloaded or that the files required to repair the store could not be found.

Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be downloaded.
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 =243077. Error: 0x800f0906

PS C:\> Import-Module Dism
PS C:\> Enable-WindowsOptionalFeature -online -Featurename ServerCore-FullServer
,Server-Gui-Shell,Server-Gui-Mgmt
Enable-WindowsOptionalFeature : The source files could not be downloaded.
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 =243077.
At line:1 char:1
+ Enable-WindowsOptionalFeature -online -Featurename
ServerCore-FullServer,Server- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature
], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFea
tureCommand

PS C:\>

If you disable or do not configure this policy setting, of if the required files cannot be found in the location specified by this policy setting, the files will be downloaded from Windows Update, if that is allowed by the policy settings of this computer.

PS C:\> Enable-WindowsOptionalFeature -online -Featurename ServerCore-FullServer
,Server-Gui-Shell,Server-Gui-Mgmt
Enable-WindowsOptionalFeature : The source files could not be downloaded.
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 =243077.
At line:1 char:1
+ Enable-WindowsOptionalFeature -online -Featurename
ServerCore-FullServer,Server- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature
], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFea
tureCommand

PS C:\>

It was reported by this blog post:
-to-install-net-framework-3-5-on-windows-server-2012-r2-fails-with-error-code-0x800f0906-or-the-source-files-could-not-be-downloaded-even-when-supplying-source.aspx

Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
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 =243077. Error: 0x800f081f
At line:1 char:1
+ Install-WindowsFeature Windows-Server-Backup
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ( Vhd=; Credent...Name=localhost:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
owsFeatureCommand

When looking at the available features the Backup feature is displaying this:

PS C:\Windows\system32> install-windowsfeature windows-server-backup
install-windowsfeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
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 =243077. Error: 0x800f081f
At line:1 char:1
+ install-windowsfeature windows-server-backup
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ( Vhd=; Credent...Name=localhost:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
owsFeatureCommand
eebf2c3492
0 new messages