I am currently trying to change several "Set Task Sequence Variable" steps in an already existing Task Sequenz. The issue I am facing:
Set-CMTSStepSetVariable - I couldn't pinpoint what step to set. Piping each object didn't do the job and i couldn't find a positional parameter to pass. Set seemed to always effect the entire TS.
Add-CMTaskSequenceStep - seemed as the most promising solution. To remove the "Set Task Sequence Variable" step i want to update and adding the new step with the new value. The problem here. How to find the correct place to add the new step? I was unable to retrieve the necessary information from the TS.
So in general my question would be: How to update Task Sequenz objects via powershell?
And more specific how to update "Set Task Sequence Variable" Values via Powershell?
Looking forward to hearing from you.
Best Regards Justin :)