ZTI ERROR - Unhandled error returned by LTISysprep: The system cannot find the file specified. Command completed, return code = -2147467259

scott Milch 1 Reputation point
2022-09-16T16:25:31.387+00:00

i am trying to create a reference Computer and then sysprep to use to deploy. I have a Standard Task sequence to install the OS and Some applications

I am using MDT 6.3.8456.1000 with ADK 10.1.22000.1. this is a new install . everything runs fine until Sysprep runs and then it fails this is from the BDD.LOG also attached

I boot the machine from a USB disk connected to the deployment share and run the wizard . In the wizard i tell it to capture and sysprep. after the machine install all the apps i see it writting a file to the dployment share and then the machine reboots . I keep the usb drive in the machine to boot off it and i see the task continues , but sysprep fails immediate

If I don't choose sysprep and capture and run sysprep from the windows \system 32 folder it run fine 241973-bdd.log

<![LOG[About to run command: X:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /quit /unattend:X:\windows\system32\sysprep\unattend.xml]LOG]!><time="08:53:25.000+000" date="09-16-2022" component="LTISysprep" context="" type="1" thread="" file="LTISysprep">
<![LOG[ZTI ERROR - Unhandled error returned by LTISysprep: The system cannot find the file specified.
(-2147024894 0x80070002)]LOG]!><time="08:53:25.000+000" date="09-16-2022" component="LTISysprep" context="" type="3" thread="" file="LTISysprep">

i checked this location and the sysprep.exe file is not there , so I'm guessing that's why its failing

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Simon Ren-MSFT 40,341 Reputation points Microsoft External Staff
    2022-09-19T10:45:49.317+00:00

    Hi,

    Similar thread for your reference:
    Unhandled error returned by LTIsysprep: The system cannot find the file specified

    Thanks for your time.

    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.

    0 comments No comments

  2. scott Milch 1 Reputation point
    2022-09-19T12:13:46.663+00:00

    Thanks , But after a few hours of research I discovered that this particular issue was being caused by Bitlocker being enabled . I found an entry in the setupact.log i was able to get around this problem by adding a PowerShell command Under the state restore. Disable-Botlocker -MountPoint "C"

    Unfortunately I have another problem dur to windows 11 that I'm working out which is in this article

    https://answers.microsoft.com/en-us/windows/forum/all/windows-11-mdt-sysprep-failure-onedrive/50aeb66f-0b32-4f6b-b3ae-57c1411dc756.

    Its always An Adventure with MDT

    0 comments No comments

  3. Simon Ren-MSFT 40,341 Reputation points Microsoft External Staff
    2022-09-20T11:01:03.003+00:00

    Hi,

    Thanks very much for your feedback. We're glad that the ZTI error is gone now. It's appreciated that you could click "Accept Answer" to the helpful reply, this will help other users to search for useful information more quickly. Here's a short summary for the problem.

    Problem/Symptom:
    Sysprep failed with error "The system cannot find the file specified. Command completed, return code = -2147467259" in the latest MDT.

    Solution/Workaround:
    The issue was being caused by Bitlocker being enabled. To get around this problem by adding a PowerShell command Under the state restore: Disable-Botlocker -MountPoint "C"

    About the OneDrive issue, you can refer to:
    Unable to open OneDrive on images using Sysprep

    Thanks again 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.

    0 comments No comments

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.