none
MDT Custom Task Sequence is failing with error -2147467259 0x80004005 RRS feed

  • Question

  • Hi all,

    First some background, I want to deploy Windows 10 1903 with MDT and AutoPilot. This is possible with a custom task. I found this article https://osddeployment.dk/2018/12/08/how-to-deploy-autopilot-device-fast-with-mdt/.

    Short version, create a new custom Task Sequence and add a few steps in the Task Sequence:

    1. Gather local (Set a new Customsettings.ini (optional))
    2. Format and Partition Disk (BIOS) (Only use this if the devices do not support UEFI)
    3. Format and Partition Disk (UEFI)
    4. Copy scripts (Step from a standard MDT Task Sequence)
    5. Configure (Step from a standard MDT Task Sequence)
    6. Install Operating System
    7. Apply the AutopilotConfigurationFile.json to the new device
    8. Delete unattend.xml
    9. Copy a SetupComplete.cmd to run some post cleanup after MDT
    10. Restart computer so that the device will end up in OOBE for the end user

    The Task Sequence is failing on number 5. This task look like this:

    I have checked the SMSTS log and found this part:

    Set a global environment variable _SMSTSLogPath=X:\WINDOWS\TEMP\SMSTSLog	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Expand a string: cscript.exe “%SCRIPTROOT%\ZTIConfigure.wsf"	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Expand a string: 	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Start executing the command line: cscript.exe “%SCRIPTROOT%\ZTIConfigure.wsf"	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    !--------------------------------------------------------------------------------------------!	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Expand a string: WinPEandFullOS	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Executing command line: cscript.exe “%SCRIPTROOT%\ZTIConfigure.wsf"	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Process completed with exit code 1	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    !--------------------------------------------------------------------------------------------!	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Could not find CCM install folder. Don't use ccmerrors.dll	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Failed to run the action: Configure. 
    Unknown error (Error: 00000001; Source: Unknown)	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Executing in non SMS standalone mode. Ignoring send a task execution status message request	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Set a global environment variable _SMSTSLastActionRetCode=1	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Set a global environment variable _SMSTSLastActionSucceeded=false	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Clear local default environment	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    Failed to run the action: Configure. Execution has been aborted	TSManager	15-8-2019 17:05:15	1856 (0x0740)
    

    This part is the strange part: 

    Expand a string: cscript.exe “%SCRIPTROOT%\ZTIConfigure.wsf"

    It looks like the % is malformed... How can I fix that? The screenshot shows a correct %....

    Friday, August 16, 2019 10:47 AM

Answers

  • Try deleting the whole line and type it back in by hand. It is probably a special character in the white space or the opening quotation mark. A case of bad copy paste maybe?
    • Marked as answer by Koosvd Friday, August 23, 2019 8:34 AM
    Friday, August 16, 2019 5:34 PM

All replies

  • Try deleting the whole line and type it back in by hand. It is probably a special character in the white space or the opening quotation mark. A case of bad copy paste maybe?
    • Marked as answer by Koosvd Friday, August 23, 2019 8:34 AM
    Friday, August 16, 2019 5:34 PM
  • Replace the File & Check Command line most probably issue is with quotation mark. You have slightly missed something during Copy Paste😉
    Saturday, August 17, 2019 10:23 AM