Page 1 of 1

Configuration WUA

Published: June 9, 2022 - 11:45 AM
by GF68
Hello,

I manage the IT infrastructure for a university institute of technology (IUT), and we recently switched to WAPT for software deployment and Windows Updates.
However, I'm having a problem with the WUA :
Updates (scanning and installation) start correctly when shutting down using WAPTExit.
However, students often turn off their PCs between classes, or sometimes a computer needs to be restarted during class.
Occasionally, WAPT runs a WUA at these times. This makes the PCs unavailable for a while, which is problematic.

Is there a way to configure settings so that Windows updates (scanning, downloading, and installation) only start after a certain time, for example?

Thank you in advance.

configuration WUA

Published: June 13, 2022 - 12:41
by sfonteneau
If we use an auditing system, then we can do anything in terms of conditions:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
from waptwua.client import WaptWUA
import datetime

def install():
    pass

def audit():

    t = datetime.datetime.now()
    if  t.hour < 6 or t.hour > 17 :
        with EnsureWUAUServRunning():
            wua= WaptWUA(WAPT)
            if WAPT.read_param('waptwua.status') != "OK" or wua.rescan_needed():
                print('scan or install need')
                wua.install_updates()
    return "OK"
                
 
In this specific case, the audit runs regularly; if it runs at appropriate times, then the installation begins.
However, you need to set install_at_shutdown=False and remove download_scheduling

This way you can add as many conditions as you want