[SOLVED] SFC and DISM cannot fix Windows Server 2019

Proff77

Member
Joined
Oct 27, 2018
Posts
8
Location
France
Hello all,
Attempting to install SQL Express 2019 on a Windows Server 2019, the installer reported some unfixable issue. So I ran "DSIM /online /cleanup-image /restorehealth" then "SFC Scannow" and both failed with following messages:
"source files could not be found...." for DISM
"corrupted files detected bu could not repair some of them..... error 0x800f081f" for SFC

I translated the messages as my Windows server is in French...

Attached are the CBS.log and dism.log files.

Any help would be great. I saw some topics using SFCfix but as indicated the provided solutions were exclusively for the specific case so I did not risk to run it in case the issue is different (with same error messages).

Thank you very much for your support.
Best regards,
Thomas
 

Attachments

Hello again.
Sorry I did not follow the instructions first, thank you for the reminder.

So I followed the instructions and ran SFCfix which gave me the following result:


SFCFix version 3.0.2.1 by niemiro.
Start time: 2021-01-20 18:00:29.772
Microsoft Windows Server 10 Build 17763 - amd64
Not using a script file.




AutoAnalysis::
SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.



Failed to generate a complete zip file. Upload aborted.


SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2021-01-20 19:50:42.621
----------------------EOF-----------------------

Then I ran again DISM and SFC commands with the same result as in original message. Attached the SFC log .
Below the link to google drive for the CBS.zip file.

CBS.zip

Thank you again for your support.
Best regards,
Thomas
 

Attachments

Code:
DISM /Online /Cleanup-Image /RestoreHealth


The above command will not work if Windows Update service not working correctly. You will be prompted to use /source parameter to specify the location of the files that are required to restore the damage or missing files.

lgSdJee.jpg



The Install.wim is the source of where these corrupted or missing files located.
The Windows Imaging Format (WIM) is a file-based disk image format. It was developed by Microsoft to help deploy Windows Vista and subsequent versions of the Windows operating system family.


The following command creates a new folder named "Mount" at C: partition.

Code:
Mkdir  C:\Mount


You can execute the following command to found out the index number of your Windows OS edition that you want to repair.

Code:
Dism  /Get-WimInfo  /Wimfile:"L:\sources\install.wim"

34j6bVp.jpg


Replace the L:\sources with directory path where Install.wim stored. As you can see there are two editions of Windows 10 and all have an index number.


The following command mounts the install.wim image file to C:\Mount folder.

Code:
dism /mount-wim /wimfile:X:\Sources\Install.wim /index:1 /mountdir:C:\Mount

Replace the X:\Sources folder path with a folder path where Install.wim image file is stored.

The /Index parameter tells DISM utility to mount which edition of Windows OS. The Install.wim file can contain more than one edition of the Windows OS.




The following command can be executed to extract corrupted or missing Windows Component Store files.

Code:
DISM  /Online  /Cleanup-Image   /RestoreHealth     /Source:c:\mount\windows   /LimitAccess

The /LimitAcess parameter tells DISM utility to not use Windows Update service to retrieve corrupted or missing files.



To unmount a WIM file using the DISM tool, execute following command.

Code:
dism /unmount-wim /mountdir:C:\Mount  /discard
 
Thank you so much for your help, this fixed the windows corruption issues.

But I still have issues with the SQL2019 express installation... (I cannot uninstall it: rights issue or device unavailable...) But I'm not sure I still can use this thread as it is not anymore windows update related...

However, many thanks, support quality is great and super fast.

Cheers,
Thomas
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top