Configuring Windows Hotpatch With Tanium Patch
Summary
-
Tanium Patch runbook now available for Windows hotpatch updates. With the configuration in this runbook, Tanium Patch scans for, deploys, and reports on monthly hotpatch updates, which install without a restart. The runbook builds:
-
An Online scan configuration
-
Two deployment templates:
Hotpatch - No RestartandNon-Hotpatch Updates - Restart with Notification -
Two Patch automatic deployment configurations (ADCs) that target the same devices:
-
Hotpatch ADC: installs the monthly "Hotpatch capable" update with no restart
-
Non-hotpatch ADC: installs every other update with a restart
-
-
-
Hotpatch devices must use the Online scan. Microsoft publishes hotpatches only to Windows Update. Neither the Tanium Scan for Windows nor the Offline CAB File scan technique includes hotpatches. Any device that qualifies for hotpatches needs a scan configuration that uses the Online Microsoft Windows Update technique (Create the Online scan configuration).
-
Devices must meet all Microsoft hotpatch requirements. Microsoft decides which devices are offered a hotpatch. A device that misses any requirement is offered the regular cumulative update. You enroll devices in Microsoft Intune or Azure Arc, not in Tanium.
-
Windows 11: Enterprise, version 24H2 or later, an eligible license (Windows 11 Enterprise E3/E5, Microsoft 365 F3, Education A3/A5, Microsoft 365 Business Premium, or Windows 365 Enterprise), Microsoft Entra joined (registered is not enough) and enrolled in Intune, hotpatch turned on in Intune (the Windows Autopatch tenant setting, which is on by default, or a Windows quality update policy), virtualization-based security (VBS) running, and the current baseline. Arm64 devices must also disable CHPE. See Hotpatch updates (Windows Autopatch).
-
Windows Server 2025 Standard or Datacenter: connected to Azure Arc with Hotpatch enabled (Datacenter: Azure Edition has it on by default), VBS running (UEFI with Secure Boot), and the current baseline. See Enable Hotpatch for Azure Arc-enabled servers.
-
Overview
Microsoft publishes hotpatches to Windows Update online, so you need to configure hotpatch endpoints to use the Online Microsoft Windows Update scan technique. Hotpatches ship in eight months of the year. In the four baseline months (January, April, July, and October), devices receive a regular cumulative update that requires a restart.
Use the Tanium Patch runbook described in this article to deploy hotpatches to your endpoints. The runbook consists of the following items:
|
Component |
Purpose |
|---|---|
|
Online scan configuration |
Makes the monthly "Hotpatch capable" update visible on hotpatch devices |
|
Deployment Template: Hotpatch - No Restart |
Restart off; used by the hotpatch ADC |
|
Deployment Template: Non-Hotpatch Updates - Restart with Notification |
Restart on, with a restart notification; used by the non-hotpatch ADC |
|
Hotpatch ADC |
Installs updates whose title contains "Hotpatch capable" |
|
Non-hotpatch ADC |
Installs Security and Critical updates except the hotpatch: baseline cumulative updates, .NET Framework, and standalone updates |
|
Compliance reports |
One for the patch list of the hotpatch ADC, one for both ADC lists together |
Prerequisites
-
Tanium Cloud or SAR 2026 H2 or later.
-
Tanium Endpoint Configuration Toolset 2.32 or later.
-
Permission to create scan configurations and deployment templates, the Patch Automatic Deployment Configuration Operator role, and read access to deployment plans.
-
One or more ring deployment plans and maintenance windows enforced on the devices (both built below; full walkthrough in the Tanium Patch Zero Touch Automation Runbook).
-
A computer group that contains only hotpatch-enrolled devices (Step 1 builds it). This runbook calls it the hotpatch device group (
Patch - Hotpatch Devices). -
Devices that meet the Microsoft hotpatch requirements (full list in the Summary): Windows 11 (Windows Autopatch), Windows 11 (Intune), Windows Server 2025 (Azure Arc). A device that does not meet them is offered the regular cumulative update.
-
Outbound access from each device to Windows Update (see Caveats).
Create the ring deployment plan and maintenance window
Both Patch automatic deployment configurations (ADCs) can use the same ring deployment plan. It sets which devices are in each ring and how long Patch waits before moving to the next one. You can choose to create a Dynamic or Custom deployment plan.
Dynamic plan
-
Go to Administration > Actions > Deployment Plans and click Create Plan. Select Dynamic.
-
Select Dynamic. Name:
Patch Rings - Dynamic. Content Set: Default (or your content set). Preferred for Deployment Type: Platform Action. -
Click Add Ring for each ring in the table. The percentage for each ring is measured against all targeted devices and includes the devices in earlier rings.
-
Optional: click Defer Endpoints and select groups that must always deploy last, such as executive or sensitive devices.
-
Check the endpoint count per ring in Preview Deployment Plan, then click Save.
|
Ring |
Assigned endpoints |
Wait |
|---|---|---|
|
Ring 1 |
1% |
1 day |
|
Ring 2 |
15% |
2 days |
|
Ring 3 |
30% |
3 days |
|
Ring 4 |
50% |
4 days |
Patch adds the built-in All Targeted Computers ring last, so the remaining devices follow Ring 4. Leave Evaluate Criteria empty, or add Execution Success Rate or Minimum Endpoints to gate a ring.
Custom plan (tag-based rings)
-
Go to Administration > Actions > Deployment Plans and click Create Plan. Select Custom.
-
Go to Administration > Permissions > Computer Groups and create four groups,
Patch - Ring 1toPatch - Ring 4, each with the filterCustom Tags matches PatchRing1(thenPatchRing2,PatchRing3,PatchRing4). -
Apply the matching custom tag to each device.
-
Create the plan with Custom, using the same name pattern, content set and deployment type as above. Add four rings, select the matching
Patch - Ringgroup for each, and use the same waits as the table. Keep Ring 1 small, about 1% of devices or a few hundred at most. -
Preview and save as above.
The ADCs in Steps 5 and 6 target Patch - Hotpatch Devices, so the rings divide only those devices.
Maintenance window
Enforce a maintenance window on Patch - Hotpatch Devices. Set Recurrence to Monthly, select Day of the week under Repeat Basis Based on Selected Effective Date, and select the 2nd Tuesday so the window follows Patch Tuesday. Use endpoint local time. Make sure the window opens during its corresponding ring duration; Step 7 covers its length.
For more detail, see the Tanium Patch Zero Touch Automation Runbook and Managing deployment plans for ring deployments.
Create the hotpatch device group
Every configuration in this runbook targets one computer group of hotpatch-enrolled devices. This runbook does not cover deciding which devices are enrolled. A custom tag lets you add and remove devices explicitly.
To find devices that are ready, create the sensors in the Appendix and ask the Windows Hotpatch Prerequisites question.
-
Apply the custom tag
HotpatchEnrolledto each enrolled device (for example, with the Custom Tagging - Add Tags package). Start with your pilot devices only. -
Go to Administration > Permissions > Computer Groups and click New Computer Group.
-
Name:
Patch - Hotpatch Devices. -
Enable Filter: enabled; select Default Filter Groups (or your content set).
-
Filter:
Custom Tags matches HotpatchEnrolled. You can paste this into the Filter Bar tab under Members. -
Click Save.
-
Assign the group to the users, user groups, or personas who build the Patch configuration. Patch can only target computer groups assigned to you.
NOTE: To remove a device from hotpatch handling, remove its tag. The device then leaves the Online scan configuration and both ADCs. Move it to your standard scan configuration and ADCs at the same time so the device is not left unpatched.
Review existing deployments, patch lists, and ADCs
Before you enforce the Online scan in Step 3, review everything that already targets endpoints that will be in the hotpatch device group. Once those endpoints scan online, any ADC or deployment whose patch list matches the hotpatch installs it with the Restart setting of that deployment, and a Restart-on deployment restarts the device.
-
Find what targets these endpoints. Check Modules > Patch > Deployment Automation > Automatic Deployment Configurations and the active deployments on Modules > Patch > Deployments (ongoing and Self Service deployments). Note each one whose targets include endpoints that will be in the hotpatch device group, and the patch lists it uses (Modules > Patch > Patch Lists).
-
Rescope existing deployments. Either change deployment targets so they no longer include hotpatch endpoints, or add
Title does not contain Hotpatch capableto every rule in its patch criteria or patch list. Targets cannot be removed from an active deployment; stop the deployment and create a new one without them. -
Check rules that will stop matching. Rules that match on severity, product, or title text do not match Online-scan patch records (see Caveats). Change them to classification, release date, or KB rules where those endpoints still need coverage.
-
Leave the
[Tanium Managed] Windows Endpoints - Security UpdatesADC paused. It targets all Windows endpoints and cannot be edited, so it cannot take the exclusion.
Create the Online scan configuration
-
Go to Modules > Patch > Scan Management and click Create Scan Configuration.
-
Name:
Hotpatch Devices - Online Scan - Windows. Operating system: Windows. -
Configuration Technique: Online Microsoft Windows Update.
-
Frequency: 1 day. Enable Random Scan Delay: 120 minutes.
-
Enable Patch direct downloads from Microsoft: cleared.
-
Click Create Scan Configuration.
-
In Targeting, click Edit Targeting, select Computer Groups, select
Patch - Hotpatch Devices, and click Apply. -
On the Scan Configurations tab, click Prioritize, move the new configuration above every Tanium Scan and Offline CAB configuration that targets these devices, and click Confirm.
CAUTION: Never let a Tanium Scan configuration apply to a hotpatch device. It installs the regular cumulative update, which restarts the device and takes it off the hotpatch track until the next baseline.
Create the deployment templates
Go to Modules > Patch > Deployment Templates, click Create Deployment Template > Create Install Template, and create both templates:
|
Setting |
Hotpatch - No Restart |
Non-Hotpatch Updates - Restart with Notification |
|---|---|---|
|
Platform |
Windows |
Windows |
|
Deployment Frequency |
Ongoing Deployment |
Ongoing Deployment |
|
Endpoint Local Time |
Enabled |
Enabled |
|
Download Immediately |
Enabled |
Enabled |
|
Distribute Over Time |
2 hours |
2 hours |
|
Override Maintenance Windows |
Disabled |
Disabled |
|
Override Block Lists |
Disabled |
Disabled |
|
Restart |
Disabled |
Enabled |
|
Notify user after deployment activity |
Off |
Enabled: 8 hour notification period, 15 minute final countdown, postpone 1, 2, or 4 hours |
|
Message |
None |
Title |
Create the hotpatch ADC
-
Go to Modules > Patch > Deployment Automation > Automatic Deployment Configurations and click Create Automatic Deployment Configuration.
-
Name:
Hotpatch Devices - Hotpatch Capable (No Restart). Deployment Template:Hotpatch - No Restart. -
Targets: Computer Groups,
Patch - Hotpatch Devices. -
Advanced Deployment Options: confirm Restart after Operation is cleared.
-
Patching Cadence: every 1 month on the 2nd Tuesday, in the time zone of your organization, with Distribute Over Time at 2 hours or another value.
-
Deployment Plan: select your deployment plan (for example,
Patch Rings - Dynamic``). -
User Notification: leave off.
-
Patch Criteria: add a rule named
Hotpatch capablewith one condition, Title containsHotpatch capable. -
Click Save.
TIP (optional): Because the hotpatch needs no restart, you can select Override Maintenance Windows on this ADC so devices install it as soon as their scan finds it. Use it only for devices that stay on the current baseline: a device off the baseline gets the baseline in the same update, installs it outside the window, and waits in Pending Restart.
Create the non-hotpatch ADC
-
Click Create Automatic Deployment Configuration.
-
Name:
Hotpatch Devices - Non-Hotpatch Updates (Restart). Deployment Template:Non-Hotpatch Updates - Restart with Notification. -
Targets: the same group as Step 5,
Patch - Hotpatch Devices. -
Advanced Deployment Options: confirm Restart after Operation is selected. User Notification: confirm the notification period and final countdown match the template.
-
Patching Cadence: quarterly or monthly (see the table below) on the 2nd Tuesday, with Distribute Over Time at 2 hours or another value.
-
Deployment Plan: select your deployment plan (for example,
Patch Rings - Dynamic). -
Patch Criteria: add these rules. Every rule needs the exclusion, because rules are joined by OR:
-
Security Updates: Classification equalsSecurity UpdatesAND Title does not containHotpatch capable -
Critical Updates: Classification equalsCritical UpdatesAND Title does not containHotpatch capable -
Any other classification you deploy, with the same exclusion
-
-
Click Save.
|
Cadence |
Setting |
Result |
|---|---|---|
|
Quarterly |
Every 3 months on the 2nd Tuesday, first run in a baseline month |
Restarts only in baseline months. .NET Framework, standalone, and Critical updates wait up to three months. |
|
Monthly |
Every 1 month on the 2nd Tuesday |
Fastest coverage, but devices might restart most months for other required updates that do not support hotpatching. |
NOTE (quarterly): The cadence has no start-month field. Save the configuration in a baseline month, then open Deployment Automation > Activity and check that the pending deployment of this ADC is scheduled for the 2nd Tuesday of the next baseline month.
CAUTION (quarterly): If Microsoft replaces a hotpatch month with an unplanned baseline, a quarterly ADC does not install it until the next quarter, and devices drop off the hotpatch track. When Windows release health announces one, start the pending deployment of this ADC from the Activity page.
Size the maintenance window
Both ADCs install inside the maintenance window enforced on Patch - Hotpatch Devices. Make the window long enough for downloading, Distribute Over Time, and the installs. Restarts do not happen after the window closes; a device that misses the window waits in Pending Restart until the next one.
Build compliance reports
Each ADC creates a Tanium Managed patch list named after the ADC. Note both patch list IDs on Modules > Patch > Patch Lists, then build two reports by following Patch Compliance Reporting and Dashboards:
|
Report |
Filter |
Expected result |
|---|---|---|
|
Hotpatch compliance |
The Patch List ID of the hotpatch ADC |
Compliant after each hotpatch month's deployment completes |
|
Full policy compliance |
Both Patch List IDs |
Quarterly: compliant after each baseline month. Monthly: compliant after each Patch Tuesday deployment completes |
For one combined row per device instead of one row per list, add a second registration of the Patch - Patch List Compliance sensor in Interact for Tanium Data Service, with both patch list IDs in the last parameter, for example Patch - Patch List Compliance[1,"",0,0,0,0,0,0,0,"<hotpatch list ID>,<non-hotpatch list ID>"].
The "Customizing Patch List Compliance for Service-Level Agreements (SLAs)" section of Patch Compliance Reporting and Dashboards explains how to add a registration.
-
Do not set a minimum severity. Online-scan patches have severity None, so a severity filter drops all of them and devices read Compliant while missing updates.
-
Per-severity grace periods do not apply. The minimum-age parameters of the sensor let a patch be missing for a set number of days per severity before a device counts as non-compliant. Online-scan patches all have severity None, so only the None value applies to them. If you report against an SLA, set the grace period on the None parameter.
-
Combine only lists that do not overlap. Combined counts are not de-duplicated. The two ADC lists in this runbook do not overlap.
Example dashboard. Build one panel pair (current and 90-day history) for each report in the table above.
Verify
-
After each Patch Tuesday, check Deployment Automation > Activity for
Auto Deployment - <ADC name> - <date>deployments. -
Confirm the hotpatch installed without a restart: ask
Get Computer Name and Operating System Full Build Number and Last Reboot from all machines with Custom Tags matches HotpatchEnrolled. The build number rises and the last reboot time does not change. -
Self Service shows Restart: Required on the deployments of the non-hotpatch ADC. This reflects the deployment's Restart setting, not the update.
-
Ask the Windows Hotpatch Status question from the Appendix: Active hotpatch reads Yes on each device running this month's hotpatch.
Caveats
-
Devices need direct access to Windows Update. Both the Online scan and the hotpatch download run from each device to Microsoft, so proxies and firewalls must allow Microsoft Windows Update endpoints and the Delivery Optimization endpoints.
-
The hotpatch bypasses Tanium distribution. Endpoints download patches from Microsoft through Delivery Optimization, not through Tanium Servers, Zone Servers, Tanium Client peering, or site throttles. Plan for each device downloading it directly.
-
Windows Server does not peer by default. Windows Server uses Delivery Optimization download mode 0 (HTTP only, no peering), while Windows clients default to mode 1 (LAN peering). See Configure Delivery Optimization for Windows.
-
Online-scan patch records carry less metadata. Severity is None, product is empty, and the title and Tanium patch ID differ from Tanium Scan records for the same KB. Patch lists, reports and sensors that rely on severity, product, or Tanium Scan titles do not match them.
-
Endpoints might still restart during hotpatch months. Other applicable updates, such as .NET Framework updates, might still require a restart. Microsoft can also release an out-of-band update or an unplanned baseline cumulative update during a hotpatch month and either can require a restart (see the next caveat).
-
Devices can drop off the hotpatch track. This happens after a Tanium Scan cumulative update, an out-of-band non-hotpatch update, or a Windows feature update in a hotpatch month. A device off the track receives regular cumulative updates, which only the non-hotpatch ADC installs, until the next baseline. Read the KB article for an out-of-band update before approving it for hotpatch devices.
-
Uninstalling a hotpatch requires a restart.
Appendix: Create the hotpatch sensors
The following custom sensors show which devices meet the hotpatch prerequisites and which are running a hotpatch now. Use them to pick devices for the HotpatchEnrolled tag in Step 1, and to confirm results after each Patch Tuesday. Creating sensors requires the Sensor write permission.
Windows Hotpatch Prerequisites
Returns one row per device with the hotpatch prerequisites that no stock sensor reports. Unknown means the device could not read the value. It does not mean the prerequisite is missing.
|
Column |
Values |
Hotpatch needs |
|---|---|---|
|
Virtualization-based security |
Running, Enabled, not running, Off |
Running |
|
Hotpatch policy |
Enabled, Disabled, Not set; Not applicable on Windows Server |
Enabled (Windows 11) |
|
CHPE disabled |
Yes, No; Not applicable on x64 |
Yes (Arm64 only) |
|
Azure Arc hotpatch |
Enabled, Not enabled, Arc agent not installed; Not applicable on Windows 11 |
Enabled (Windows Server 2025 Standard or Datacenter) |
Step 1. Go to Administration > Content > Sensors and click New Sensor.
Step 2. Under Details, set Name to Windows Hotpatch Prerequisites and select a Content Set.
Step 3. In Description, paste:
Windows hotpatch prerequisites that no stock sensor reports. Virtualization-based security: hotpatch needs Running. Hotpatch policy (Windows 11): the hotpatch setting (AllowRebootlessUpdates) as Intune delivered it to the device. Enabled means Intune turned hotpatch on, through the Windows Autopatch tenant setting or a Windows quality update policy; Disabled means Intune manages the device's updates with hotpatch off; Not set means Intune delivered no hotpatch setting; Not applicable on Windows Server. CHPE disabled (ARM64 only): hotpatch needs Yes (HotPatchRestrictions=1, followed by a restart); Not applicable on other processors. Azure Arc hotpatch (Windows Server 2025 Standard and Datacenter): Enabled when the Azure Arc agent holds the hotpatch license, Not enabled when the agent is installed without it, or Arc agent not installed. It is the license the device holds, not the Azure setting. Datacenter: Azure Edition has hotpatch without Azure Arc; Not applicable on Windows 11. Unknown means a value could not be read. Windows 11 also needs an eligible license (Windows 11 Enterprise E3 or E5, Education A3 or A5, Microsoft 365 F3 or Business Premium, or Windows 365 Enterprise), version 24H2 or later, Microsoft Entra join (registration is not enough) and Intune enrollment. Windows Server needs Windows Server 2025 build 26100.1742 or later. Pair it with the stock sensors for the OS side, and with Windows Hotpatch Status, for example: Get Computer Name and Operating System and Operating System Edition and Operating System Full Build Number and CPU Architecture and Windows Hotpatch Prerequisites from all machines with Windows OS Type contains Windows. Meeting the prerequisites does not mean Microsoft will offer a hotpatch: the device must also be on the latest quarterly baseline (Last cumulative update in Windows Hotpatch Status). To see whether one is offered, ask for Patch - Patch List Applicability Results and look for Hotpatch capable in the title.
Step 4. Under Settings, set Category to Operating System, Result Type to Text, and Max Sensor Age to 4 hours. Select Ignore case in result values.
Step 5. Select Split into multiple columns and enter | in Use delimiter. Add these columns in this order, each with Result Type set to Text:
-
Virtualization-based security
-
Hotpatch policy
-
CHPE disabled
-
Azure Arc hotpatch
Step 6. Under Implementation, select Windows, select Enable sensor for Windows platform, set Query Type to PowerShell, and paste this script:
# Windows hotpatch prerequisites that no stock sensor reports. One row, columns split on "|": # Virtualization-based security | Hotpatch policy | CHPE disabled | Azure Arc hotpatch # Hotpatch policy applies to Windows 11 and Azure Arc hotpatch to Windows Server; each reads Not # applicable on the other. Pair with Operating System Edition, Operating System Full Build Number and # CPU Architecture for the OS side. Read-only. A value that could not be read reports Unknown: a # failed read is not evidence that a prerequisite is absent. # Registry reads. FullLanguage uses the 64-bit view so a 32-bit host is not redirected; under # Constrained Language Mode the .NET call is blocked, so fall back to the provider (native view). # Returns @{ Ok = $true; Value = <value or $null if absent> } or @{ Ok = $false } on a read error. $base = $null if ($ExecutionContext.SessionState.LanguageMode -eq 'FullLanguage') { try { $base = [Microsoft.Win32.RegistryKey]::OpenBaseKey('LocalMachine', 'Registry64') } catch { $base = $null } } # Without the 64-bit view, a 32-bit host reading HKLM\SOFTWARE gets the redirected WOW6432Node # copy, so treat those reads as unreadable. HKLM\SYSTEM is not redirected. $redirected = (-not $base) -and [bool]$env:PROCESSOR_ARCHITEW6432 function Get-RegValue($path, $name) { if ($redirected -and $path -like 'SOFTWARE\*') { return @{ Ok = $false } } try { if ($base) { $key = $base.OpenSubKey($path) if (-not $key) { return @{ Ok = $true; Value = $null } } return @{ Ok = $true; Value = $key.GetValue($name) } } $psPath = 'HKLM:\' + $path if (-not (Test-Path -LiteralPath $psPath)) { return @{ Ok = $true; Value = $null } } $item = Get-ItemProperty -LiteralPath $psPath -ErrorAction Stop return @{ Ok = $true; Value = $item.$name } } catch { return @{ Ok = $false } } } function Get-RegSubKeyNames($path) { if ($redirected -and $path -like 'SOFTWARE\*') { return $null } try { if ($base) { $key = $base.OpenSubKey($path) if (-not $key) { return @() } return $key.GetSubKeyNames() } $psPath = 'HKLM:\' + $path if (-not (Test-Path -LiteralPath $psPath)) { return @() } return @(Get-ChildItem -LiteralPath $psPath -ErrorAction Stop | ForEach-Object { $_.PSChildName }) } catch { return $null } } # ProductType 1 is a workstation (Windows 11); 2 and 3 are servers. If it cannot be read, the # columns gated on it report what they read instead of Not applicable. $productType = $null try { $productType = (Get-CimInstance -ClassName Win32_OperatingSystem -Property ProductType -ErrorAction Stop).ProductType } catch { $productType = $null } # Virtualization-based security $vbsValue = $null try { $vbsValue = (Get-CimInstance -ClassName Win32_DeviceGuard -Namespace 'root\Microsoft\Windows\DeviceGuard' -Property VirtualizationBasedSecurityStatus -ErrorAction Stop).VirtualizationBasedSecurityStatus } catch { $vbsValue = $null } $vbs = switch ($vbsValue) { 0 { 'Off' } 1 { 'Enabled, not running' } 2 { 'Running' } default { 'Unknown' } } # Windows 11 hotpatch policy (AllowRebootlessUpdates), delivered through MDM (Intune). Effective key # first, then any provider key. Windows Server hotpatch is not set this way. if ($null -ne $productType -and $productType -ne 1) { $policy = 'Not applicable' } else { $allowRead = Get-RegValue 'SOFTWARE\Microsoft\PolicyManager\current\device\Update' 'AllowRebootlessUpdates' $policyReadOk = $allowRead.Ok $allow = $allowRead.Value if ($null -eq $allow) { $providerNames = Get-RegSubKeyNames 'SOFTWARE\Microsoft\PolicyManager\providers' if ($null -eq $providerNames) { $policyReadOk = $false } else { foreach ($name in $providerNames) { $r = Get-RegValue "SOFTWARE\Microsoft\PolicyManager\providers\$name\default\Device\Update" 'AllowRebootlessUpdates' if (-not $r.Ok) { $policyReadOk = $false } elseif ($null -ne $r.Value) { $allow = $r.Value; break } } } } if ($null -ne $allow) { $policy = if ($allow -eq 1) { 'Enabled' } else { 'Disabled' } } elseif ($policyReadOk) { $policy = 'Not set' } else { $policy = 'Unknown' } } # CHPE (ARM64 only): hotpatch needs HotPatchRestrictions=1. Architecture is read here only to # decide whether the value applies; CPU Architecture reports it. $chpe = 'Unknown' $cpu = $null # -Property matters: a full Win32_Processor query takes about a second, Architecture alone ~20 ms. try { $cpu = (Get-CimInstance -ClassName Win32_Processor -Property Architecture -ErrorAction Stop | Select-Object -First 1).Architecture } catch { $cpu = $null } if ($null -ne $cpu -and $cpu -ne 12) { $chpe = 'Not applicable' } elseif ($cpu -eq 12) { $r = Get-RegValue 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' 'HotPatchRestrictions' if ($r.Ok) { $chpe = if ($r.Value -eq 1) { 'Yes' } else { 'No' } } } # Azure Arc hotpatch (Windows Server 2025 Standard and Datacenter). The Arc agent records the hotpatch # license it holds as Subscription=1 under its Licenses\Features\Hotpatch key, and 0 for a feature # it does not hold. Datacenter: Azure Edition has hotpatch without Arc. if ($null -ne $productType -and $productType -eq 1) { $arc = 'Not applicable' } else { $arc = 'Unknown' $agentInstalled = $null try { $null = Get-Service -Name 'himds' -ErrorAction Stop $agentInstalled = $true } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { $agentInstalled = $false } catch { $agentInstalled = $null } if ($agentInstalled -eq $false) { $arc = 'Arc agent not installed' } elseif ($agentInstalled) { $r = Get-RegValue 'SOFTWARE\Microsoft\Azure Connected Machine Agent\Windows\Licenses\Features\Hotpatch' 'Subscription' if ($r.Ok) { $arc = if ($r.Value -eq 1) { 'Enabled' } else { 'Not enabled' } } } } "$vbs|$policy|$chpe|$arc"
Step 7. Run a Sensor Results Preview on a few Windows devices, then click Save.
Step 8. Ask this question to see the results with the operating system details from the stock sensors:
Get Computer Name and Operating System and Operating System Edition and Operating System Full Build Number and CPU Architecture and Windows Hotpatch Prerequisites from all machines with Windows OS Type contains Windows
Windows Hotpatch Status
Returns one row per hotpatch package installed on the device. A device with no hotpatches returns one row with No and None. Unknown means the device could not read the value.
|
Column |
Meaning |
|---|---|
|
Active hotpatch |
Yes on the hotpatch the device is running now |
|
KB |
The hotpatch KB number |
|
Hotpatch build |
The build the hotpatch brings the device to |
|
State |
The package state, for example Installed or Superseded |
|
Installed UTC |
When the package was installed |
|
Last cumulative update |
The last cumulative update. On a hotpatched device this is the quarterly baseline. Reads Not recorded on Windows 10, Windows 11 23H2 and earlier, and Windows Server 2012 |
Step 1. Go to Administration > Content > Sensors and click New Sensor.
Step 2. Under Details, set Name to Windows Hotpatch Status and select a Content Set.
Step 3. In Description, paste:
Windows hotpatches installed on the device, read from the Component Based Servicing registry. One row per hotpatch package: Active hotpatch, KB, Hotpatch build, State, Installed UTC and Last cumulative update. Active hotpatch is Yes on the row whose installed hotpatch is the build the device is running now. Last cumulative update is the last cumulative update installed (LCUVer); on a hotpatched device it is the quarterly baseline the hotpatches apply on top of, and the value to compare with Microsoft's current baseline. A device with no hotpatch packages returns one row of No and None with its last cumulative update. Last cumulative update reads Not recorded where Windows does not record LCUVer: Windows 10, Windows 11 23H2 and earlier, and Windows Server 2012 (Windows Server 2022 and 2025 record it). Unknown means the registry could not be read. LCUVer reports the servicing build, so on Windows 11 26H2 it reads 26100.x while Operating System Full Build Number reads 26300.x. Tested with hotpatches installed on Windows Server 2025, and on Windows 11 without hotpatches; Windows Server 2022 Datacenter: Azure Edition has not been tested. Pair it with Windows Hotpatch Prerequisites and Operating System Full Build Number, for example: Get Computer Name and Operating System Full Build Number and Windows Hotpatch Status from all machines with Windows OS Type contains Windows.
Step 4. Under Settings, set Category to Operating System, Result Type to Text, and Max Sensor Age to 4 hours. Select Ignore case in result values.
Step 5. Select Split into multiple columns and enter | in Use delimiter. Add these columns in this order, each with Result Type set to Text:
-
Active hotpatch
-
KB
-
Hotpatch build
-
State
-
Installed UTC
-
Last cumulative update
Step 6. Under Implementation, select Windows, select Enable sensor for Windows platform, set Query Type to PowerShell, and paste this script:
# Windows hotpatches installed, read from the Component Based Servicing registry. One row per # hotpatch package, columns split on "|": # Active hotpatch | KB | Hotpatch build | State | Installed UTC | Last cumulative update # Active hotpatch is Yes on the row whose installed hotpatch is the running build (UBR). Last # cumulative update is LCUVer; on a hotpatched device it is the baseline the hotpatches apply on top # of. Windows releases before Windows 11 24H2 and Windows Server 2022 do not record LCUVer, so it reads # Not recorded there. Read-only. A value that could not be read reports Unknown: a failed read is not # evidence that no hotpatch is installed. $cbsPath = 'SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages' $cvPath = 'SOFTWARE\Microsoft\Windows NT\CurrentVersion' # Hotpatch packages are named Package_for_HotpatchFix_<UBR>~<token>~<arch>~~<build>.<UBR>.<n>.<n> # and carry the KB only in the source cab path (InstallLocation). $hotpatchFilter = 'Package_for_HotpatchFix_*' $states = @{ 0 = 'Absent' 5 = 'Uninstall Pending' 16 = 'Resolving' 32 = 'Resolved' 48 = 'Staging' 64 = 'Staged' 80 = 'Superseded' 96 = 'Install Pending' 101 = 'Partially Installed' 112 = 'Installed' 128 = 'Permanent' } # Registry reads. FullLanguage uses the 64-bit view so a 32-bit host is not redirected; under # Constrained Language Mode the .NET call is blocked, so fall back to the provider (native view), # which is slower on a key with ~10k subkeys but gives the same answer. $packages stays $null when # the CBS key could not be read. $base = $null if ($ExecutionContext.SessionState.LanguageMode -eq 'FullLanguage') { try { $base = [Microsoft.Win32.RegistryKey]::OpenBaseKey('LocalMachine', 'Registry64') } catch { $base = $null } } $packages = $null $ubr = $null $lcuVer = $null if ($base) { try { $cv = $base.OpenSubKey($cvPath) if ($cv) { $ubr = $cv.GetValue('UBR') $lcuVer = $cv.GetValue('LCUVer') $cv.Close() } $cbs = $base.OpenSubKey($cbsPath) if ($cbs) { $packages = @(foreach ($name in ($cbs.GetSubKeyNames() -like $hotpatchFilter)) { $key = $cbs.OpenSubKey($name) if ($key) { @{ Name = $name State = $key.GetValue('CurrentState') Location = $key.GetValue('InstallLocation') High = $key.GetValue('InstallTimeHigh') Low = $key.GetValue('InstallTimeLow') } $key.Close() } }) $cbs.Close() } } catch { $packages = $null } $base.Close() } elseif (-not $env:PROCESSOR_ARCHITEW6432) { # A 32-bit host without the 64-bit view only sees WOW6432Node, which has no CBS key and no # LCUVer, so only a native host can use the provider. try { $cv = Get-ItemProperty -LiteralPath "HKLM:\$cvPath" -ErrorAction Stop $ubr = $cv.UBR $lcuVer = $cv.LCUVer # -Name skips building a key object per subkey: about half the time on ~10k subkeys. $names = @(Get-ChildItem -LiteralPath "HKLM:\$cbsPath" -Name -ErrorAction Stop) $packages = @(foreach ($name in ($names -like $hotpatchFilter)) { $item = Get-ItemProperty -LiteralPath "HKLM:\$cbsPath\$name" -ErrorAction Stop @{ Name = $name State = $item.CurrentState Location = $item.InstallLocation High = $item.InstallTimeHigh Low = $item.InstallTimeLow } }) } catch { $packages = $null } } if ($null -eq $packages) { 'Unknown|Unknown|Unknown|Unknown|Unknown|Unknown' } else { # LCUVer is 10.0.<build>.<UBR> of the last cumulative update; report it as <build>.<UBR> to # compare with the hotpatch build. CurrentVersion was read by this point, so a missing LCUVer is # the OS not recording it, not a failed read. $lastCu = if ($null -eq $lcuVer) { 'Not recorded' } elseif ("$lcuVer" -match '^\d+\.\d+\.(\d+\.\d+)$') { $Matches[1] } else { 'Unknown' } if ($packages.Count -eq 0) { "No|None|None|None|None|$lastCu" } foreach ($p in $packages) { $build = if ($p.Name -match '~(\d+\.\d+)\.\d+\.\d+$') { $Matches[1] } else { 'Unknown' } $kb = if ("$($p.Location)" -match 'KB\d{6,8}') { $Matches[0].ToUpper() } else { 'Unknown' } $state = if ($null -eq $p.State) { 'Unknown' } elseif ($states[[int]$p.State]) { $states[[int]$p.State] } else { "State $($p.State)" } $installed = 'Unknown' if ($null -ne $p.High -and $null -ne $p.Low) { # The halves are REG_DWORDs read as signed Int32; mask them back to unsigned. $fileTime = ([int64]$p.High -band 4294967295) * 4294967296 + ([int64]$p.Low -band 4294967295) $installed = [datetime]::FromFileTimeUtc($fileTime).ToString('yyyy-MM-dd HH:mm') } # A hotpatch is running only while UBR still equals its build; a later update moves UBR on. $active = if ($null -eq $ubr -or $build -eq 'Unknown') { 'Unknown' } elseif ($state -eq 'Installed' -and $build -like "*.$ubr") { 'Yes' } else { 'No' } "$active|$kb|$build|$state|$installed|$lastCu" } }
Step 7. Run a Sensor Results Preview on a few Windows devices, then click Save.
Step 8. Ask this question to see which hotpatches each device has and which one it is running:
Get Computer Name and Operating System Full Build Number and Windows Hotpatch Status from all machines with Windows OS Type contains Windows
Meeting the prerequisites does not mean Microsoft will offer a hotpatch. The device must also be on the latest quarterly baseline. Compare Last cumulative update with the baseline build in the hotpatch release notes.