[SOLVED] [8 x64, NO updates] SFC unable to fix corrupt files; DISM error 1812.

fussygoat

Active member
Joined
Nov 27, 2017
Posts
40
Hi. I'm trying to fix a friend's PC. It's a Lenovo H520s, so I'm assuming the Win 8 is legit - it says it's activated and displays a portion of the product key. It won't launch any MS Office apps and a certain installed game, but it can launch browsers, media players, Paint and some other apps. SFC was unable to fix some file corruptions. DISM is giving me "Error code 1812 An initialization error occurred'.
I do not know how to interpret the CBS logs but I saw some 'Failed' in a number of lines. Running out of ideas, I used SFCFix and found these:
AutoAnalysis::
FIXED: Performed DISM repair on file Amd64\CNBJ2530.DPB of version 6.2.9200.16430.

CORRUPT: C:\windows\winsxs\amd64_microsoft-windows-powershell- exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe

Still getting error 1812 with DISM after running SFCFix. I hope someone can help. Thanks!
 
Re: [W8] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hello and welcome to Sysnative!

SFCFix Script

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the file below, SFCFix.zip, and save this to your Desktop. Ensure that this file is named SFCFix.zip - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFix.zip.
  5. Drag the file SFCFix.zip onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a file should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this file into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.




SFC Scan


  1. Click on the Start button and in the search box, type Command Prompt
  2. When you see Command Prompt on the list, right-click on it and select Run as administrator
  3. When command prompt opens, copy and paste the following commands into it, press enter after each

    sfc /scannow

    Wait for this to finish before you continue

    copy %windir%\logs\cbs\cbs.log %userprofile%\Desktop\cbs.txt
  4. This will create a file, cbs.txt on your Desktop. Please attach this to your next post.
 

Attachments

Re: [W8] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Thank you for your immediate response. Here are what you asked for. I had to compress 'Cbs.txt' because I couldn't attach the 7 Mb file.

Code:
SFCFix version 3.0.0.0 by niemiro.Start time: 2017-11-28 10:50:26.752
Microsoft Windows 8  - amd64
Using .zip script file at C:\Users\Administrator\Desktop\SFCFix.zip [0]








PowerCopy::
Successfully took permissions for file or folder C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe


Successfully copied file C:\Users\Administrator\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe to C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe.


Successfully restored ownership for C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe
Successfully restored permissions on C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe
PowerCopy:: directive completed successfully.








Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2017-11-28 10:50:29.439
Script hash: PxGj1SA9q1d33At7RUfMfq1We0eTYtNhnItp19cs0Lc=

----------------------EOF-----------------------
 

Attachments

Re: [W8] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

SFCFix Script

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.



  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the file below, SFCFix.zip, and save this to your Desktop. Ensure that this file is named SFCFix.zip - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFix.zip.
  5. Drag the file SFCFix.zip onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a file should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this file into your next post for me to analyse please - put tags around the log to break up the text.





SFC Scan



  1. Click on the Start button and in the search box, type Command Prompt
  2. When you see Command Prompt on the list, right-click on it and select Run as administrator
  3. When command prompt opens, copy and paste the following commands into it, press enter after each

    sfc /scannow

    Wait for this to finish before you continue

    copy %windir%\logs\cbs\cbs.log %userprofile%\Desktop\cbs.txt
  4. This will create a file, cbs.txt on your Desktop. Please attach this to your next post.
 

Attachments

Re: [W8] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hi. The SFC scan did not come up with any file corruptions after running SFCFix. Maybe you've finally fixed it. I haven't tried running DISM because I don't want to accidentally mess up the progress you've made. I'll just wait for your next instructions. Please find the link to CBS.zip at the bottom. Thanks!

Code:
SFCFix version 3.0.0.0 by niemiro.Start time: 2017-11-28 23:12:21.168
Microsoft Windows 8  - amd64
Using .zip script file at C:\Users\Administrator\Desktop\SFCFix.zip [0]








PowerCopy::
Successfully took permissions for file or folder C:\windows\winsxs\amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12\amd64\cnbj2530.dpb


Successfully copied file C:\Users\Administrator\AppData\Local\niemiro\Archive\winsxs\amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12\amd64\cnbj2530.dpb to C:\windows\winsxs\amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12\amd64\cnbj2530.dpb.


Successfully restored ownership for C:\windows\winsxs\amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12\amd64\cnbj2530.dpb
Successfully restored permissions on C:\windows\winsxs\amd64_prncacla.inf_31bf3856ad364e35_6.2.9200.16430_none_fdce12188b615b12\amd64\cnbj2530.dpb
PowerCopy:: directive completed successfully.








Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2017-11-28 23:12:21.622
Script hash: IVpRFbNXl/Z9+LrRJnrYu6EUy07Y6EZvkN3AZzSKiRM=

----------------------EOF-----------------------

cbs.zip - Google Drive
 
Re: [W8] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Try DISM and see what happens, although, I think there will be one more thing to fix.
 
Re: [W8] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

You're right. I tried DISM scanhealth and got error code 1812 - initialization error occurred.
Sorry if I brought this up late but in case this has some bearing on the issue, before I came to this forum, I followed some instructions from another site and used 'mofcomp.exe' to fix an error with WMI. If I recall correctly, these were the lines I entered onto the command prompt:

mofcomp.exe cimwin32.mof
regsvr32 cmwin32.dll

I tried these because I also noticed that System Info was not displaying the type of processor and amount of RAM installed. For reference, the link to the site is at the bottom. I also attached a screen shot of the WMI Conrol Properties showing errors. I'm really grateful for your help.

WMI: Missing or Failing WMI Providers or Invalid WMI Class | Ask the Performance Team Blog
 

Attachments

  • Windows Management Instrumentation fail.jpg
    Windows Management Instrumentation fail.jpg
    40.4 KB · Views: 1
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Thanks for letting me know.

SFCFix Script

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the file below, SFCFix.zip, and save this to your Desktop. Ensure that this file is named SFCFix.zip - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFix.zip.
  5. Drag the file SFCFix.zip onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a file should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this file into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.



SFC Scan


  1. Click on the Start button and in the search box, type Command Prompt
  2. When you see Command Prompt on the list, right-click on it and select Run as administrator
  3. When command prompt opens, copy and paste the following commands into it, press enter after each

    sfc /scannow

    Wait for this to finish before you continue

    copy %windir%\logs\cbs\cbs.log %userprofile%\Desktop\cbs.txt
  4. This will create a file, cbs.txt on your Desktop. Please attach this to your next post.
 

Attachments

Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hi. Thanks again. SFC found no corrupted files. Still getting error with DISM.

Code:
[/COLOR]SFCFix version 3.0.0.0 by niemiro.Start time: 2017-11-29 08:52:09.763
Microsoft Windows 8  - amd64
Using .zip script file at C:\Users\Administrator\Desktop\SFCFix.zip [0]








PowerCopy::
Successfully took permissions for file or folder C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe


WARNING: File C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe was not backed up as that would replace the current backup.
Successfully copied file C:\Users\Administrator\AppData\Local\niemiro\Archive\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe to C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe.


Successfully restored ownership for C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe
Successfully restored permissions on C:\windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_6.2.9200.16384_none_c1dfa6188bf6d97b\powershell.exe
PowerCopy:: directive completed successfully.








Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2017-11-29 08:52:10.341
Script hash: iZf34IWWPF7qHQxxNAK0gW82xqsGV9VLheIQjEnF2hI=

----------------------EOF-----------------------[COLOR=#333333]

cbs.zip - Google Drive
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Step#1 - DISM /RestoreHealth Scan
Warning:this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.


  1. Right-click on the Start button and select Command Prompt (Admin)
  2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter
    Dism /Online /Cleanup-Image /RestoreHealth
  3. Once it finishes, copy and paste the following into the command-prompt window and press Enter. If prompted to overwrite the existing file go ahead.
    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  4. Once this has completed please go to your Desktop and you will find CBS.txt => Please zip/upload to this thread.
    Please Note:: if the file is too big (over 7MB) to upload to your next post, please upload via a service such as One Drive or SendSpace and just provide the link.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hi. DISM came up with error code 1812. Can an error in the user profile also cause these problems? I noticed that there are user profiles in the registry named 'E N D' and 'MINECRAFT' as well as user folders with the same names. However, in the Win 8 log in screen, only 'EVERYONE' and 'DeadloxMC' as well as Administrator are available. There are no user folders named 'EVERYONE' and 'DeadloxMC'.

Thanks.

cbs.zip - Google Drive
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Please delete the existing CBS.log file and re-run DISM. If it fails, attach a fresh CBS.log. Interesting. I'll have a look at some point if it turns out to be related.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

I tried deleting it and a pop up said "This action cannot be completed because the file is open in TiWorker.exe". How do I delete the CBS.log file?
Thanks.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Try rebooting and try again. If it doesn't help, please run DISM again and attach the resulting CBS.log once again.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hi. Deleting CBS.log still didn't work. I tried searching about. Could you check the article in the link below and see if I could do the steps suggested? I already have 5 of these "CbsPersist_20171125152144.cab" files in the CBS folder. 2 of them are more than 200 MB and the others are more than 15 MB in size. Thanks.

cbs.zip - Google Drive

Windows 7 log file compression bug can fill up your hard drive | Computerworld
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hi, softwaremaniac. I won't be able to work on the PC during the weekends. I'll be back on Monday. Thank you for taking time to help.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

You could try that, but make sure you re-enable the service afterwards.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Yes I will try it, but not now because I'm not feeling well. Please don't close this thread yet. I'll be back in a couple of days. Thanks.
 
Re: [W8 x64] SFC unable to fix some corrupt files; DISM error code 1812. Lenovo H520s

Hi. I'm sorry it took me some time to get back to this.
I did a clean boot and was able to delete CBS.log, then I ran DISM /Restorehealth and came up with error code 1812. I restarted the PC and ran DISM again - same result, error 1812.
I've added a link to the latest CBS.txt file.
Thank you.
cbs.txt - Google Drive
 

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

Back
Top