[SOLVED] The system cannot find the specified file

saa

Well-known member
Joined
Jul 25, 2022
Posts
163
Hello,

I tried to install Windows updates on this Citrix image but only the .Net Framework update (KB5038283) was succesfully installed. The cumulative update 2024-05 was not failed to be installed after many times of trial.
I got the DISM error:


sfc /scannow -> Good!
Dism /RestoreHealth -> Error: The system cannot find the specified file.
dism and CBS logs are attached.


Could you please help to fix this issue?

Many Thanks
 

Attachments

Hi,

Step 1. Download
61f7aba7309a1-ComponentsScanner_Icon.png
ComponentsScanner and save it to your desktop.
  • Right-click ComponentsScanner.exe and select "Run as administrator", click Yes on the UAC (User Account Control) prompt which appears.
  • Follow the on-screen instructions.
  • Once complete, a report will be saved to your desktop called ComponentsScanner.txt.
  • Post the logfile ComponentsScanner.txt as attachment into your next reply.


Step 2. Upload your COMPONENTS hive.
  • Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
  • Please copy this file to your desktop.
  • Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
  • Right-click on this file on your desktop and select Send To > Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
  • Thanks
Reactions: saa
Step 1. Download
6530fbb0f4101-56f31e53c97da-SFCFix.PNG
SFCFix and save it to your desktop.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

  • Thanks
Reactions: saa
Thanks! I ran the SFCFix tool and then i ran the Dism command but it failed. Kindly find the SFCFix.txt and the CBS log attached.
 

Attachments

Same error, but for another component.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

  • Thanks
Reactions: saa
Thanks alot but the SFCFix failed.

RegistryScript::
Failed to import registry key HKEY_LOCAL_MACHINE\TestCH-SAA\DerivedData\VersionedIndex\10.0.17763.5695 (WinBuild.160101.0800)\ComponentFamilies\amd64_38a89d23d5c40e4a7152e5859f0eb00f_31bf3856ad364e35_none_00cb8cbbe44a00d5. A root key cannot be created under this hive.
Failed to import registry key HKEY_LOCAL_MACHINE\TestCH-SAA\DerivedData\VersionedIndex\10.0.17763.5695 (WinBuild.160101.0800)\ComponentFamilies\amd64_38a89d23d5c40e4a7152e5859f0eb00f_31bf3856ad364e35_none_00cb8cbbe44a00d5\v!10.0.17763.1490. A root key cannot be created under this hive.
RegistryScript:: directive failed to complete successfully.




Failed to process all directives successfully.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 3 datablocks.
Finish time: 2024-05-29 17:10:08.342
Script hash: w0AJTRfJWC3c6S9tsbt1+drF6NZD3JtZY/P5Ga+uSho=
 
Thanks! This time the SFCFix ran succesfully but the Dism restorehealth command gives the same error

Dism -> Error: 2, This system can be optimized and not installed. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
 

Attachments

Please run the following command first and post the result to see if it lists reclaimable packages.
Code:
DISM /online /cleanup-image /AnalyzeComponentStore
 
  • Thanks
Reactions: saa
Thanks but i still get the same error when i run the Dism restore command.

sfc /scannow -> Good
dism /online /cleanup-image /checkhealth -> no corruption found
dism /online /cleanup-image /restorehealth -> Error: 2 The system cannot find the specified file.

Kindly find the CBS.log and SFCfix.txt attached.
 

Attachments

Hi,

Here's the next fix.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

  • Thanks
Reactions: saa
I ran the SFCFix but i get the same error unfortunately.

dism /online /cleanup-image /restorehealth -> Error: 2 The system cannot find the specified file.
 

Attachments

Hi,

Here's the next fix.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

  • Thanks
Reactions: saa
Thanks but i stil get the same error.

dism /online /cleanup-image /restorehealth -> Error: 2 The system cannot find the specified file.
 

Attachments

Hi,

Unfortunately, the CBS log always shows only one corruption each time, so here's the next fix.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

  • Thanks
Reactions: saa
Here's the next fix.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
650ef5dbdfd06-62151e1bebac4-SFCFix-Txt-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.


Step 2. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

  • Thanks
Reactions: saa
The provided fix got the image fixed. Fantastic, thanks a lot. but i got the same error when i try to install the missing updates.

Windows updates -> Some update files are missing or have problems. We will try to download the update again later. Error code: (0x80073712), Last failed installation attempt on ‎7-‎6-‎2024 - 0x80073712
 
Please attach the latest CBS logs as well as the following files, maybe it's exactly the same issue as on the other server.

Upload your COMPONENTS hive.
  • Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
  • Please copy this file to your desktop.
  • Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
  • Right-click on this file on your desktop and select Send To > Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.

Export CBS (Component Based Servicing) hive
  • Click on the Start button and type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).

    622dbef75cd3a-Export-CBS-hive.png

  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send > Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
  • Thanks
Reactions: saa

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

Back
Top