How to fix error "Failed to run task sequence (0x80070005)" in MDT?

José Ygor Mendes 0 Reputation points
2023-05-08T18:59:33.78+00:00

I've been trying to deploy Windows 7/10/11 using MDT and during the task sequence, users can select the OU they want and join the domain. But when they select to join domain, when the installation finishes the post-installation task fails. It only happens when the computers join to a domain and OU, but, i've noticed that when the selected OU has no inheretance the post-installation task runs normally.

Here some logs from smsts.log and litetouchLiteTouch

SMSTS

IMG_20230421_184634

Is there a way to fix this, because i want the machines to join the domain.

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,612 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,794 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
919 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amit Singh 5,071 Reputation points
    2023-05-09T04:39:37.29+00:00

    Check to ensure the secure boot is turned on & legacy boot is turned off, and try again.

    Also check this article for help - https://learn.microsoft.com/en-us/troubleshoot/mem/configmgr/os-deployment/osd-task-sequence-fails-error-80070005


  2. Simon Ren-MSFT 37,866 Reputation points Microsoft Vendor
    2023-05-09T05:52:57.9866667+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    1,The error 0x80070005 means "Access is denied". Which user you are using to join domain, does the user have correct permissions?

    2,Please help check the c:\windows\debug\netsetup.log (detailed logging of join attempt) and c:\windows\setuperr.log (errors only) to see if there is any further information.

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.