Windows Updates
The agent on a Windows host asks the Windows Update Agent, the same component Windows Update itself uses, which updates the host is missing and what Windows Update did lately. The dashboard shows both on the host's Inventory tab, and jobs can check for updates, install them and update Microsoft Defender. This page describes the Windows side of patching; what the update jobs share with other hosts is in Jobs.
The agent runs as LocalSystem, which is what the Update Agent needs to
download and install. It follows the host's own update policy: a host that
takes its updates from WSUS or is managed by Intune is searched against that
source, and updates an administrator hid are not listed.
What is reported
Every inventory (see Inventory) carries:
- The updates the host is missing, drivers included. Each has its title, its KB number, its type, the Microsoft Security Response Center severity, its download size, whether it can ask for a restart and when Microsoft last changed it.
- The update history: the last 100 attempts Windows Update made, with their result and the error code of a failed one.
The type is one of: security, critical, rollup, definition, driver,
feature_pack, service_pack, tool, upgrade, update or other. The
agent works them out from the identifiers of Windows Update's classifications
and not from their names, which are written in the display language of the
host; a host in German reports the same types as one in English. An update with
several classifications gets the first that applies, in the order security,
critical, rollup, definition, driver. An update counts as a security
update when its type is security or when Microsoft gave it a severity.
Searching takes a minute or more, and longer on a host that has not searched
for some time. The agent therefore searches at most every six hours and
shares the answer between the inventory and the updates_pending figure, so
the two agree. After an installation job the next inventory searches again. An
inventory is collected every 30 minutes and sent when it changed.
A host whose Update Agent cannot be asked (the service is broken, the search fails) reports its updates as unknown, not as none. The agent tries again after 15 minutes.
Jobs
Windows hosts offer these job types when their config.yaml allows the action
named beside them (see Agent Installation):
| Job type | Action | What it does |
|---|---|---|
patch.dryrun | patch | Searches and lists what patch.apply would install with the same parameters. Changes nothing. |
patch.apply | patch | Downloads and installs the selected updates, one after the other, and restarts the host as asked. |
defender.update_signatures | defender | Fetches the newest Microsoft Defender definitions and reports the version the host ended on. |
defender.quick_scan | defender | Runs a Defender quick scan and reports how many threats it detected while it ran. |
patch.* jobs need the patch.approve permission, defender.* jobs the
service.manage permission, both for the customer the host belongs to. They go
through the same approval, audit and output machinery as every other job.
Parameters of the patch jobs
| Parameter | Meaning |
|---|---|
categories | The types to install. Without categories, kbs and updateIds: security, critical and rollup. Drivers and definition updates are never installed unless named. |
kbs | Install exactly these updates, for instance ["KB5050009"]. Overrides categories, even for a driver. |
updateIds | The same by Windows Update identity, for updates without a KB. |
reboot | never (the default), if_needed or always. |
timeoutSeconds | How long the job may run. The default is 3 hours for an installation and 20 minutes for a check. |
The dashboard checks the parameters when the job is submitted: an unknown type,
a malformed KB or an unknown reboot value is refused. A restart is only
allowed in a maintenance window: a job with reboot other than never must
be submitted with a window, and it is held until that window is open. The
agent does what the signed job says.
A KB or identity that the host does not offer (already installed, hidden or unknown) is named in the output and in the result, and does not fail the job.
How an installation runs
The agent searches again, takes the updates that match, then handles them one
at a time: download, accept the licence terms, install. The output shows each
step with its position, for instance [2/5] Installing 2026-09 Cumulative Update ..., and ends with one line per update and its result. Updates are
handled one at a time because the Update Agent can only report progress of a
batch to a COM callback object, which the agent cannot offer; the output
therefore moves forward between updates and not within one.
The job succeeds when every selected update installed (an update that installed with errors the Update Agent considers harmless counts as installed), and fails when any did not, naming how many. The result keeps what happened to each update, with the error code of a failed one, and whether a restart is needed.
Restarts. After the last update:
neverleaves the host running. If a restart is needed the output says so and the Reboot required banner on the host's Patches tab and the Restart pending badge in its header show it.if_neededrestarts when an installed update asked for it.alwaysrestarts regardless, also when nothing was installed or an update failed.
A restart is scheduled to happen about a minute later, so that the job can report back first, exactly like the Restart host button. The job reports whether it was scheduled.
Cancelling and timing out. The Update Agent cannot interrupt a download or an installation that is running. A cancelled or timed out job stops before the next update and ends as cancelled or timed out; the update that was in progress finishes on its own and shows up in the host's history.
Defender jobs
Both Defender jobs need the Defender PowerShell module. A host without it
(Server Core without the feature, or a host that runs another endpoint product
only) fails the job with a message saying so. Definition updates through
Windows Update (type definition) are separate from defender.update_signatures
and are not part of the default selection.
Patch policies
Windows hosts follow the patch policies like Linux
hosts: window, approval, delay, staging, rolling and restart work the same way,
and a run is a dry run, an apply and, when the policy asks, a reboot. What
differs is what a policy installs: its categories list, which defaults to
security, critical and rollup. A policy that names driver opts the
hosts it covers into driver updates. Exclusions are package patterns and do
not apply here. The run sends the host the identities of the updates it chose
(updateIds), so the host installs no more than the dashboard approved. A run
started by hand takes the updates of its mode: security gives the default
types, all adds ordinary updates, definitions, tools and packs, and drivers and
feature upgrades only come through a policy that names them.
The jobs report their result in the same shape as the Linux jobs (manager,
upgrade, counts, rebootRequired), next to the Windows details listed
above.
Alerts
| Rule | Metric | Fires when |
|---|---|---|
| Windows Update service disabled | windows_update_disabled | the service wuauserv has start type Disabled for 15 minutes |
The service on manual start does not count: that is how hosts managed by WSUS or Intune are configured, and the policy decides what the service does. The rule is added to instances that use the default rules when the dashboard is upgraded; see Alert Rules.
updates_pending carries the number of waiting updates with the count of
security updates beside it, as on other platforms. Each pending update also has
a release date (released_at in pending_updates), so rules can tell an
update that appeared today from one that has been waiting a week.
Limits
- The agent cannot install updates that need a person at the console. Such an update fails with the Update Agent's error code, which is shown on the job.
- The Update Agent installs one servicing operation at a time. A job started while Windows is installing something on its own can fail for that reason; run it again.
- The history shows what the Update Agent recorded. Updates installed by other
means (the Microsoft Store,
winget, a software distribution product) are not in it. - The
Microsoft Storeandwingetare not touched by these jobs.
Troubleshooting
- The updates show as unknown. The search failed. Look at the agent's log
for
Windows updates not read; the Windows Update service may be disabled (the alert above), or the host cannot reach its update source. - A search takes minutes. It does when the host has not searched for a while, or searches against a slow WSUS server. The inventory waits for it, and reports without updates if it takes longer than 15 minutes.
- An installation fails with an error code such as
0x8024001E. These are Windows Update's own codes; Microsoft's documentation of Windows Update error codes names them. The service was probably stopping, or the host was restarting. - A job is rejected by the host. Its
config.yamldoes not listpatchordefenderinactions.