[SOLVED] Windows 10 DISM.exe /online /Cleanup-Image /RestoreHealth Error:582

sfried

Active member
Joined
Jan 6, 2016
Posts
35
After Running the usual Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase on the Admin Command Prompt after a Windows Update, I noticed it gave me an Error 1. On my second attempt, it gave me an Error 87.

I decided to look up the other advance DISM.exe commands such as /ScanHealth /CheckHealth and /RestoreHealth. I also downloaded the SFCFix program from MajorGeeks.com for good measure, and it seems the final error it keeps detecting is Error 582 "An illegal character was encountered..."

Here's a transcript of my latest attempt:
Code:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 1

Incorrect function.

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

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 582

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

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

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 582

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

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

C:\WINDOWS\system32>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 99% complete.

Windows Resource Protection did not find any integrity violations.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /CheckHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

No component store corruption detected.
The operation completed successfully.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 582

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

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

C:\WINDOWS\system32>

I did also execute "sfc /scannow" with Windows not finding any integrity violations.

Here's the log of my SFCfix:
Code:
SFCFix version 2.4.5.0 by niemiro.
Start time: 2016-01-06 15:33:02.997
Microsoft Windows 8.1  - amd64
Not using a script file.




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




Successfully processed all directives.
SFCFix version 2.4.5.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-01-06 15:38:40.577
----------------------EOF-----------------------

Included is my dism.log file. I would appreciate the assistance!
 

Attachments

Hi sfried :)

My name is Aura and I'll be assisting you with your issue. I'll ask you to run DISM again and provide but the CBS.log and DISM.log this time so I can identify the issue :)

EndqYRa.png
DISM - Fixing Component Store Corruption
Follow the instructions below to run a DISM operation on your system.
  • On Windows 8, drag your cursor in the bottom-left corner, and right-click on the metro menu preview, then select Command Prompt (Admin);
  • On Windows 8.1, right click on the Windows logo in the bottom-left corner and select Command Prompt (Admin);
  • Enter the command below and press on Enter;
    Code:
    DISM /Online /Cleanup-Image /RestoreHealth
  • Let the scan run until the end (100%). Depending on your system, it can take some time;
  • Copy the C:\Windows\Logs\DISM folder and C:\Windows\Logs\CBS\CBS.log file on your Desktop, then right-click on it, go to Send to... and select Compressed .zip archive;
  • Upload the file on Dropbox, Google Drive or OneDrive and post the download URL for it here;
Note: Please note that the CBS.log is volatile, which means that if you don't upload it after the DISM scan is completed, it won't contains the information from the scan anymore. So archive it and upload it as soon as you can.
 
https://www.dropbox.com/s/97ekaggm0pfr171/CBS.zip?dl=0
https://www.dropbox.com/s/5r7kdb0ty2z4ufb/dism.zip?dl=0

Code:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>DISM /Online /Cleanup-Image /RestoreHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 582

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

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

C:\WINDOWS\system32>
Edit: Uploaded the correct files.
Edit2: Fixed url redirection.
 
Follow the instructions below please.

myjIXnC.png
SFCFix - Fix Time

WARNING! The following fix is specific to the user's system in this thread. No one else should follow the instructions below to apply that fix, as it could damage your system. If you need assistance with an issue, please start a new thread and someone will assist you shortly.

Follow the instructions below to download and execute a SFCFix fix, and provide the log.
  • Download SFCFix and move the executable on your Desktop;
  • On your Desktop, right-click and select New, then Text Document. Give it the name SFCFixScript (it should be a .txt) extension;
  • Open the SFCFixScript.txt file you just created, and copy/paste the following in it;
    Code:
    BitShift::
  • Save any work you have open, and close every programs;
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it;
    1p8eDnI.gif
  • SFCFix will launch, let it complete;
  • Once done, a file will appear on your Desktop, called SFCFix.txt;
  • Open the file, then copy and paste its content in your next reply;
 
Code:
SFCFix version 2.4.5.0 by niemiro.
Start time: 2016-01-10 17:41:58.646
Microsoft Windows 8.1  - amd64
Using .txt script file at C:\Users\Owner\Desktop\SFCFixScript.txt [0]




BitShift::
Corrupt Registry Key Detected: HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_netfx35linq-addiÞutil_31bf3856ad364e35_10.0.10586.0_none_57a3d1808db30e54
Corrupt Registry Key Detected: HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_netfx35linq-default_win32manifest_31bf386ad364e35_10.0.10586.0_none_f22ccf1de2462e90
Corrupt Registry Value Detected: HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_netfx35cdf-system.workflowservicjs_31bf3856ad364e35_10.0.10586.0_none_f46c04b692f1b96f:c!microsoft-w.?-deployment_31bf3856ad364e35_10.0.10586.0_678c84aa9f9439af
Corrupt Registry Value Detected: HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_netfx35linq-addinprocess_31bf3856ad364e35_10.0.10586.0_none_bd1cc320f712341f:c!microsoft-w..-deployment_31b?3856ad364e35_10.0.10586.0_678c84aa9f9439af
BitShift:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.5.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-01-10 17:42:02.083
Script hash: hBI6Mql4H4Bclpn1EppfVE6OvuMnGbPTS9YilWvhfmA=
----------------------EOF-----------------------
 
Good! What we'll do next is that you'll send me a copy of your COMPONENTS Hive, I'll edit it to remove the bad keys and replace them by the good ones, and then I'll send you the new copy and you'll change your current Hive with the new one.

88fYBWt.png
Retrieving the COMPONENTS Hive
Follow the instructions below to retrieve your COMPONENTS Hive and send me it.
  • Open your Windows Explorer, and navigate to the C:\Windows\System32\Config folder;
  • In this folder, find the COMPONENTS file (there's no extension), and copy it to your Desktop;
    Note: If you receive an error message saying that the COMPONENTS file is in use, restart your computer and try again. If the error message persist, let me know.
  • Right-click on it, and select Send to... and choose Compressed (zipped) folder;
  • Upload the file on Dropbox, Google Drive or OneDrive and post the download URL for it here;
 
Alright, follow the instructions below please.

88fYBWt.png
Replacing the COMPONENTS Hive
Follow the instructions below to replace the COMPONENTS Hive.
  • Download the attached COMPONENTS.zip file, and save it on your Desktop;
  • Right-click on it, and select Extract all.... Once done, the folder with the COMPONENTS file will open. This will be your new COMPONENTS Hive.
  • Navigate to the C:\Windows\System32\config folder;
  • In it, find the COMPONENTS file and rename it to COMPONENTS_bak;
    Note: If you receive a message saying that the file is in use, restart your computer and try again.
  • Once done, copy the new COMPONENTS file I sent you in the C:\Windows\System32\config folder;
COMPONENTS.zip
 
Code:
SFCFix version 2.4.5.0 by niemiro.
Start time: 2016-01-11 16:00:34.659
Microsoft Windows 8.1  - amd64
Not using a script file.




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




Successfully processed all directives.
SFCFix version 2.4.5.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-01-11 16:02:25.019
----------------------EOF-----------------------

with script:
Code:
SFCFix version 2.4.5.0 by niemiro.
Start time: 2016-01-11 16:03:13.376
Microsoft Windows 8.1  - amd64
Using .txt script file at C:\Users\Owner\Desktop\SFCFixScript.txt [1]




BitShift::
No corruptions detected.
BitShift:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.5.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-01-11 16:03:16.358
Script hash: hBI6Mql4H4Bclpn1EppfVE6OvuMnGbPTS9YilWvhfmA=
----------------------EOF-----------------------
 
Here's an update on the situation. Apparently it's still giving me errors:
Code:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 1

Incorrect function.

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

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /CheckHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

No component store corruption detected.
The operation completed successfully.

C:\WINDOWS\system32>
C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 582

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

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

C:\WINDOWS\system32>

I ran SFCFix just to be sure:
Code:
SFCFix version 2.4.5.0 by niemiro.
Start time: 2016-01-11 16:26:01.929
Microsoft Windows 8.1  - amd64
Using .txt script file at C:\Users\Owner\Desktop\SFCFixScript.txt [2]




BitShift::
No corruptions detected.
BitShift:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.5.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-01-11 16:26:04.878
Script hash: hBI6Mql4H4Bclpn1EppfVE6OvuMnGbPTS9YilWvhfmA=
----------------------EOF-----------------------
 
I ran your COMPONENTS Hive against one of our in-house tool to detect corruption in the Registry, and there's three entries that are still corrupt. I have the export of two of the keys, but I asked my colleagues for the 3rd one since they are from Windows 10 TH2 and I'm still on Windows 10 RTM. It shouldn't be long :)

TcqUod9.png
 
Alright, this should do the trick :)

88fYBWt.png
Replacing the COMPONENTS Hive
Follow the instructions below to replace the COMPONENTS Hive.
  • Download the attached COMPONENTS.zip file, and save it on your Desktop;
  • Right-click on it, and select Extract all.... Once done, the folder with the COMPONENTS file will open. This will be your new COMPONENTS Hive.
  • Navigate to the C:\Windows\System32\config folder;
  • In it, find the COMPONENTS file and rename it to COMPONENTS_bak;
    Note: If you receive a message saying that the file is in use, restart your computer and try again.
  • Once done, copy the new COMPONENTS file I sent you in the C:\Windows\System32\config folder;
COMPONENTS.zip
 
I'm not sure if this is considered fixed, but:
Code:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /CheckHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

No component store corruption detected.
The operation completed successfully.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

[==========================100.0%==========================]
No component store corruption detected.
The operation completed successfully.

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 1

Incorrect function.

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

C:\WINDOWS\system32>Dism.exe /online /Cleanup-Image /ScanHealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

[==========================100.0%==========================]
No component store corruption detected.
The operation completed successfully.

C:\WINDOWS\system32>
 
Looks fixed to me, but you can send the CBS.log and DISM.log so I can take a look at them.
 
https://www.dropbox.com/s/qsycmrxq0065z7f/CBS.zip?dl=0
https://www.dropbox.com/s/np2u63vu4xs2jo1/DISM.zip?dl=0

Edit:
I ran SFCFix with script again:
Code:
SFCFix version 2.4.5.0 by niemiro.
Start time: 2016-01-11 18:37:47.664
Microsoft Windows 8.1  - amd64
Using .txt script file at C:\Users\Owner\Desktop\SFCFixScript.txt [3]




BitShift::
No corruptions detected.
BitShift:: directive completed successfully.




Successfully processed all directives.
SFCFix version 2.4.5.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2016-01-11 18:37:50.987
Script hash: hBI6Mql4H4Bclpn1EppfVE6OvuMnGbPTS9YilWvhfmA=
----------------------EOF-----------------------

Has Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase been replaced with a new command?
 
There's nothing wrong with the /RestoreHealth output in the CBS.log.
Code:
=================================
Checking System Update Readiness.


Summary:
Operation: Detect only 
Operation result: 0x0
Last Successful Step: CSI store detection completes.
Total Detected Corruption:	0
	CBS Manifest Corruption:	0
	CBS Metadata Corruption:	0
	CSI Manifest Corruption:	0
	CSI Metadata Corruption:	0
	CSI Payload Corruption:	0
Total Repaired Corruption:	0
	CBS Manifest Repaired:	0
	CSI Manifest Repaired:	0
	CSI Payload Repaired:	0
	CSI Store Metadata refreshed:	True

Total Operation Time: 157 seconds.
It's clean. Also the command you are looking for is:
Code:
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
So now it hasn't been replaced.
 
I just tried the command you gave right now. It still gives me an Error: 1 Incorrect function:
Code:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

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

Error: 1

Incorrect function.

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

C:\WINDOWS\system32>
 
I've tried all other checks and everything seems fine save for that one error from DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase . It doesn't usually give me this error so I'm still wondering what could be causing it.
 
Back
Top