Page 1 of 1

WUA Operation

Published: February 8, 2026 - 6:38 PM
by Kevin-LH76
Hello,

We are currently implementing the WAPT 2.6 Enterprise solution and I have some questions about how Windows updates work.

Is it possible to define profiles similar to WSUS, specifically:

* Update check schedule
* Predefined action (Download only, 100% manual, or Automatic installation)
* Notify users of a pending restart.

Is it possible to automatically approve only critical updates and require approval for others?

Thank you in advance.

Re: WUA Operation

Published: February 9, 2026 - 10:25 AM
by sfonteneau
Kevin-LH76 wrote: Feb 8, 2026 - 6:38 PM * Update search schedule
Regarding the schedule, it's not by design; instead, it's indicated as:

Code: Select all

download_scheduling=7d
If the post hasn't done it for more than 7 days, then it will do it
Kevin-LH76 wrote: Feb 8, 2026 - 6:38 PM * Predefined action (Download only, 100% manual or Automatic installation)
The `download_scheduling` parameter downloads updates that are pending.

For installation, you can set the following parameter:

install_scheduling

Who launches the installations? If you don't do this, you can create a package that launches a scheduled task which then executes the command:

wapt-get waptwua-install

or just for a download:

wapt-get waptwua-download

or just for a scan:

wapt-get waptwua-scan
Kevin-LH76 wrote: Feb 8, 2026 - 6:38 PM * Notify users of a pending restart.
By default, it is not offered, but if you install this type of package you can do so:

Code: Select all

from setuphelpers import *
from waptservice.enterprise import get_active_sessions, start_interactive_process
import datetime

if get_language() == "fr":
    title = "Redémarrage"
    message = "Votre pc est en attente de redémarrage, voulez-vous redémarrer maintenant ?"
else:
    title = "Reboot"
    message = "Your PC is waiting to restart, do you want to restart now?"

def install():
    pass

def session_setup():
    import waptguihelper

    if is_pending_reboot():
        last_reboot_warning = registry_readstring(HKEY_CURRENT_USER, r"SOFTWARE\WAPT\Shutdown Information", "Last_reboot_warning")
        today = str(datetime.date.today())
        if last_reboot_warning != today:
            registry_setstring(HKEY_CURRENT_USER, r"SOFTWARE\WAPT\Shutdown Information", "Last_reboot_warning",str(today))
            if waptguihelper.message_dialog(title, message , waptguihelper.ID_YES) == waptguihelper.ID_YES:
                run('shutdown /f /r /t 0')

    return 'RERUN'

def run_session_setup(package_name):
    for session_id in get_active_sessions():
        start_interactive_process("wapt-get", "--hide session-setup %s -f" % package_name, session_id=session_id)

def audit():
    run_session_setup(control.package)
    return "OK"
Kevin-LH76 wrote: Feb 8, 2026 - 6:38 PM Is it possible to automatically approve only critical updates and request approval for other updates?
Yes : https://www.wapt.fr/fr/doc/wapt-console ... wapt-agent