MDT Build fails after domain join
Deploying windows 10 pro 20H2 via MDT. The build completes successfully if selected to join a work group, however it fails if selected to join the domain.
The build gets to the State Restore Phase and then errors out:
Start executing the command line: cscript.exe "%SCRIPTROOT%\LTIApply.wsf" /post TSManager 18/11/2020 10:18:15 4624 (0x1210)
!--------------------------------------------------------------------------------------------! TSManager 18/11/2020 10:18:15 4624 (0x1210)
Expand a string: TSManager 18/11/2020 10:18:15 4624 (0x1210)
Executing command line: cscript.exe "%SCRIPTROOT%\LTIApply.wsf" /post TSManager 18/11/2020 10:18:15 4624 (0x1210)
Process completed with exit code 1 TSManager 18/11/2020 10:18:15 4624 (0x1210)
!--------------------------------------------------------------------------------------------! TSManager 18/11/2020 10:18:15 4624 (0x1210)
Failed to run the action: Post-Apply Cleanup.
Incorrect function. (Error: 00000001; Source: Windows) TSManager 18/11/2020 10:18:15 4624 (0x1210)
The wizard.hta then just comes up blank white, no error message displayed.
Weirdly the machine has successfully joined the domain and is in the correct OU.