DISM Server2012R2 Standard cannot find "Source"

John Lenz 1,736 Reputation points
2023-04-27T23:58:15.5166667+00:00

Hyper-V Server2012R2 standard with GUI

I lost connection to WSUS client on this server which is the WSU Role server. SCF /scannow fails so I went to DISM to fix server. the CMD thread is below. Updates from Microsoft are accessed and applied OK.

C:\Windows\system32>dism /OnLine /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool

Version: 6.3.9600.19408

Image Version: 6.3.9600.19397

[==========================100.0%==========================]

The component store is repairable.

The operation completed successfully.

C:\Windows\system32>dism /OnLine /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool

Version: 6.3.9600.19408

Image Version: 6.3.9600.19397

[==========================100.0%==========================]

Error: 0x800f0906

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 http://go.microsoft

.com/fwlink/?LinkId=243077.

Then added source with WIM install option of standard with core:

C:\Windows\system32>DISM /OnLine /Cleanup-Image /RestoreHealth /Source:wim:d:\Sources\Inst

all.Wim:1 /LimitAccess

Deployment Image Servicing and Management tool

Version: 6.3.9600.19408

Image Version: 6.3.9600.19397

[==========================100.0%==========================]

Error: 0x800f081f

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 http://go.microsoft

.com/fwlink/?LinkId=243077.

What files are needed to restore this system image and how do I install them?

Here is link to log file:

https://1drv.ms/u/s!AmoQ3UGkAIVBhdgjU2tJOsdoc4jJ-g?e=4t82b5

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-04-28T02:34:31.9733333+00:00

    The error message "The source files could not be found" suggests that the system is unable to locate the installation source files required to restore the feature. In this case, you can try the following steps:

    Check if the installation media (e.g., DVD or ISO) is still available and accessible. If yes, insert it into the system and use the "Source" option in the DISM command to specify the location of the files. For example:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim

    where "D:" is the drive letter of the installation media.

    If the installation media is not available, you can try downloading the appropriate ISO file from the Microsoft website and use it as the installation source. Make sure to download the correct version and edition of Windows Server 2012 R2. Once downloaded, you can mount the ISO file and use the "Source" option in the DISM command to specify the location of the files. For example:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:F:\ /LimitAccess

    where "F:" is the drive letter of the mounted ISO file.

    If the above steps do not work, you can try resetting the Windows Update components. Open an elevated Command Prompt and run the following commands:

    arduinoCopy code
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    

    This will stop the Windows Update services, rename the SoftwareDistribution and catroot2 folders, and restart the services. Then try running the DISM command again.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. John Lenz 1,736 Reputation points
    2023-04-28T13:00:36.5233333+00:00

    I did not note enough that the second DISM run has sources. The D drive is the original ISO that lserver2012R2 was installed from. SO, why not finding what file?

    0 comments No comments

  2. Limitless Technology 44,766 Reputation points
    2023-04-28T14:11:12.6633333+00:00

    Hello there,

    You could try the following methods:

    Method 1

    Type Dism.exe /online /Cleanup-Image /StartComponentCleanup and press Enter in elevated command prompt.

    Then you can retry running Dism /Online /Cleanup-Image /RestoreHealth command.

    Method 2

    Locate Windows OS ISO file in File Explorer and right click, select Mount.

    Type following commands one-by -one and press Enter key after each:

    diskpart

    list volume

    exit

    After executing these commands, you have to identify the correct drive letter on which the Windows ISO file is mounted. Then run this final command:

    Then run this final command: DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess

    You’ve now redirected DISM to mounted Windows ISO file. Hence, you can now run DISM command i.e. Dism /Online /Cleanup-Image /RestoreHealth and it should work.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.