Page 1 of 1

[SOLVED] Triggering Waptexit at a specific time

Published: April 21, 2020 - 11:12 AM
by Malo
Hello,

I'm using Wapt v1.8 on Windows Server 2016 (console) and Windows 10 (client).

I'd like to know if it's possible to trigger Waptexit (automatically) at a specific time of day.

If so:
- How do I do this?
- What will happen if an application that needs updating is open at that time? Will it be forced to close and any unsaved data lost? What does the Wapt console return?

Thank you in advance. :)

Re: Triggering Waptexit at a specific time

Published: April 21, 2020 - 5:35 PM
by sfonteneau
Good morning

You can run the `wapt-get upgrade -S` command automatically during the day using a scheduled task

If the applications are launched... they will be killed

If you are using the enterprise version, you can also regularly offer the update to users using scheduled tasks:

Code: Select all

waptpython -c "from waptenterprise.waptservice.enterprise import start_waptexit ; start_waptexit('task',{'only_priorities':False,'only_if_not_process_running':True,'install_wua_updates':False,'countdown':300},'schtask')"