SCCM Task Sequence during execution failed. Log file smsts.log shows following error message:
Failed to set log directory. Some execution history may be lost. The system cannot find the file specified. (Error: 80070002; Source: Windows)
This error message points to MS Support site:
As it is specified in the article it explains that the issue is caused by multiple restarts inside the Windows Software Updates.
In this case was another restart after finishing Windows Software Updates TS step:
Failed to set log directory. Some execution history may be lost. The system cannot find the file specified. (Error: 80070002; Source: Windows)
This error message points to MS Support site:
In this case was another restart after finishing Windows Software Updates TS step: