Running “apply operating system” is failing with error code 0x80070241

Issue: – Running “apply operating system” is failing with error code 0x80070241 image The SMSTS.log looked like below <![LOG[Skipping C:_SMSTaskSequence for wipe]LOG]!><time="10:43:35.088+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="1" thread="896" file="ccmfile.cpp:983"> <![LOG[Calculating expected free space.]LOG]!><time="10:43:35.103+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="1336" file="installcommon.cpp:229"> <![LOG[Reporting deletion progress.]LOG]!><time="10:43:35.103+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="1336" file="installcommon.cpp:247"> <![LOG[Successfully wiped C:]LOG]!><time="10:43:35.119+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="1" thread="896" file="installcommon.cpp:860"> <![LOG[Applying image to C:]LOG]!><time="10:43:35.119+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="1" thread="896" file="installimage.cpp:709"> <![LOG[Applying image 1 to volume C:]LOG]!><time="10:43:35.134+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="1" thread="896" file="wimfile.cpp:511"> <![LOG[WIM error:C:Windowswinsxsx86_microsoft-windows-d..ndwritingrecognizer_31bf3856ad364e35_6.1.7600.16385_none_2bca79fd9bfe072amshwjpnrIME.dll. Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Error: 80070241; Source: Windows)]LOG]!><time="10:49:30.097+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="3" thread="1340" file="wimstate.cpp:193"> <![LOG[WIMApplyImage( hVolumeImage, const_cast<LPWSTR>(pathTargetVolume.c_str()), WIM_FLAG_VERIFY), HRESULT=80070241 (e:nts_sccm_releasesmsframeworktscorewimfile.cpp,557)]LOG]!><time="10:49:30.238+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="896" file="wimfile.cpp:557"> <![LOG[Unable to apply (0x80070241)]LOG]!><time="10:49:30.238+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="3" thread="896" file="wimfile.cpp:557"> <![LOG[this->imageFile.ApplyVolumeImage(imageIndex, this->targetVolume), HRESULT=80070241 (e:nts_sccm_releasesmsclientosdeploymentapplyosinstallimage.cpp,727)]LOG]!><time="10:49:30.300+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="896" file="installimage.cpp:727"> <![LOG[ApplyImage(), HRESULT=80070241 (e:nts_sccm_releasesmsclientosdeploymentapplyosinstallimage.cpp,1431)]LOG]!><time="10:49:30.300+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="896" file="installimage.cpp:1431"> <![LOG[Apply(), HRESULT=80070241 (e:nts_sccm_releasesmsclientosdeploymentapplyosinstallimage.cpp,1614)]LOG]!><time="10:49:30.316+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="896" file="installimage.cpp:1614"> <![LOG[Installation of image 1 in package CAS0017B failed to complete.. Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Error: 80070241; Source: Windows)]LOG]!><time="10:49:30.316+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="3" thread="896" file="installimage.cpp:1636"> <![LOG[installer.install(), HRESULT=80070241 (e:nts_sccm_releasesmsclientosdeploymentapplyosinstallimage.cpp,1689)]LOG]!><time="10:49:30.316+00" date="03-06-2014" component="ApplyOperatingSystem" context="" type="0" thread="896" file="installimage.cpp:1689"> Screenshot from trace32: image Steps tried, but failed to fix it:

  • Re-uploaded the entire WIM file
  • Uploaded the WIM by splitting the WIM to smaller size and smaller parts
  • At the failed phase tried to apply the WIM by using DISM/Imegex but the wim can be applied
  • Able to Mount and unmount the same WIM by Using DISM
  • Verified the WIM Hash file and matched exactly
  • Finally no clue how to proceed further
  • Tried to re-upload the WIM from FTP and created all new packages and tried
  • Downloaded the failed WIM to other SCCM Test system and tried to deploy by creating a test system and found same error at same phase this confirmed the issue with WIM but not sure how to confirm.

Solution:- We have recopied the Original WIM file by using ROBOCOPY and the issue was fixed. Thanks to ROBOCOPY

Leave a Comment