[SOLVED] windows 2016 dism restorehealth Error: 0x800f081f The source files could not be found.

Please provide a copy of the following file/folder if existst:

C:\Windows\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d
 
Okay, please try the following for this component:

Please open an elevated prompt and run the following commands and post the result:
Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" /save "%userprofile%\desktop\perms.acl" /t
takeown /f "%systemroot%\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" /r
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" /grant administrators:(F) /t

1. Download the attachement and unpack the zip file.
2. Copy the folder: "amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" into C:\Windows\WinSxS
3. Run the following commands to restore the permissions.

Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" /setowner "NT SERVICE\TrustedInstaller" /t
icacls "%systemroot%\WinSxS" /restore "%userprofile%\desktop\perms.acl" /t
 

Attachments

Successfully processed 1 files; Failed processing 0 files

SUCCESS: The file (or folder): "C:\Windows\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" now owned by user "my_user".

icacls "%systemroot%\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d" /grant administrators:(F) /t


I have copied the file attached and ran one more dism. failed again. here below the cbs log
 

Attachments

Please run the following command and post the result:
Code:
certutil -hashfile "%systemroot%\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d\AppxPackaging.dll" SHA256
 
SHA256 hash of file C:\Windows\WinSxS\amd64_microsoft-windows-c..ent-appxpackagingom_31bf3856ad364e35_10.0.14393.0_none_4722b21f119ecd8d\AppxPackaging.dll:
efe94806c0e0f50f64b4505a10e1bbe940aa8e5c76a67d8c17fb3df87c602e61
CertUtil: -hashfile command completed successfully.
 
Great, please try the following with SFCFix and a scriptfile only to see what happens, I'm curious if fails the same way!

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.
 

Attachments

Great, please run DISM again to see if the number of corruptions (86) is decreased to 85.
 
Okay, I'll need to test some things to provide a fix for the remaining components..
 
Here's the next fix, please open an elevated prompt and run the following commands: (Please note: due to the size of the WinSxS folder these commands may take some time to complete)
Code:
icacls "C:\Windows\WinSxS\*" /save "%userprofile%\desktop\perms.acl" /t
takeown /f "C:\Windows\WinSxS\*" /r
icacls "C:\Windows\WinSxS\*" /grant administrators:(F) /t

1. Extract the attached WinSxS.zip file
2. Copy all the folders to C:\Windows\WinSxS
3. When completed run the following command

Code:
icacls "C:\Windows\*" /restore "%userprofile%\desktop\perms.acl" /t

Afterwards run SFCFix again with the attach script file.

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.
 

Attachments

Last edited:
Yes, here's the next fix.

Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-directui.resources_31bf3856ad364e35_10.0.14393.0_et-ee_952c029f00c24663" /save "%userprofile%\desktop\perms.acl" /t
takeown /f "%systemroot%\WinSxS\amd64_microsoft-windows-directui.resources_31bf3856ad364e35_10.0.14393.0_et-ee_952c029f00c24663" /r
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-directui.resources_31bf3856ad364e35_10.0.14393.0_et-ee_952c029f00c24663" /grant administrators:(F) /t

1. Download the attachement and unpack the zip file.
2. Copy the folder: "amd64_microsoft-windows-directui.resources_31bf3856ad364e35_10.0.14393.0_et-ee_952c029f00c24663" into C:\Windows\WinSxS
3. Run the following commands to restore the permissions.

Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-directui.resources_31bf3856ad364e35_10.0.14393.0_et-ee_952c029f00c24663" /setowner "NT SERVICE\TrustedInstaller" /t
icacls "%systemroot%\WinSxS" /restore "%userprofile%\desktop\perms.acl" /t

Now run the following command to load the COMPONENTS hive manually:
Code:
reg load HKLM\COMPONENTS C:\WINDOWS\SYSTEM32\CONFIG\COMPONENTS

Download the attached Regfix.zip and extract this file.
Right click Regfix.reg and select merge and add this key into the registry.
Afterwards run DISM again and post the result.
 

Attachments

thanks a lot man, you did it!
C:\Windows\system32>DISM /Online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.14393.4169

Image Version: 10.0.14393.4169

[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.

thanks again for your help, it was already one week struggling in searching what wrong with the repair!
 
You're welcome. Let me know if there are any remaining issues or everything is up-to-date and working well again.
 

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

Back
Top