Skip to main content

set_auto_updates

Function set_auto_updates 

Source
pub async fn set_auto_updates(
    host: &str,
    port: u16,
    user: &str,
    pass: &str,
    enabled: bool,
) -> Result<()>
Expand description

Enable or disable Windows automatic updates (wuauserv) on the guest. false stops the service and sets it to manual-start: no download, no install, no surprise reboots. Manual updates over SSH still work. Verifies by reading the config back (sc qc) — a silent sc failure must never report success. Best-effort per command (warns, never fails) — callers decide.