Windows Server 2012 Windows Update Error 80070246 + DISM Error 582 illegal character

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 attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - 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 SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.
 

Attachments

Here is the log file

Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2018-07-01 21:25:16.711
Microsoft Windows Server 2012  - amd64
Using .txt script file at C:\Users\Administrator\Desktop\SFCFixScript.txt [0]








RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14b4daa870cd3936c2f40a869737cf7b_31bf3856ad364e35_none_220460bee565e789\v!6.2.9200.20708.
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14e68e57974fc4fe7725287bcbd1f244_31bf3856ad364e35_none_5e7ded03d9c6646c\v!6.2.9200.20708.


WARNING: Failed to create backup for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14b4daa870cd3936c2f40a869737cf7b_31bf3856ad364e35_none_220460bee565e789\v!6.2.9200.20708.


Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14b4daa870cd3936c2f40a869737cf7b_31bf3856ad364e35_none_220460bee565e789\v!6.2.9200.20708.
WARNING: Failed to create backup for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14e68e57974fc4fe7725287bcbd1f244_31bf3856ad364e35_none_5e7ded03d9c6646c\v!6.2.9200.20708.


Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14e68e57974fc4fe7725287bcbd1f244_31bf3856ad364e35_none_5e7ded03d9c6646c\v!6.2.9200.20708.


Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14b4daa870cd3936c2f40a869737cf7b_31bf3856ad364e35_none_220460bee565e789\v!6.2.9200.20708.
Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\VersionedIndex\6.2.9200.21913 (win8_ldr.160622-0600)\ComponentFamilies\amd64_14e68e57974fc4fe7725287bcbd1f244_31bf3856ad364e35_none_5e7ded03d9c6646c\v!6.2.9200.20708.
RegistryScript:: directive completed successfully.








Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 10 datablocks.
Finish time: 2018-07-01 21:25:17.322
Script hash: 0pJO7ld4paUZEJfkfSvmFuuVBHhunu8Ll4sI2dPwIA8=
----------------------EOF-----------------------

Thanks!
 
Yes, but I'm not quite sure what you mean. Do you want a copy of the COMPONENTS file or an export of a registry hive?

Thanks!
 
I've made some repairs. Your hive is/was very corrupt!

It is very late and I'm tired, so I'll continue tomorrow!
Step 1 - Replace Components Hive Manually

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 COMPONENTS.ZIP and save to your desktop.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now we have the COMPONENTS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current COMPONENTS file and select rename. Rename it to COMPONENTS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Components folder on your desktop and paste it into C:\Windows\System32\config

Dropbox - COMPONENTS.zip

Step 2 - DISM /RestoreHealth Scan


  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. When DISM finishes scanning your component store, zip up and attach your CBS log to your next post:

    C:\Windows\Logs\CBS\CBS.log
 
That was a marked improvement. It still failed DISM, but this is the first time it has event started the scanning process. Here is the output of the DISM tool.

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.


C:\Windows\System32>Dism /Online /Cleanup-Image /RestoreHealth


Deployment Image Servicing and Management tool
Version: 6.2.9200.16384


Image Version: 6.2.9200.16384


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


Error: 582


An illegal character was encountered. For a multi-byte character set this includ
es a lead byte without a succeeding trail byte. For the Unicode character set th
is includes the characters 0xFFFF and 0xFFFE.


The DISM log file can be found at C:\Windows\Logs\DISM\dism.log


C:\Windows\System32>
C:\Windows\System32>

and here are the CBS logs.

https://providencecomputers-my.shar...hHuBoaFdjajYwBVOi5VO02GaOczh646EOmxg?e=AGlkwP

Thanks for your time!. Sleep well!
 
Step#1 - Retrieve Components Hive
1. Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
2. 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.
3. 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.


Step#2 - Export SideBySide



  1. Click on the Start button and in the search box, type regedit
  2. When you see regedit on the list, right-click on it and select Run as administrator
  3. When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide
  4. Once selected, click File > Export....
  5. Change the Save as type: to Registry Hive Files (*.*)
  6. Name this file SxS (with no file extension) and save it to your Desktop.

Upload both files please.
 
No, it still fails, but it takes longer to fail now. (Used to fail in around 5-10 second. It went for 2-3 minutes or so this time.)
 

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

Back
Top