Datafast Posted October 26, 2022 Report post Posted October 26, 2022 (edited) 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 October 26, 2022 by Datafast Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted October 30, 2022 Report post Posted October 30, 2022 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 ? Quote Share this post Link to post Share on other sites More sharing options...
Datafast Posted November 2, 2022 Report post Posted November 2, 2022 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). Quote Share this post Link to post Share on other sites More sharing options...
simmsman Posted November 2, 2022 Report post Posted November 2, 2022 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). Quote Share this post Link to post Share on other sites More sharing options...
Datafast Posted November 2, 2022 Report post Posted November 2, 2022 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? Quote Share this post Link to post Share on other sites More sharing options...
simmsman Posted November 7, 2022 Report post Posted November 7, 2022 (edited) 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 Edited November 7, 2022 by simmsman more information Quote Share this post Link to post Share on other sites More sharing options...