Can you have Reboots in a Task Chain in the K1000

I have to deploy 3 of the Autodesk viewers.  They require a reboot between each of the installs or the others will not install successfully.  Can I use Task Chains to install each viewer and reboot after?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Hobbsy 2 years ago
Red Belt

There is no option to add a reboot into a task chain as far as I can see, however, if you think a little laterally you can now add a reboot to a script. So think about using a script that can be created with a reboot and adding that to your task chain, that may just work.

Posted by: psagert 2 years ago
Senior White Belt

I've created a script that reboots a machine, added it to a task chain and it works really well. You could even have it in there a few times and I think it would work. My KACE system is pretty new, but there was a sample of the script already in the KACE when I received it, I just tweaked it a bit then used it in my task chain.

  • For me, the next step after the reboot doesn't appear to wait until the machine is back up; it just runs immediately, and upon not finding a machine out there (while it's rebooting), fails.

    There doesn't seem to be a way to tell the task chain to wait for the reboot to finish before moving on to the next task.

    (And what's with these narrow field boxes that don't show the whole name of the script?!) - kentwest 2 years ago
    • I'm also seeing this issue with the reboots, It runs the notify/reboot script but then immediately runs the next task - pfletcher 1 year ago
      • I'm having the same problem.

        What I'm currently experimenting with and having success with is adding a scripted step that waits for 120 seconds by pinging Adding this scripted step in there seems to give a bit of buffer that prevents the next task from executing before the system reboots.

        I basically just created a script called wait 120 seconds that have a batch script with the command below that's set to continue on error and wait for completion.
        I then placed this script before the task that requires the reboot to have finished. It's kind of an ugly workaround but has worked on my limited tests so far.

        ping -n 120 >NUL 2>&1

        I'm guessing the inconsistent behavior I've seen on this has to do with the speed of hardware and number of processes/services that need to be stopped during system shutdown as more would provide more time for the KACE agent to move to the next task.

        My TaskChain workflow looks like this.
        - Scripted software install or removal, which includes the command shutdown.exe -r -f -t 15 at the end of the script.
        - Scripted wait for 120 seconds. (system will usually reboot while this script is running but it will report as complete nonetheless)
        - Scripted software install (Configured to run on next connection if offline). - Kiyolaka 1 year ago
      • Update: What I mentioned above sort of worked until I began running the task chains against slower hardware, I think I resolved the issue by adding another two minute wait, after the reboot. Systems were trying to run the scripts after they had rebooted and begun downloading the dependencies, the depency download was getting interrupted and failing. I need to look into it more but I think what is happening is that the KACE agent may be briefly losing connection after the user account was automatically logged in. I'm however still doing trials and fiddling. - Kiyolaka 1 year ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ