While deploying the TS on the targeted machine we are experiencing Task Sequence failure on various steps. like before format the Hard Disk, after format the Hard Disk or post-Win-PE stage.
Below are the scenarios from where you can gather the required log file for further troubleshooting.
OSD log file locations:
Phase -Windows PE (Before the hard disk are formatted)
Location - "x:\windows\temp\smstslog\smsts.log"
Phase -Windows PE (After the hard disk are formatted)
Location - "x:\smstslog\smsts.log" and copied to "c:\_SMSTaskSequence\Logs\Smstslog\smsts.log"
Phase -Windows Operating System (Before the SCCM client is installed)
Location - "c:\_SMSTaskSequence\Logs\Smstslog\smsts.log"