Jump to content


Datafast

Start a task sequence when a client PC shutdown

Recommended Posts

Often happen when a windows update is deployed by task sequence that users following to use the PC interfere with the completion of the task ( it fails). I was wondering: is there a way to setup the task sequence (es: OS update) start when a client PC shutdown?

Edited by Datafast

Share this post


Link to post
Share on other sites

what exactly are you trying to accomplish ? you can use shutdown events in event viewer to trigger a scheduled task to run a powershell script, that would probably be better, but even so, when a computer starts shutting down, it shuts down services etc that you might need,

so again, what are you trying to solve here ?

Share this post


Link to post
Share on other sites

I have received this unusual request. In some circumstances when a tasksequence is deployed  (eg windows update) the installation is interrupted / disturbed  because at that time the user is forced to use the PC . The result is that the installation fails.
According with the request the goal to achieve would be to start the tasksequence installation  when the user turns off the PC ( that means when the pc is potentially available for the installation).

 

Share this post


Link to post
Share on other sites

Using PSDK (Powershell deployment toolkit) we added a step to create a scheduled task, after the reboot, the scheduled task is then removed.

The actual deployment

will copy the package down to the machine.  (If there was already a folder named it will rename the folder to "old".)

will create a scheduled task to run at next log on

will remove the task afterwards

 

created task.png

Edited by simmsman
more information

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.