June 7 2013

SCCM 2012 – Run action after Task Sequence is finished

In the past it has been fiddly to get an action to run after a SCCM Task Sequence has completed. Service Pack 1 of SCCM 2012 includes 7 new task sequence variables (http://technet.microsoft.com/en-us/library/hh273375.aspx), one of which is SMSTSPostAction.  This is extremely simple to use – just add a task sequence variable anywhere in the Task Sequence and this command will run after you task sequence completes. It’s simple and it works well. In my example below, I delete a directory after the task sequence completes:


I use a maximum of one Google Ad per post to help offset some of my blog hosting costs.


Tags: , , , , , , ,

Posted June 7, 2013 by danovich in category "SMS / SCCM


  1. Pingback: NeWay Technologies – Weekly Newsletter #46 – June 7, 2013 | NeWay

  2. By sirmovies on

    Is there anyway to show the message from the shutdown command? I use

    shutdown.exe /f /r /t 30 /c “Imaging process is almost done. Some background tasks will continue running after the reboot but you can start using the machine while they are finishing up the process.”

    The system reboots but no popup message is visible like it would if I run the command manually.

    Thank you,


Leave a Reply