<original title: Error running DISM.exe /Online /Cleanup-Image /RestoreHealth>
Hi all geeeky question here, I hope you could please help me sort this one out. :
Due to running into multiple issues with Windows Update (and done multiple times the "Repair Troubleshooter" ), ended up facing error 80070057 for multiple Windows Updates. (I have System Center Endpoint Protection on my system, but it is disabled, so no
other antivirus or third party running)
Decided to run DISM , and got report in Event Log of
"System store corruption detection and repair has completed. Status: 0x0, Total instances of corruption found: 2, total instances of corruption repaired: 0."
Of course, I ran
"DISM.exe /Online /Cleanup-Image /RestoreHealth"
and got
"
Error: 87
An error occurred while processing the command.
Ensure that the command-line arguments are valid. For more information, review t
he log file.
"
Dism.log states :
2014-12-28 10:28:21, Info DISM DISM Package Manager: PID=1016 TID=3640 Error in operation: (null) (CBS HRESULT=0x80070057) - CCbsConUIHandler::Error
2014-12-28 10:28:21, Error DISM DISM Package Manager: PID=1016 TID=4948 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80070057)
2014-12-28 10:28:21, Error DISM DISM Package Manager: PID=1016 TID=4948 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption - CDISMPackageManager::RestoreHealth(hr:0x80070057)
2014-12-28 10:28:21, Error DISM DISM Package Manager: PID=1016 TID=4948 Failed to restore the image health. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x80070057)
2014-12-28 10:28:21, Error DISM DISM Package Manager: PID=1016 TID=4948 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070057)
2014-12-28 10:28:21, Info DISM DISM Package Manager: PID=1016 TID=4948 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2014-12-28 10:28:21, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80070057
and cbs.log:
2014-12-28 10:28:15, Info CBS Not able to add current session file to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-12-28 10:28:15, Info CBS Not able to add pending.xml to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-12-28 10:28:15, Info CBS Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-12-28 10:28:15, Info CBS Not able to add SCM.EVM to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2014-12-28 10:28:20, Error CSI 0000000c (F) STATUS_INVALID_PARAMETER #245# from CCSDirect_IRtlComponentStore::EnumStoreCorruptions(...)[gle=0xd000000d]
2014-12-28 10:28:20, Error CSI 0000000d (F) E_INVALIDARG #244# from Windows::COM::CStorePendingStoreRepairTxn_IStorePendingStoreRepairTransaction::Detect(Flags = 5, cancelEvt = 384 (""), disp = 0)[gle=0x80070057]
2014-12-28 10:28:20, Error CBS Rept: Failed to call CSI detect. [HRESULT = 0x80070057 - E_INVALIDARG]
2014-12-28 10:28:20, Info CBS Failed to check CSI store. [HRESULT = 0x80070057 - E_INVALIDARG]
2014-12-28 10:28:20, Info CBS Ensure CBS corruption flag is clear
2014-12-28 10:28:20, Info CBS Ensure WCP corruption flag is clear
2014-12-28 10:28:20, Info CBS
=================================
Checking System Update Readiness.
Summary:
Operation: Detect and Repair
Operation result: 0x80070057
Last Successful Step: CBS 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: False
Total Operation Time: 199 seconds.
2014-12-28 10:28:20, Info CBS SQM: CheckSur: hrStatus: 0x80070057 [E_INVALIDARG], download Result: 0x0 [S_OK]
2014-12-28 10:28:20, Info CBS Count of times corruption detected: 0
2014-12-28 10:28:20, Info CBS Seconds between initial corruption detections: -1
2014-12-28 10:28:20, Info CBS Seconds between corruption and repair: -1
2014-12-28 10:28:21, Info CBS SQM: Upload requested for report: CheckSurSqm, session id: 142858, sample type: Standard
2014-12-28 10:28:21, Info CBS SQM: Ignoring upload request because the sample type is not enabled: Standard
2014-12-28 10:28:21, Info CBS Failed to run Detect and repair. [HRESULT = 0x80070057 - E_INVALIDARG]
2014-12-28 10:28:21, Info CBS Reboot mark cleared
2014-12-28 10:28:21, Info CBS Winlogon: Deregistering for CreateSession notifications
2014-12-28 10:28:21, Info CBS Winlogon: Stopping notify server
2014-12-28 10:28:21, Info CBS Winlogon: Unloading SysNotify DLL
2014-12-28 10:28:21, Info CBS Exec: Processing complete, session(Corruption Repairing): 30417536_661514780 [HRESULT = 0x80070057 - E_INVALIDARG]
2014-12-28 10:28:21, Error CBS Session: 30417536_661514780 failed to perform store corruption detect and repair operation. [HRESULT = 0x80070057 - E_INVALIDARG]
2014-12-28 10:28:21, Info CBS Session: 30417536_661514780 finalized. Reboot required: no [HRESULT = 0x80070057 - E_INVALIDARG]
2014-12-28 10:28:21, Info CBS Failed to FinalizeEx using worker session [HRESULT = 0x80070057]
2014-12-28 10:30:21, Info CBS Trusted Installer is shutting down because: SHUTDOWN_REASON_AUTOSTOP
2014-12-28 10:30:21, Info CBS TiWorker signaled for shutdown, going to exit.
2014-12-28 10:30:21, Info CBS Ending the TiWorker main loop.
2014-12-28 10:30:21, Info CBS Ending the TrustedInstaller main loop.
2014-12-28 10:30:21, Info CBS Starting TiWorker finalization.
2014-12-28 10:30:21, Info CBS Starting TrustedInstaller finalization.
2014-12-28 10:30:21, Info CBS Ending TrustedInstaller finalization.
2014-12-28 10:30:21, Info CBS Ending TiWorker finalization.
Thank you all for looking into this!