Multiple actions for SMSTSPostAction possible?

Question

Monday, February 6, 2017 8:24 PM

Can you run more than one action under SMSTSPostAction? How?

If not, can you set the Task Sequence Variable twice in an action? So for the first one you want to remove a network drive and the second one would reboot.

All replies (4)

Monday, February 6, 2017 10:05 PM ✅Answered | 1 vote

Hi,

You can run multiple commands, use a & between them in the same variable, you cannot set it twice then it is overwritten the second time.

Regards,
Jörgen

-- My System Center blog ccmexec.com -- Twitter @ccmexec


Monday, February 6, 2017 8:37 PM | 1 vote

Use a script or a batch file. You can put as many items as you need there.


Thursday, February 9, 2017 6:17 AM

Hi,

    You may have a look at this thread for a reference: http://serverfault.com/questions/675494/trying-to-run-2-commands-in-osd-sccm

Best Regards,

Ray

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Thursday, February 9, 2017 7:47 AM

... what Jörgen already said.

Torsten Meringer | http://www.mssccmfaq.de