Add variable for controlling smsts log files
Today, sccm will retain two copies of a task sequence log at most, and then truncate them when they reach a certain length.
It's possible to customize this but you need to bake a file into your boot wim image. This capability should be moved into the task sequence as a new variable.
Call it smsts_number_of_logs and SMSTS_LOG_ROLLOVE_LENGTH.
finally, zti_copylogs should be amended to copy all smsts log files, not just the first two, as it's written today.
Thanks for the feedback. Updating to Noted
Cody Lee Clements commented
Just want to add that with the frequency of ADK and ConfigMgr updates, this has become more annoying with time. Having a variable to increase the SMSTS.log file length would be really convenient to just set it and forget it.