I'm attempting to deploy Windows Server 2019 to a virtual machine and I keep getting this error message:
I suspect that the error is not actually at this stage, but I can't seem to track it down, and the SMSTS log is out of date.
Edit: Got the log, it looks like it's failing on trying to install the role outside of the OS, but in the task sequence, installing the role is in the post install group?
This script should only run in the full OS. ZTIOSRole 9/27/2019 1:01:29 PM 0 (0x0000)
ZTI ERROR - Non-zero return code by ZTIOSRole, rc = 1 ZTIOSRole 9/27/2019 1:01:29 PM 0 (0x0000)
Microsoft Deployment Toolkit version: 6.3.8450.1000 ztimovestatestore 9/27/2019 1:01:33 PM 0 (0x0000)
The task sequencer log is located at X:\WINDOWS\TEMP\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log. ztimovestatestore 9/27/2019 1:01:33 PM 0 (0x0000)
ztimovestatestore processing completed successfully. ztimovestatestore 9/27/2019 1:01:33 PM 0 (0x0000)
Microsoft Deployment Toolkit version: 6.3.8450.1000 zticopylogs 9/27/2019 1:01:35 PM 0 (0x0000)
The task sequencer log is located at X:\WINDOWS\TEMP\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log. zticopylogs 9/27/2019 1:01:35 PM 0 (0x0000)
Unable to copy log to the network as no SLShare value was specified. zticopylogs 9/27/2019 1:01:35 PM 0 (0x0000)
No system restore needed, WMI object not present. zticopylogs 9/27/2019 1:01:35 PM 0 (0x0000)
Cleaning up default wallpaper registry keys zticopylogs 9/27/2019 1:01:35 PM 0 (0x0000)
zticopylogs processing completed successfully. zticopylogs 9/27/2019 1:01:35 PM 0 (0x0000)
You do not have a reboot after installing your OS, Add a reboot computer step so that it boots from disk and you should be good to go.
When you do go to reboot the computer, ensure that the MDT files are copied to disk so that the system doesn't just boot into the local admin account and not start MDT.