Page 1 of 1

Scheduling automatic computer shutdowns with consideration of WAPT deployments

Published: May 26, 2025 - 3:11 PM
by Olivier Schmitt
Hello,

I would like to create a package that implements a scheduled task in Windows to shut down computers at 10 PM.

Currently, I'm using a simple:

<Exec>
<Command>shutdown.exe</Command>
<Arguments>/s /t 60</Arguments>
</Exec>

However, I would like to know if there is a simple way to check if a WAPT installation is in progress and, if so, prevent it from shutting down.

I've noticed that when I deploy certain configurations with multiple software packages, the scheduled shutdown still occurs, interrupting the WAPT package deployment. It only resumes the next time the machine is shut down.

Thank you in advance.

Re: Scheduling automatic computer shutdowns while taking WAPT deployments into account

Published: May 26, 2025 - 5:14 PM
by sfonteneau
OlivierSchmitt wrote: May 26, 2025 - 3:11 PM Indeed, I've noticed that when I deploy certain configurations with multiple software programs, the scheduled shutdown still triggers, interrupting the deployment of the wapt packages. It only resumes the next time the machine shuts down.
Do you mean that waptexit doesn't block the installation in this kind of case?

Re: Scheduling automatic computer shutdowns while taking WAPT deployments into account

Published: May 28, 2025 - 6:38 PM
by Olivier Schmitt
I need to check that.
That being said, is it possible there's a timeout when WAPT is installing?
I actually have over 84 software programs per machine, some of them very large, like Autodesk suites, etc.
So far, I've never managed to deploy a machine in one go. Each time, I have to restart once or twice.
All the packages install if I test them one by one, but when I launch them all at once…

Re: Scheduling automatic computer shutdowns while taking WAPT deployments into account

Published: June 5, 2025 - 1:51 PM
by sfonteneau
OlivierSchmitt wrote: May 28, 2025 - 6:38 PM That being said, is it possible that there is a timeout when WAPT is performing the installations?
Normally, the timeout for GPOs when the computer shuts down is increased with "PreShutdownTimeout". So normally there should be no timeout
I'll try again here to confirm that it still works.