Hi,
Hope all is well.
Yes, we can configure a capturing log task sequence group to copy the logs to a network share when a task sequence fails. Also note the use of the Task Sequence variable "_SMSTSLastActionSucceeded" to detect whether an error condition has been flagged when we reach this group.
Capturing logs during failed Task Sequence Execution
Capturing task sequence log files during OSD deployment.
Copy smsts.log automatically on a network share if error in OSD
The links are not from Microsoft, just for your reference.
If I can be of any assistance, please do not hesitate to contact me.
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.