Task sequences had been running without any issues until recently. Now I'm getting Failed to open the Task Sequencing Environment. Code 0x80004005. every time I try to deploy the image to any of our computer models. I've already checked the BIOS clock,
diskpart and cleaned the hard drive, and created new boot media. Nothing really has changed in the environment. Any suggestions?
<![LOG[Failed to read installation type from environment.. Please ensure you are running this executable inside a properly configured OS Deployment task sequence.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="19:14:03.594+300" date="01-08-2016" component="OSDWinSettings" context="" type="3" thread="1456" file="infanswerfile.cpp:322">
<![LOG[OSD::Utility::BaseAnswerFile::CreateAnswerFile( pAnswerFile ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdwinsettings\osdwinsettings.cpp,363)]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="OSDWinSettings"
context="" type="0" thread="1456" file="osdwinsettings.cpp:363">
<![LOG[Failed to initialize answer file.]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="OSDWinSettings" context="" type="3" thread="1456" file="osdwinsettings.cpp:363">
<![LOG[ConfigureWinSettings(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdwinsettings\osdwinsettings.cpp,636)]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="OSDWinSettings" context=""
type="0" thread="1456" file="osdwinsettings.cpp:636">
<![LOG[Failed to open the Task Sequencing Environment. Code 0x80004005. Please ensure you are running this executable inside a properly configured OS Deployment task sequence.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="OSDWinSettings" context="" type="3" thread="1456" file="osdwinsettings.cpp:636">
<![LOG[Exiting with return code 0x80004005]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="OSDWinSettings" context="" type="1" thread="1456" file="osdwinsettings.cpp:646">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="commandline.cpp:1123">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900"
file="instruction.cxx:804">
<![LOG[Failed to run the action: Apply Windows Settings.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="instruction.cxx:895">
<![LOG[MP server http://SCCM-MANPOINT.netgroup.org. Ports 80,443. CRL=false.]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="utils.cpp:5881">
<![LOG[Setting authenticator]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="utils.cpp:5903">
<![LOG[Set authenticator in transport]LOG]!><time="19:14:03.609+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:7734">
<![LOG[Sending StatusMessage]LOG]!><time="19:14:03.625+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="libsmsmessaging.cpp:4023">
<![LOG[Setting message signatures.]LOG]!><time="19:14:03.625+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:1295">
<![LOG[Setting the authenticator.]LOG]!><time="19:14:03.625+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:1325">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: SCCM-MANPOINT.netgroup.org:80 CCM_POST /ccm_system/request]LOG]!><time="19:14:03.625+300" date="01-08-2016" component="TSManager" context="" type="1"
thread="900" file="libsmsmessaging.cpp:8604">
<![LOG[Request was successful.]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:8939">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=-2147467259]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="executionenv.cxx:807">
<![LOG[Let the parent group (Install Operating System) decides whether to continue execution]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900"
file="instruction.cxx:1004">
<![LOG[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)]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="instruction.cxx:217">
<![LOG[Failed to run the last action: Apply Windows Settings. Execution of task sequence failed.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="engine.cxx:213">
<![LOG[MP server http://SCCM-MANPOINT.netgroup.org. Ports 80,443. CRL=false.]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="utils.cpp:5881">
<![LOG[Setting authenticator]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="utils.cpp:5903">
<![LOG[Set authenticator in transport]LOG]!><time="19:14:03.656+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:7734">
<![LOG[Sending StatusMessage]LOG]!><time="19:14:03.672+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="libsmsmessaging.cpp:4023">
<![LOG[Setting message signatures.]LOG]!><time="19:14:03.672+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:1295">
<![LOG[Setting the authenticator.]LOG]!><time="19:14:03.672+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:1325">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: SCCM-MANPOINT.netgroup.org:80 CCM_POST /ccm_system/request]LOG]!><time="19:14:03.672+300" date="01-08-2016" component="TSManager" context="" type="1"
thread="900" file="libsmsmessaging.cpp:8604">
<![LOG[Request was successful.]LOG]!><time="19:14:03.703+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="libsmsmessaging.cpp:8939">
<![LOG[Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,923)]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager"
context="" type="0" thread="900" file="tsmanager.cpp:923">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="tsmanager.cpp:923">
<![LOG[****************************************************************************]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900"
file="tsmanager.cpp:953">
<![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="tsmanager.cpp:954">
<![LOG[Cleaning Up.]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="tsmanager.cpp:675">
<![LOG[Removing Authenticator]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="tsmanager.cpp:686">
<![LOG[shKey.DeleteValue( c_szRegValue_SecurityToken ), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\ccmutillib\ccmutillib.cpp,1660)]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context=""
type="0" thread="900" file="ccmutillib.cpp:1660">
<![LOG[Cleaning up task sequence folder]LOG]!><time="19:21:21.038+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="utils.cpp:2329">
<![LOG[Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing.]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900"
file="ccmfile.cpp:1056">
<![LOG[hr, HRESULT=80070091 (e:\nts_sccm_release\sms\framework\core\ccmcore\ccmfile.cpp,1218)]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900"
file="ccmfile.cpp:1218">
<![LOG[Failed to delete directory 'C:\_SMSTaskSequence']LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="2" thread="900" file="ccmfile.cpp:1218">
<![LOG[(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)]LOG]!><time="19:21:21.364+300"
date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="utils.cpp:6675">
<![LOG[SetNamedSecurityInfo() failed.]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="utils.cpp:6675">
<![LOG[SetObjectOwner() failed. 0x80070005.]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="utils.cpp:6687">
<![LOG[SetObjectOwner (szFName, SE_FILE_OBJECT, c_szAdministrators), HRESULT=80070005 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,6772)]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager"
context="" type="0" thread="900" file="utils.cpp:6772">
<![LOG[RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005.]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="3" thread="900" file="utils.cpp:6816">
<![LOG[RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="2" thread="900" file="utils.cpp:6900">
<![LOG[Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900"
file="resolvesource.cpp:506">
<![LOG[DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,508)]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context=""
type="0" thread="900" file="resolvesource.cpp:508">
<![LOG[Deleting volume ID file S:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900"
file="resolvesource.cpp:506">
<![LOG[DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,508)]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context=""
type="0" thread="900" file="resolvesource.cpp:508">
<![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="environmentlib.cpp:910">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="0" thread="900"
file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister]LOG]!><time="19:21:21.364+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900"
file="commandline.cpp:827">
<![LOG[==========[ TsProgressUI started in process 1732 ]==========]LOG]!><time="19:21:21.380+300" date="01-08-2016" component="TsProgressUI" context="" type="1" thread="1736" file="winmain.cpp:330">
<![LOG[Command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister]LOG]!><time="19:21:21.380+300" date="01-08-2016" component="TsProgressUI" context="" type="0" thread="1736"
file="winmain.cpp:332">
<![LOG[Unregistering COM classes]LOG]!><time="19:21:21.380+300" date="01-08-2016" component="TsProgressUI" context="" type="1" thread="1736" file="winmain.cpp:204">
<![LOG[Unregistering class objects]LOG]!><time="19:21:21.380+300" date="01-08-2016" component="TsProgressUI" context="" type="1" thread="1736" file="winmain.cpp:495">
<![LOG[Shutdown complete.]LOG]!><time="19:21:21.380+300" date="01-08-2016" component="TsProgressUI" context="" type="1" thread="1736" file="winmain.cpp:512">
<![LOG[Process completed with exit code 0]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="commandline.cpp:1123">
<![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="utils.cpp:2903">
<![LOG[g_TSManager.Run(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,766)]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="0"
thread="900" file="tsmanager.cpp:766">
<![LOG[::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,811)]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager"
context="" type="0" thread="900" file="utils.cpp:811">
<![LOG[RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="2" thread="900"
file="utils.cpp:811">
<![LOG[GetTsRegValue() is unsuccessful. 0x80070002.]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="2" thread="900" file="utils.cpp:842">
<![LOG[End program: ]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="1" thread="900" file="tsmanager.cpp:805">
<![LOG[Error Task Sequence Manager failed to execute task sequence. Code 0x80004005]LOG]!><time="19:21:21.395+300" date="01-08-2016" component="TSManager" context="" type="3"
thread="900" file="tsmanager.cpp:809">