Error 0x80004005 during OSD Apply Operating System

OSD build and capture of win7 x64 fails with 0x80004005 error during Apply Operating System (at the very end according to progress bar).  There is no smstslog to be found on the HDD whatsoever.

c:\_SMSTaskSequence\Logs\Smstslog\smsts.log (no log folder in _SMSTaskSequence)

c:\windows\sysWOW64\ccm\logs\Smstslog\smsts.log (no ccm folder because sccm agent hasn't been installed yet)

Really stuck here....any help would be appreciated

March 25th, 2015 8:35am

4005 error is a generic failure error.

There must be a smsts.log on your HD. Open a command prompt and search it : c:\> dir smsts.log /s

http://richardbalsley.com/location-of-smsts-log-when-using-configuration-manager-operating-system-deployment

Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 8:53am

If you need further assistance then post the smsts.log file once located.
March 25th, 2015 10:07am

Thanks guys, found it:

Successfully wiped C:\ ApplyOperatingSystem 3/24/2015 3:39:17 PM 1992 (0x07C8)
Applying image to C:\ ApplyOperatingSystem 3/24/2015 3:39:17 PM 1992 (0x07C8)
Applying image 2 to volume C: ApplyOperatingSystem 3/24/2015 3:39:17 PM 1992 (0x07C8)
Successfully applied image to C:\ ApplyOperatingSystem 3/24/2015 3:46:37 PM 1992 (0x07C8)
OfflineRegistry::Init("C:\Windows") ApplyOperatingSystem 3/24/2015 3:46:37 PM 1992 (0x07C8)
Loading offline registry hive "C:\Windows\system32\config\software" into HKLM\OfflineRegistry1 ApplyOperatingSystem 3/24/2015 3:46:37 PM 1992 (0x07C8)
Loading offline registry hive "C:\Windows\system32\config\system" into HKLM\OfflineRegistry2 ApplyOperatingSystem 3/24/2015 3:46:38 PM 1992 (0x07C8)
CurrentControlSet is mapped to ControlSet001 ApplyOperatingSystem 3/24/2015 3:46:39 PM 1992 (0x07C8)
System root for target OS is C:\Windows, System drive is C: ApplyOperatingSystem 3/24/2015 3:46:39 PM 1992 (0x07C8)
OS Version is 6.1 ApplyOperatingSystem 3/24/2015 3:46:39 PM 1992 (0x07C8)
Successfully loaded a source BCD boot system ApplyOperatingSystem 3/24/2015 3:46:39 PM 1992 (0x07C8)
SetupNewOS: Loaded source boot system from target volume "C:\" ApplyOperatingSystem 3/24/2015 3:46:39 PM 1992 (0x07C8)
!sBootDevicePath.empty(), HRESULT=80004005 (e:\nts_sccm_release\sms\framework\tscore\bootvolume.cpp,34) ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
System partition not set ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Unable to find the partition that contains the OS boot loaders. Please ensure the hard disks have been properly partitioned
Unspecified error (Error: 80004005; Source: Windows) ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Command line for extension .exe is "%1" %* ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Set command line: "bcdboot.exe" C:\Windows /l en-US ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Executing command line: "bcdboot.exe" C:\Windows /l en-US ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Process completed with exit code 15299 ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\framework\tscore\bcdbooter.cpp,88) ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Bcdboot failed! bcdboot.exe C:\Windows /l en-US failed (15299)
stdout:
Failure when attempting to copy boot files.
 
stderr:
  ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
TS::Boot::BcdBooter::InstallBootFilesAndConfigBCD (sTargetSystemRoot, this->defaultLanguage, sBootVolume), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1089) ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Unloading offline SOFTWARE registry hive ApplyOperatingSystem 3/24/2015 3:46:40 PM 1992 (0x07C8)
Unloading offline SYSTEM registry hive ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
SetupNewOs(&pBootSystem), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1850) ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
Configure(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,2028) ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
Installation of image 2 in package BMC0015E failed to complete.. 
Unspecified error (Error: 80004005; Source: Windows) ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
installer.install(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,2094) ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
Closing image file C:\_SMSTaskSequence\Packages\BMC0015E\Kiosk 20150324.wim ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
ReleaseSource() for C:\_SMSTaskSequence\Packages\BMC0015E. ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
reference count 1 for the source C:\_SMSTaskSequence\Packages\BMC0015E before releasing ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
Released the resolved source C:\_SMSTaskSequence\Packages\BMC0015E ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
InstallImage( g_InstallPackageID, g_ImageIndex, targetVolume, ImageType_OS, g_ConfigPackageID, g_ConfigFileName, bOEMMedia, g_RunFromNet ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\applyos.cpp,509) ApplyOperatingSystem 3/24/2015 3:46:42 PM 1992 (0x07C8)
Process completed with exit code 2147500037 TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
!--------------------------------------------------------------------------------------------! TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Failed to run the action: Apply Operating System. 
Unspecified error (Error: 80004005; Source: Windows) TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
MP server http://XXXXXX. CRL=false. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Setting authenticator TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Set authenticator in transport TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Sending StatusMessage TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Setting message signatures. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Setting the authenticator. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
CLibSMSMessageWinHttpTransport::Send: URL: XXXXXXXXXedu:80  CCM_POST /ccm_system/request TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Request was successful. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Set a global environment variable _SMSTSLastActionRetCode=-2147467259 TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Clear local default environment TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Let the parent group (Deploy Image) decides whether to continue execution TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Let the parent group (Check Confirmation Code) decide whether to continue execution TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Let the parent group (Install Operating System) decide whether to continue execution TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
The execution of the group (Install Operating System) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Failed to run the last action: Apply Operating System. Execution of task sequence failed.
Unspecified error (Error: 80004005; Source: Windows) TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
MP server http://XXXXXXXXX. Ports 80,443. CRL=false. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Setting authenticator TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Set authenticator in transport TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Sending StatusMessage TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Setting message signatures. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Setting the authenticator. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
CLibSMSMessageWinHttpTransport::Send: URL: XXXXXXX:80  CCM_POST /ccm_system/request TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Request was successful. TSManager 3/24/2015 3:46:42 PM 1392 (0x0570)
Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,923) TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
Task Sequence Engine failed! Code: enExecutionFail TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
**************************************************************************** TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
Task sequence execution failed with error code 80004005 TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
Cleaning Up. TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
Removing Authenticator TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
shKey.DeleteValue( c_szRegValue_SecurityToken ), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\ccmutillib\ccmutillib.cpp,1660) TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
Cleaning up task sequence folder TSManager 3/24/2015 3:53:30 PM 1392 (0x0570)
Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
hr, HRESULT=80070091 (e:\nts_sccm_release\sms\framework\core\ccmcore\ccmfile.cpp,1218) TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Failed to delete directory 'C:\_SMSTaskSequence' TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
(dwRet = ::SetNamedSecurityInfoW ((WCHAR*) pszObjectName, objectType, OWNER_SECURITY_INFORMATION, pOwnerSID, NULL, NULL, NULL)) == ERROR_SUCCESS, HRESULT=80070005 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,6675) TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
SetNamedSecurityInfo() failed. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
SetObjectOwner() failed. 0x80070005. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
SetObjectOwner (szFName, SE_FILE_OBJECT, c_szAdministrators), HRESULT=80070005 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,6772) TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,508) TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Successfully unregistered Task Sequencing Environment COM Interface. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Command line for extension .exe is "%1" %* TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Set command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Executing command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
==========[ TsProgressUI started in process 1136 ]========== TsProgressUI 3/24/2015 3:53:31 PM 1156 (0x0484)
Command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister TsProgressUI 3/24/2015 3:53:31 PM 1156 (0x0484)
Unregistering COM classes TsProgressUI 3/24/2015 3:53:31 PM 1156 (0x0484)
Unregistering class objects TsProgressUI 3/24/2015 3:53:31 PM 1156 (0x0484)
Shutdown complete. TsProgressUI 3/24/2015 3:53:31 PM 1156 (0x0484)
Process completed with exit code 0 TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Successfully unregistered TS Progress UI. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
g_TSManager.Run(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,766) TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,811) TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
GetTsRegValue() is unsuccessful. 0x80070002. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
End program: TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Error Task Sequence Manager failed to execute task sequence. Code 0x80004005 TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Sending error status message TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
MP server http://XXXXXXX. Ports 80,443. CRL=false. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Setting authenticator TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Set authenticator in transport TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Sending StatusMessage TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Setting message signatures. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Setting the authenticator. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
CLibSMSMessageWinHttpTransport::Send: URL: XXXXXXXXX:80  CCM_POST /ccm_system/request TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Request was successful. TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Finalize logging request ignored from process 1388 TSManager 3/24/2015 3:53:31 PM 1392 (0x0570)
Process completed with exit code 2147500037 TSMBootstrap 3/24/2015 3:53:31 PM 1364 (0x0554)
Task Sequence Manager returned code 0x80004005 TSMBootstrap 3/24/2015 3:53:31 PM 1364 (0x0554)
ThreadToResolveAndExecuteTaskSequence returned code 0x00000000 TSMBootstrap 3/24/2015 3:53:31 PM 720 (0x02D0)
ResolveProgressPage::OnWizardNext() TSMBootstrap 3/24/2015 3:53:31 PM 720 (0x02D0)
Activating Finish Page. TSMBootstrap 3/24/2015 3:53:31 PM 720 (0x02D0)
Exiting with return code 0x00000000 TSMBootstrap 3/24/2015 3:53:31 PM 720 (0x02D0)
Execution complete. TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493) TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335) TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553) TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,811) TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
GetTsRegValue() is unsuccessful. 0x80070002. TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
End program: TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
Finalizing logging from process 752 TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
Finalizing logs to root of first available drive TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)
Successfully finalized logs to C:\SMSTSLog TSBootShell 3/24/2015 3:53:31 PM 760 (0x02F8)


Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 10:12am

Appears to be something with drive partitioning.  only thing is I havent changed anything in TS or OS capture so not sure why this started happening all of a sudden
March 25th, 2015 10:13am

You're right, can you post your TS steps ?

Unable to find the partition that contains the OS boot loaders. Please ensure the hard disks have been properly partitioned

Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 10:16am

March 25th, 2015 10:22am

What's you Partition Disk 0 configuration?
Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 11:54am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics