none
Task Sequence to restart after final task is complete RRS feed

  • Question

  • I've been using MDT for a while and I wanted to know if I can create a task sequence variable to restart the computer after all tasks have been completed?

    I had to remove the FinishAction=Reboot in the custom.ini file for a special task sequence, but I still want all my other TS to continue to reboot once finished.  Can I add a task sequence variable to each task sequence to get them to reboot when finished?

    Thanks,

    Michael

    Thursday, November 17, 2016 12:01 AM

Answers

  • I would suggest leaving FinishAction=Reboot in the customsettings.ini and then just changing the variable for the one TS you don't want to reboot.

    You can add a task sequence variable directly to your task sequence as it will take priority over the value in customsettings.ini


    If this post is helpful please vote it as Helpful or click Mark for answer.

    • Marked as answer by MIKER123 Friday, November 18, 2016 2:44 AM
    Thursday, November 17, 2016 3:26 PM

All replies

  • I would suggest leaving FinishAction=Reboot in the customsettings.ini and then just changing the variable for the one TS you don't want to reboot.

    You can add a task sequence variable directly to your task sequence as it will take priority over the value in customsettings.ini


    If this post is helpful please vote it as Helpful or click Mark for answer.

    • Marked as answer by MIKER123 Friday, November 18, 2016 2:44 AM
    Thursday, November 17, 2016 3:26 PM
  • Thank you so much. That's exactly what I'm looking for.
    Friday, November 18, 2016 2:44 AM
  • Stupid follow up question..does that variable have to be in a certain location in the task sequence?  I always wondered if the task sequence variables directly in the task sequence were in any specific order.
    Friday, November 18, 2016 2:03 PM
  • I prefer to set them at the beginning, but really so long as you set the variable before that action is processed/performed then it'll work.

    You could easily set the finish action variable first and then set an OU location or vice versa it doesn't matter


    If this post is helpful please vote it as Helpful or click Mark for answer.


    • Edited by Dan_Vega Friday, November 18, 2016 2:17 PM
    Friday, November 18, 2016 2:14 PM