Skip to content

Start a task sequence when a client PC shutdown

Featured Replies

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

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 ?

  • Author

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).

 

We've done a scheduled task deployment to run at Log on to update VPN clients on endpoints (our company will not use the auto update mechanism for anyconnect).  We deploy the updated client and have it install on next log on).

  • Author

Hi Simmsman,

thanks for your replay.

I am not an expert ....do you mind to share the steps you have done to deploy the update and install it on next log on?

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

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.