none
Windows 10: MDT Sysprep and Capture Task Sequence Failure.

    Question

  • Sysprep and Capture task sequence fails when it tries to capture Windows 10 Professional.

    OS: Windows Server 2008 Enterprise 64bit

    MDT (6.3.8450.1000)

    Windows Assessment and Deployment Kit - Windows 10

    Windows Automated Installation Kit

    Operating System deployment did not complete successfully.

    Please review the log file to determine the cause of the problem.

    During the deployment process, 83 errors and 23 warnings were reported.

    Unexpected return code while re-arming Office 2010, RC = -1073425657

    Unexpected return code while re-arming Office 2013, RC = -1073425657

    Unexpected return code while re-arming Office 2016, RC = -1073425657

    Expected image state is IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE, actual image state is

    IMAGE_STATE_COMPLETE, sysprep did not succeed.

    FAILURE (6192): ERROR - Sysprep did not complete successfully, check

    C:\WIN DOWS\system32\sysprep\panther\setupact.log for details

    Litetouch deployment failed, Return Code = -2147467259 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegoueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnerO failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfo() failed.

    SetObjectOwnero failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsReg Val ue0 is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTs RegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfo0 failed.

    SetObjectOwner() failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Wednesday, May 16, 2018 8:07 AM

All replies

  • You could try adding 

     SkipRearm=YES

    to your CustomSetting.ini so that MDT skips the rearming of the Microsoft Office 2010 25-day activation grace period and you can get past the issue I am seeing in the log you posted above.


    Cheers,
    Anton

    Vacuum Breather Blog | Wing Commander Saga | Twitter

    Note: Posts are provided "AS IS" without warranty of any kind. If posts are helpful please don't forget to rate them as "Helpful" or as "Answer".


    • Edited by Anton Romanyuk Wednesday, May 16, 2018 9:33 AM forgot to mention that the property should be set in CS.ini
    Wednesday, May 16, 2018 9:31 AM
  • I have added in CustomSetting.ini but it is still failure. Always fail failed to run the action: Execute Sysprep. 

    Failure

    Operating system deployment did not complete successfully.

    Please review the log file to determine the cause of the problem.During the deployment process,

    123 errors and 30 warnings were reported.

    Details…

    Expected image state is IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE, actual image state is

    IMAGE_STATE_COMPLETE, sysprep did not succeed.

    FAILURE (6192): ERROR - Sysprep did not complete successfully, check

    C:\WIN DOWS\system32\sysprep\panther\setupact.log for details

    Litetouch deployment failed, Return Code = -2147467259 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnerü failed. 0x80070005.

    RegClueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegC2ueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylntoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegC2ueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002. Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsReg Val ueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnerO failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfo() failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows) Failed to run the last action: Execute Sysprep. Execution of task sequence failed. Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValue() is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine tailed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SM STSEnd Program

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005. RegC2ueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SM STSEnd Program

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005


    • Edited by EricLoh_96 Thursday, May 17, 2018 3:21 AM
    Thursday, May 17, 2018 3:14 AM
  • It is very hard to read logs in this format, could you upload them to a public hosting site? From what I gathered, you bypassed the first error and now facing issues with image resealing and to troubleshoot that you would need to examine Panther logs (as indicated by the log excerpt you posted above), The most common cause with Windows 8 or 10 images are app updates performed during image preparation. Check out these links: https://support.microsoft.com/en-us/help/2769827/sysprep-fails-after-you-remove-or-update-windows-store-apps-that-inclu + https://blogs.technet.microsoft.com/mniehaus/2018/04/17/cleaning-up-apps-to-keep-windows-10-sysprep-happy/

    Of course the root cause in your case may be different, but 95 percent of Windows 10 sysprep issues I am seeing here are related to apps being updated during OSD and interfering with SYSPREP.

    Cheers,
    Anton

    Vacuum Breather Blog | Wing Commander Saga | Twitter

    Note: Posts are provided "AS IS" without warranty of any kind. If posts are helpful please don't forget to rate them as "Helpful" or as "Answer".


    Thursday, May 17, 2018 6:16 AM
  • Failure
    Operating system deployment did not complete successfully.
    Please review the log file to determine the cause of the problem.During the deployment process,
    123 errors and 30 warnings were reported.
    Details…

    Expected image state is IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE, actual image state is

    IMAGE_STATE_COMPLETE, sysprep did not succeed.

    FAILURE (6192): ERROR - Sysprep did not complete successfully, check

    C:\WIN DOWS\system32\sysprep\panther\setupact.log for details

    Litetouch deployment failed, Return Code = -2147467259 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnerü failed. 0x80070005.

    RegClueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegC2ueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylntoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegC2ueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002. Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsReg Val ueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnerO failed. 0x80070005.

    RegCìueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfo() failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows) Failed to run the last action: Execute Sysprep. Execution of task sequence failed. Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SMSTSEndProgram

    GetTsRegValue() is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine tailed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoo failed.

    SetObjectOwnero failed. 0x80070005.

    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SM STSEnd Program

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    Failed to run the action: Execute Sysprep.

    Unknown error (Error: 00001830; Source: Unknown)

    The execution of the group (Capture Image) has failed and the execution has been aborted.

    An action failed.

    Operation aborted (Error: 80004004; Source: Windows)

    Failed to run the last action: Execute Sysprep. Execution of task sequence failed.

    Unknown error (Error: 00001830; Source: Unknown)

    Task Sequence Engine failed! Code: enExecutionFail

    Task sequence execution failed with error code 80004005

    SetNamedSecuritylnfoQ failed.

    SetObjectOwnero failed. 0x80070005. RegC2ueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence,

    SM STSEnd Program

    GetTsRegValueo is unsuccessful. 0x80070002.

    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

    • Edited by EricLoh_96 Friday, May 18, 2018 6:38 AM
    Friday, May 18, 2018 6:15 AM
  • Reposting the same (in terms of content) log file, will not get you anywhere :) One of the first lines in the log file suggests you examine C:\WIN DOWS\system32\sysprep\panther\setupact.log for possible causes why sysprep fails.

    Cheers,
    Anton

    Vacuum Breather Blog | Wing Commander Saga | Twitter

    Note: Posts are provided "AS IS" without warranty of any kind. If posts are helpful please don't forget to rate them as "Helpful" or as "Answer".


    Friday, May 18, 2018 6:32 AM
  • this error here:

    IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE

    Suggests a bad registry value. try modifying this registry key to read this:

    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State]
    "ImageState"="IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE"


    Jose Gonzalez

    Tuesday, February 19, 2019 7:07 PM
  • Your image is not generalized by the looks of it. Is this a custom image capture I'm assuming? If so, if any store apps have been run or updated or anything that is considered a "user account customization" then your sysprep stage will not run as it is not generalized.

    Best bet is to get the machine into sysprep audit mode before customizing the image, but not much use on your existing image.

    If you want to try and diagnose your existing image, try this:

    Run the Import-ModuleAppx PowerShell cmdlet.

    Run Import-Module Dism.

    Run Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation.

    In the output of this last cmdlet, check the users for whom the package is showing up as Installed. Delete these user accounts from the reference computer, or log on to the computer by using these user accounts.

    Then, run the cmdlet in step 4 to remove the Appx package.

    This command lists all packages that were published by Microsoft and installed by any user of that reference computer. Because the computer is to be sysprepped, we assume that these user profiles no longer require the package.

    If you have manually provisioned apps that belong to other publishers, run the following command to list them:

    Get-AppxPackage -AllUser | Format-List -Property PackageFullName,PackageUserInformation
    Run Remove-AppxPackage -Package <packagefullname>.

    Remove the provisioning by running the following cmdlet: 

    Remove-AppxProvisionedPackage -Online -PackageName <packagefullname>


    Check out our blog for helpful guides - https://blog.techygeekshome.info


    Tuesday, February 19, 2019 7:40 PM