Jump to content


lalajee

My TS fail with error code Error executing Task Sequence Manager service. Code 0x80004005

Recommended Posts

Hi,

When I apply TS  on some machine it crash the software centre and I can see following error in the logs 0x80004005

My TS has a powershell script which set a registry key and then copy some files based on that key

Error executing Task Sequence Manager service. Code 0x80004005

I try following things on an machine
1. Check BIOS Time
2. Apply All updates
3. Remove and reinstall SCCM client

SMSTS log
Expand a string: WinPEandFullOS TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Executing command line: OSDRunPowerShellScript.exe TSManager 20/01/2021 15:39:16 9960 (0x26E8)
[ OSDRunPSScript.exe ] RunPowerShellScript 20/01/2021 15:39:16 4932 (0x1344)
!sScriptName.empty(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\runpsscript\main.cpp,317) RunPowerShellScript 20/01/2021 15:39:16 4932 (0x1344)
Powershell script name must be specified RunPowerShellScript 20/01/2021 15:39:16 4932 (0x1344)
Process completed with exit code 2147500037 TSManager 20/01/2021 15:39:16 9960 (0x26E8)
!--------------------------------------------------------------------------------------------! TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Failed to run the action: Foundation Application Check.
Unspecified error (Error: 80004005; Source: Windows) TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Set authenticator in transport TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Set a global environment variable _SMSTSLastActionRetCode=-2147467259 TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Clear local default environment TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Let the parent group (PreChecks) decides whether to continue execution TSManager 20/01/2021 15:39:16 9960 (0x26E8)
The execution of the group (PreChecks) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Failed to run the last action: Foundation Application Check. Execution of task sequence failed.
Unspecified error (Error: 80004005; Source: Windows) TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Set authenticator in transport TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Task Sequence Engine failed! Code: enExecutionFail TSManager 20/01/2021 15:39:16 9960 (0x26E8)
TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Task sequence execution failed with error code 80004005 TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Cleaning Up. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Removing Authenticator TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Cleaning up task sequence folder TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Unable to delete file C:_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Failed to delete directory 'C:_SMSTaskSequence' TSManager 20/01/2021 15:39:16 9960 (0x26E8)
SetNamedSecurityInfo() failed. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
SetObjectOwner() failed. 0x80070005. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
RemoveFile() failed for C:_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
RemoveDirectoryW failed (0x80070091) for C:_SMSTaskSequence TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Deleting volume ID file C:_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Successfully unregistered Task Sequencing Environment COM Interface. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Executing command line: "C:\WINDOWS\CCM\TsProgressUI.exe" /Unregister TSManager 20/01/2021 15:39:16 9960 (0x26E8)
==========[ TsProgressUI started in process 14144 ]========== TsProgressUI 20/01/2021 15:39:16 5784 (0x1698)
Command line: "C:\WINDOWS\CCM\TsProgressUI.exe" /Unregister TsProgressUI 20/01/2021 15:39:16 5784 (0x1698)
Unregistering COM classes TsProgressUI 20/01/2021 15:39:16 5784 (0x1698)
Unregistering class objects TsProgressUI 20/01/2021 15:39:16 5784 (0x1698)
Shutdown complete. TsProgressUI 20/01/2021 15:39:16 5784 (0x1698)
Process completed with exit code 0 TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Successfully unregistered TS Progress UI. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Trying to restore client to the state it can be managed TSManager 20/01/2021 15:39:16 9960 (0x26E8)
CCMExec service startup type is set to enabled TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Modifying CCMExec Service to auto start. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
CCMExec Service started TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Waiting for CcmExec service to be fully operational TSManager 20/01/2021 15:39:16 9960 (0x26E8)
CcmExec service is up and fully operational TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Current Assigned Management Point is DP.com with Version 9012 and Capabilities: <Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities> ClientLocation 20/01/2021 15:39:16 9960 (0x26E8)
Successfully connected to MP DP.com:2244 TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Cleaning up any active TS requests in WMI. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Deleting CCM_TSExecutionRequest instance: CCM_TSExecutionRequest.RequestID="4bae2f33-7ef9-4fe1-85d7-be634d77b491". TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Removed 1 instance of CCM_TSExecutionRequest for tasksequence. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Cleaning up any maintenance task requests in WMI. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Deleting SMS_MaintenanceTaskRequests instance: SMS_MaintenanceTaskRequests.TaskID="{9777FA30-3D39-4A04-82C7-FA688160C574}". TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Deleting SMS_MaintenanceTaskRequests instance: SMS_MaintenanceTaskRequests.TaskID="{8B259B30-7D06-40D2-95FD-201AB40544F0}". TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Deleting SMS_MaintenanceTaskRequests instance: SMS_MaintenanceTaskRequests.TaskID="{4BAE2F33-7EF9-4FE1-85D7-BE634D77B491}". TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Deleting SMS_MaintenanceTaskRequests instance: SMS_MaintenanceTaskRequests.TaskID="{00186E9D-286A-4461-BDE7-54BA8CAD8B7B}". TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Removed 4 instances of SMS_MaintenanceTaskRequests for tasksequence. TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Start to cleanup TS policy TSManager 20/01/2021 15:39:19 9960 (0x26E8)
End Task Sequence policy cleanup TSManager 20/01/2021 15:39:19 9960 (0x26E8)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 20/01/2021 15:39:19 9960 (0x26E8)
GetTsRegValue() is unsuccessful. 0x80070002. TSManager 20/01/2021 15:39:19 9960 (0x26E8)
End program: TSManager 20/01/2021 15:39:19 9960 (0x26E8)
Error executing Task Sequence Manager service. Code 0x80004005 TSManager 20/01/2021 15:39:19 9960 (0x26E8)
Sending error status message TSManager 20/01/2021 15:39:19 9960 (0x26E8)
Set authenticator in transport TSManager 20/01/2021 15:39:19 9960 (0x26E8)
Successfully finalized logs to SMS client log directory from C:\WINDOWS\CCM\Logs TSManager 20/01/2021 15:39:19 9960 (0x26E8)

 

Share this post


Link to post
Share on other sites

according to your log, this is why it failed, I'm curious though, did you read the log ? :P

The execution of the group (PreChecks) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager 20/01/2021 15:39:16 9960 (0x26E8)
Failed to run the last action: Foundation Application Check. Execution of task sequence failed. 

The line in question that you need to investigate is: Failed to run the last action: Foundation Application Check. Execution of task sequence failed.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.